Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 索引五页改由路由树画进 #index,路由树页面按容器分槽并可就地更新

longmeidao09b856b0dea2
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 43d77146c..0b71106b8 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -52,12 +52,12 @@ island。原因是那一套一上来就打 `/api/items`,而未配置的机器
### 索引页
-`/performers`、`/creators`、`/studios`、`/agencies`、`/tags` 五张索引页整个是 React(`frontend/src/react/index/`,入口 `index-page.tsx`),挂在 `#index` 上。
+`/performers`、`/creators`、`/studios`、`/agencies`、`/tags` 五张索引页整个是 React(`frontend/src/react/index/`,入口 `index-page.tsx`),由路由树画进 `#index`。
-- 地址栏是唯一真相。壳的 `openIndex` 从地址读出 `q`、`scope`、`view`、`category` 作初值挂上来;页面换档只改自己的状态,经 `route` 写回地址,不重挂。从侧栏进来一律回到本地、字母表、全部类型。
+- 地址栏是唯一真相。壳的 `openIndex` 从地址读出 `q`、`scope`、`view`、`category`,经 `openManagedRoute` 作初值交进来;页面换档只改自己的状态,经 `ShellActions.routeIndex` 由壳写回地址并认领,不重挂。后退前进到另一份 search 时壳照旧重开。从侧栏进来一律回到本地、字母表、全部类型。
- 本地名册与词表读 `/api/index`,在线那一档读 `/api/follow/authors` 与 `/api/follow/tags`,键建在 `frontend/src/react/follow/online-vocab.ts`,归关注那一侧。四份都是 `useInfiniteQuery`,「载入更多」取下一页;打字过滤时新结果到手前留着上一份,不铺骨架。
- 圆框里那段 HTML 由 `card-art/markup.ts` 的 `avatarInner` 拼,经壳的 `personAvatar` 递进来;原尺寸摆图、补底与首字母收起的规则在 `web/css/01-base.css` 的 `[data-person-ring]`,量图的是 `installCardArt()` 挂在文档上的 `load` 监听。
-- 顶栏选择键归壳,本地标签页读它:关掉时壳经 `updateIsland` 把 `selectMode:false` 推进来,页面清空所选。所选标签的操作条三颗键都不写账本,「显示结果」回目录按所选标签筛选。
+- 顶栏选择键归壳,本地标签页读它:关掉时壳经 `updateManagedRoute` 把 `selectMode:false` 推进来,页面清空所选。所选标签的操作条三颗键都不写账本,「显示结果」回目录按所选标签筛选。
- 壳在数据回来之前铺的骨架仍是 `web/js/ui-components.js` 的 `indexSkeletonHtml`,页头骨架与页面同一组文字。
### 播放列表页
@@ -103,12 +103,12 @@ island。原因是那一套一上来就打 `/api/items`,而未配置的机器
### 客户端导航
-React Router 以 Declarative 模式接管历史(`frontend/src/react/router/`)。每一屏仍由壳的 `ROUTES` 表打开;管理区十页(统计、口味、复核、数据管理、重复文件、高清版、来源与凭证、配置、活动、关注管理)的正文由路由树画。
+React Router 以 Declarative 模式接管历史(`frontend/src/react/router/`)。每一屏仍由壳的 `ROUTES` 表打开;管理区十页(统计、口味、复核、数据管理、重复文件、高清版、来源与凭证、配置、活动、关注管理)的正文与五张索引页由路由树画。
-- 历史只有一份:`@peach/history` 随 `peach-ui.js` 发出,壳的 `route()` 经 `shellNavigate` 写地址,`<Router>` 的 `navigator` 也是它。路由树挂在一个不进文档的容器上,管理区那一页经 portal 画进 `#stats`。
-- 派发点 `RouteDispatch` 是 `<Routes>` 的兄弟,从头到尾是同一个实例。它在每次历史变化后报给 `routeSeen`,由它决定要不要调 `restoreRoute`。报在提交阶段之后的微任务里:壳打开那一屏时用 `flushSync` 画侧栏等岛,提交阶段内的 `flushSync` 不同步刷新别的根。`<Routes>` 里那十页与 `/resource-sync` 只声明路径,其余落在 `path="*"`。
-- 管理区宿主跟着壳登记的那一条走,不跟地址:壳的 `openXxx` 照旧收舞台、铺骨架、认领表面,再 `openManagedRoute(path, open, {container, isCurrent})`。它领一个代次、先取首屏,取齐后在同一个任务里清掉骨架、放进 `.peach-react` 宿主,宿主用 `flushSync` 当场画完,骨架与正文之间没有空白帧;同一路径再打开就是新代次,页面重挂重取。`claimSurface` 调 `releaseManagedRoute` 收起;详情舞台推 `/item/:id` 不经过它,页面留在舞台下面。
-- `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、云下载预填);回执与换到还归壳的那几屏走壳交给 `configureRouter(actions)` 的 `ShellActions`,经 Context 下发。十页之间的跳转交 `navigate`,派发照旧回到壳;别的路径交 `actions.navigate`。配置页页签与云下载预填先交给壳再换地址,不进地址栏。判据钉在 `test/react/managed-routes.test.tsx`。
+- 历史只有一份:`@peach/history` 随 `peach-ui.js` 发出,壳的 `route()` 经 `shellNavigate` 写地址,`<Router>` 的 `navigator` 也是它。路由树挂在一个不进文档的容器上,管理区那一页经 portal 画进 `#stats`,索引页画进 `#index`。
+- 派发点 `RouteDispatch` 是 `<Routes>` 的兄弟,从头到尾是同一个实例。它在每次历史变化后报给 `routeSeen`,由它决定要不要调 `restoreRoute`。报在提交阶段之后的微任务里:壳打开那一屏时用 `flushSync` 画侧栏等岛,提交阶段内的 `flushSync` 不同步刷新别的根。`<Routes>` 里那十五页与 `/resource-sync` 只声明路径,其余落在 `path="*"`。
+- 管理区宿主跟着壳登记的那一条走,不跟地址:壳的 `openXxx` 照旧收舞台、铺骨架、认领表面,再 `openManagedRoute(path, open, {container, isCurrent})`。它领一个代次、先取首屏,取齐后在同一个任务里清掉骨架、放进 `.peach-react` 宿主,宿主用 `flushSync` 当场画完,骨架与正文之间没有空白帧;同一路径再打开就是新代次,页面重挂重取。两个容器各记一条、互不相收:`claimSurface` 调 `releaseManagedRoute()` 一起收,`showHomeSurfaces` 只收 `#index` 那一条,资料页压在管理页上时管理页藏着照常活;详情舞台推 `/item/:id` 不经过它们,页面留在舞台下面。打开之后壳的开关(选择键)经 `updateManagedRoute(container, patch)` 合进画着的那一页:代次不变,不重挂、不重取,照常排进下一次渲染。
+- `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、云下载预填);回执与换到还归壳的那几屏走壳交给 `configureRouter(actions)` 的 `ShellActions`,经 Context 下发。管理区十页之间的跳转交 `navigate`,派发照旧回到壳;别的路径(含索引页)交 `actions.navigate`。配置页页签与云下载预填先交给壳再换地址,不进地址栏。判据钉在 `test/react/managed-routes.test.tsx`。
- 派发判据是序号:每次历史变化领一个 `seq`;`shellNavigate` 写的那一次当场认领,不派发;后退前进与 React 子树里的 `navigate` 没人认领,派发一次。地址不变的 `popstate` 也领新序号,照样派发。
- 启动:壳在启动链上 `startRouting(restoreRoute)` 派发第一次,并认领到当时的序号。Router 先挂上时它报的序号已在其中;后挂上时读到的初值就是这一个。包到之前发生的后退前进,等 Router 挂上时补派一次。判据钉在 `test/react/router.test.tsx`。
diff --git a/frontend/src/history/index.ts b/frontend/src/history/index.ts
index c9c6e3601..a07c1f2e2 100644
--- a/frontend/src/history/index.ts
+++ b/frontend/src/history/index.ts
@@ -100,6 +100,7 @@ export function routeSeen(seen: number): void {
}
export {
- connectManagedRoutes, listenManagedEntry, managedEntry, openManagedRoute, releaseManagedRoute,
+ connectManagedRoutes, listenManagedEntry, managedEntries, managedEntry, openManagedRoute, releaseManagedRoute,
+ updateManagedRoute,
type ManagedEntry, type ManagedOpenOptions, type ManagedPrefetch,
} from './managed';
diff --git a/frontend/src/history/managed.ts b/frontend/src/history/managed.ts
index 954e452d8..6deb761b8 100644
--- a/frontend/src/history/managed.ts
+++ b/frontend/src/history/managed.ts
@@ -1,18 +1,22 @@
-/* 管理区正文由路由画的那几页(ADR-0031「路由段」):壳决定什么时候开、什么时候收,React 路由树画。
+/* 由路由画的那几页(ADR-0031「路由段」):壳决定什么时候开、什么时候收,React 路由树画。
*
- * 页面画进 `#stats`。那个容器归壳:壳的骨架、播放列表与关注页也画在里面,换页时壳在 `claimSurface`
- * 里收走上一页。所以页面跟着这里登记的那一条走,不跟着地址匹配走:详情舞台压在页面上时地址是
- * `/item/:id`,页面要留着,等壳下一次认领表面才收。
+ * 页面画进壳的两个容器:管理区正文 `#stats`,和索引页与资料页共用的 `#index`。一个容器同时只有一页,
+ * 两个容器各记各的:资料页画进 `#index` 时,管理区那一页只是被壳藏起来、照旧活着(有轮询的页面照着原
+ * 节律取数),等壳下一次认领表面(`claimSurface`)才两个一起收。页面跟着这里登记的那一条走,不跟着地址
+ * 匹配走:详情舞台压在页面上时地址是 `/item/:id`,页面要留着。
*
- * 一次打开:壳铺好骨架后调 `openManagedRoute`,这里取首屏,取齐、壳也还停在这一页时,在同一个任务里
- * 清掉骨架、放进宿主,再让路由树同步画出整页。每次打开都领一个新代次,页面按代次重挂、重取,
- * 和此前每次打开都重挂一棵根一样。 */
+ * 一次打开:壳铺好骨架后调 `openManagedRoute`,这里先收起同一容器里的上一页,再取首屏;取齐、壳也还停在
+ * 这一页时,在同一个任务里换掉骨架、放进宿主,再让路由树同步画出整页。每次打开都领一个新代次,页面按
+ * 代次重挂、重取。打开之后壳的开关(选择模式、换筛选、换版式)经 `updateManagedRoute` 合进同一页的
+ * props:代次不变,页面就地重渲染,不重挂也不重取。 */
-/** 此刻画在管理区正文里的那一页。`host` 是放进 `#stats` 的那个 `.peach-react` 容器。 */
+/** 画在某个容器里的那一页。`host` 是页面 portal 进去的那个 `.peach-react` 宿主。 */
export interface ManagedEntry {
path: string;
props: object;
revision: number;
+ /** 壳的容器(`#stats` 或 `#index`)。 */
+ container: Element;
host: HTMLElement;
}
@@ -20,17 +24,25 @@ export interface ManagedEntry {
export type ManagedPrefetch = (path: string, props: object, signal: AbortSignal) => Promise<void>;
export interface ManagedOpenOptions {
- /** 页面画进的容器(`#stats`)。 */
+ /** 页面画进的容器(`#stats` 或 `#index`)。 */
container: Element;
/** 壳的换页判据:取数期间用户走开了,就不画。 */
isCurrent: () => boolean;
+ /** 壳自己排好的框架:取齐首屏的那一刻由它把框架换进容器,返回页面画进去的宿主。不给就清空容器、
+ * 放进一个新的 `.peach-react`。资料页要这个:浮层吸顶要它的父盒就是 `#index`,新作那一行是遗留层
+ * 卡片、不进 `.peach-react`,所以框架的四块由壳排,页面只占其中一块,再经 portal 画进另外三块。 */
+ place?: (container: Element) => HTMLElement;
}
-type ManagedListener = (entry: ManagedEntry | null) => void;
+/** 订阅者收到的是此刻各个容器里的页面。`sync` 为真时要当场画完:壳在同一个任务里刚换上或撤掉宿主,
+ * 晚一拍就是一帧空白。为假是就地更新,照常排进下一次渲染,同岛时代 `updateIsland` 的节律。 */
+type ManagedListener = (entries: readonly ManagedEntry[], sync: boolean) => void;
+
+interface Pending { revision: number; controller: AbortController }
let prefetcher: Promise<ManagedPrefetch> | null = null;
-let entry: ManagedEntry | null = null;
-let pending: { revision: number; controller: AbortController } | null = null;
+const entries = new Map<Element, ManagedEntry>();
+const pending = new Map<Element, Pending>();
let revision = 0;
const listeners = new Set<ManagedListener>();
@@ -40,27 +52,33 @@ export function connectManagedRoutes(ready: Promise<ManagedPrefetch>): void {
ready.catch(() => {});
}
-export const managedEntry = (): ManagedEntry | null => entry;
+/** 此刻画在这个容器里的那一页;还在取首屏或已经收起时是 null。 */
+export function managedEntry(container: Element): ManagedEntry | null {
+ return entries.get(container) ?? null;
+}
+/** 此刻画着的全部页面,路由树按它画 portal。 */
+export const managedEntries = (): readonly ManagedEntry[] => [...entries.values()];
-/** 路由树订阅:每次换页或收起都同步通知,路由树当场画完。 */
+/** 路由树订阅:每次换页、收起或就地更新都同步通知。 */
export function listenManagedEntry(listener: ManagedListener): () => void {
listeners.add(listener);
return () => { listeners.delete(listener) };
}
-function present(next: ManagedEntry | null): void {
- entry = next;
- for (const listener of [...listeners]) listener(next);
+function notify(sync: boolean): void {
+ const shown = managedEntries();
+ for (const listener of [...listeners]) listener(shown, sync);
}
/** 打开一页并等首屏落地。画上了回 true;期间被收起、被重开或壳已换页回 false。 */
export async function openManagedRoute(path: string, props: object, options: ManagedOpenOptions): Promise<boolean> {
- releaseManagedRoute();
+ const { container } = options;
+ releaseManagedRoute(container);
if (!options.isCurrent()) return false;
- if (!prefetcher) throw new Error('客户端导航还没装载,管理区页面无从画起');
+ if (!prefetcher) throw new Error('客户端导航还没装载,路由树的页面无从画起');
revision += 1;
- const mine = { revision, controller: new AbortController() };
- pending = mine;
+ const mine: Pending = { revision, controller: new AbortController() };
+ pending.set(container, mine);
const prefetch = await prefetcher;
try {
await prefetch(path, props, mine.controller.signal);
@@ -68,26 +86,51 @@ export async function openManagedRoute(path: string, props: object, options: Man
// 中止就是用户已经走开。其余失败照画:原因和重试的节律都在页面自己手里。
if (mine.controller.signal.aborted) return false;
}
- if (pending !== mine) return false;
- pending = null;
+ if (pending.get(container) !== mine) return false;
+ pending.delete(container);
if (!options.isCurrent()) return false;
- // token、Preflight 与焦点规则都作用在 `.peach-react` 上;容器归壳,所以另建一个,收起时连它一起撤掉。
- const host = options.container.ownerDocument.createElement('div');
- host.className = 'peach-react';
- options.container.textContent = '';
- options.container.append(host);
- present({ path, props, revision: mine.revision, host });
+ const host = options.place ? options.place(container) : defaultHost(container);
+ entries.set(container, { path, props, revision: mine.revision, container, host });
+ notify(true);
return true;
}
-/** 收起管理区正文里的那一页:中止在途的首屏取数,卸掉页面并撤掉宿主。没有页面时是空操作。 */
-export function releaseManagedRoute(): void {
- if (pending) {
- pending.controller.abort();
- pending = null;
- }
- const shown = entry;
+/* token、Preflight 与焦点规则都作用在 `.peach-react` 上;容器归壳,所以另建一个,收起时连它一起撤掉。 */
+function defaultHost(container: Element): HTMLElement {
+ const host = container.ownerDocument.createElement('div');
+ host.className = 'peach-react';
+ container.textContent = '';
+ container.append(host);
+ return host;
+}
+
+/** 把壳的开关合进此刻画着的那一页:代次不变,页面就地重渲染,不重挂、不重取。那个容器里还没画上
+ * (还在取首屏或已经收起)时是空操作,打开时交进去的那一份照旧。 */
+export function updateManagedRoute(container: Element, patch: object): void {
+ const shown = entries.get(container);
if (!shown) return;
- present(null);
- shown.host.remove();
+ entries.set(container, { ...shown, props: { ...shown.props, ...patch } });
+ notify(false);
+}
+
+/** 收起容器里的那一页:中止在途的首屏取数,卸掉页面并撤掉宿主。不给容器就全部收起,壳换页认领表面
+ * 时用。没有页面时是空操作。 */
+export function releaseManagedRoute(container?: Element): void {
+ const targets = container ? [container] : [...new Set([...pending.keys(), ...entries.keys()])];
+ const removed: ManagedEntry[] = [];
+ for (const target of targets) {
+ const inflight = pending.get(target);
+ if (inflight) {
+ inflight.controller.abort();
+ pending.delete(target);
+ }
+ const shown = entries.get(target);
+ if (shown) {
+ entries.delete(target);
+ removed.push(shown);
+ }
+ }
+ if (!removed.length) return;
+ notify(true);
+ for (const shown of removed) shown.host.remove();
}
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 1ea487fd2..671d79381 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -47,7 +47,6 @@ export interface IslandContracts {
'entity-page': ReactBundle.EntityPageProps;
'feed-new': ReactBundle.FeedNewProps;
'follow-feed': ReactBundle.FollowFeedProps;
- index: ReactBundle.IndexProps;
'junk-queue': ReactBundle.JunkQueueProps;
'library-processing': ReactBundle.LibraryProcessingProps;
playlists: ReactBundle.PlaylistsProps;
@@ -69,7 +68,6 @@ const REGISTRY: { [N in IslandName]: Island } = {
'entity-page': { react: 'entity-page' },
'feed-new': { react: 'feed-new' },
'follow-feed': { react: 'follow-feed' },
- index: { react: 'index' },
'junk-queue': { react: 'junk-queue' },
'library-processing': { react: 'library-processing' },
playlists: { react: 'playlists' },
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 9e299ee45..056cf2152 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -475,7 +475,6 @@ export interface ReactPages {
'entity-page': ReactPage<EntityPageProps>;
'feed-new': ReactPage<FeedNewProps>;
'follow-feed': ReactPage<FollowFeedProps>;
- index: ReactPage<IndexProps>;
'junk-queue': ReactPage<JunkQueueProps>;
'library-processing': ReactPage<LibraryProcessingProps>;
playlists: ReactPage<PlaylistsProps>;
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index c74d607cf..c5660d543 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -16,8 +16,6 @@ import { prefetchFeedNew } from './feed-new/feed-new';
import { FeedNewPage } from './feed-new/feed-new-page';
import { prefetchFollowFeed } from './follow-feed/follow-feed';
import { FollowFeedPage } from './follow-feed/follow-feed-page';
-import { prefetchIndex } from './index/index-data';
-import { IndexPage } from './index/index-page';
import { JunkQueuePage } from './junk-queue/junk-queue-page';
import { prefetchLibraryProcessing } from './library-processing/library-processing';
import { LibraryProcessingCard } from './library-processing/library-processing-card';
@@ -66,7 +64,6 @@ export const pages: Bundle.ReactPages = {
'feed-new': { prefetch: prefetchFeedNew, mount: mounter(FeedNewPage) },
/* 关注列表第一页与凭据两趟并行,挂上就是最终样子;换筛选之后的取数由页面自己的查询驱动。 */
'follow-feed': { prefetch: prefetchFollowFeed, mount: mounter(FollowFeedPage) },
- index: { prefetch: (props, signal) => prefetchIndex(props, signal), mount: mounter(IndexPage) },
/* 分类条由地址决定、挂上就画得出最终样子,等的只有读数:首屏不在这里等,由页面自己的
查询驱动等待态(`junk-queue-page.tsx` 开头)。 */
'junk-queue': { prefetch: async () => {}, mount: mounter(JunkQueuePage) },
diff --git a/frontend/src/react/router/managed-routes.tsx b/frontend/src/react/router/managed-routes.tsx
index 169b4a93c..0beb8885c 100644
--- a/frontend/src/react/router/managed-routes.tsx
+++ b/frontend/src/react/router/managed-routes.tsx
@@ -1,8 +1,10 @@
-/* 管理区由路由画的那几页:路径到首屏取数与整页的对照表。
+/* 由路由画的那几页:路径到首屏取数与整页的对照表,两张。
*
- * 壳每次打开一页时交进来的 `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、引导标记、
- * 一次性预填);回执与换到还归壳的那几屏走 `ShellActions`。这几页之间的跳转走 `go`:路由树里有的
- * 路径交给 React Router 的 `navigate`,其余交壳。 */
+ * `MANAGED_ROUTES` 是管理区那几页(画进 `#stats`),键是精确路径;`INDEX_ROUTES` 是索引页(画进
+ * `#index`)。壳每次打开一页时交进来的 `open` 只带那一次才算得出的值(地址上的分类与页签、只读状态、
+ * 引导标记、一次性预填);回执与换到还归壳的那几屏走 `ShellActions`。管理区几页之间的跳转走 `go`:
+ * 落在 `MANAGED_ROUTES` 上的交给 React Router 的 `navigate`,其余交壳。索引页不走 `go`:它在页内写
+ * 地址一律由壳认领(`routeIndex`),跨页也交壳,派发次数同壳自己打开。 */
import type { ReactElement } from 'react';
import { javDisplayName, javTitleHtml } from '@peach/legacy/jav-title';
@@ -17,6 +19,8 @@ import { prefetchDuplicates } from '../duplicates/duplicates';
import { DuplicatesPage } from '../duplicates/duplicates-page';
import { prefetchFollowManage } from '../follow-manage/follow-manage';
import { FollowManagePage } from '../follow-manage/follow-manage-page';
+import { prefetchIndex } from '../index/index-data';
+import { IndexPage } from '../index/index-page';
import { prefetchQualityGoals } from '../quality-goals/quality-goals';
import { QualityGoalsPage } from '../quality-goals/quality-goals-page';
import { prefetchReview } from '../review/review';
@@ -29,7 +33,9 @@ import { prefetchStats } from '../stats/stats';
import { StatsPage } from '../stats/stats-page';
import { DEFAULT_WINDOW, prefetchTaste } from '../taste/taste';
import { TastePage } from '../taste/taste-page';
-import type { ManagedOpenProps, ManagedPath, ShellActions } from './shell-actions';
+import type {
+ IndexOpenProps, IndexOpenPropsTable, IndexRoutePath, ManagedOpenProps, ManagedPath, ShellActions,
+} from './shell-actions';
interface ManagedRoute<P> {
prefetch(open: P, signal: AbortSignal): Promise<void>;
@@ -37,6 +43,9 @@ interface ManagedRoute<P> {
}
type ManagedRouteTable = { [Path in ManagedPath]: ManagedRoute<ManagedOpenProps[Path]> };
+type IndexRouteTable = { [Path in IndexRoutePath]: ManagedRoute<IndexOpenPropsTable[Path]> };
+/** 路由树画的全部路径:管理区那几页加索引页。 */
+export type RoutedPath = ManagedPath | IndexRoutePath;
/* 数据管理页读数卡的去处里,只有重复文件不按管理区身份找:它报的是数据管理的身份。 */
function openCleanupSection(section: DataCleanupSection, actions: ShellActions, go: (path: string) => void) {
@@ -123,17 +132,42 @@ export const MANAGED_ROUTES: ManagedRouteTable = {
},
};
+/** 管理区那几页之间的跳转判据:只认 `MANAGED_ROUTES` 的精确路径。索引页不算:它们换 search 要由壳
+ * 认领,跨进来也是壳写地址再自己打开。 */
export const isManagedPath = (path: string): path is ManagedPath => Object.hasOwn(MANAGED_ROUTES, path);
+/* 索引页:地址栏上的四项由壳从地址读出、跟着这一次打开交进来;页内换档经 `routeIndex` 由壳写地址并认领,
+ 不重挂(后退前进到同一页的另一份 search 时,壳照旧按地址重开一次)。首屏只取第一页。 */
+const indexRoute: ManagedRoute<IndexOpenProps> = {
+ prefetch: (open, signal) => prefetchIndex(open, signal),
+ page: (open, actions) => (
+ <IndexPage {...open} route={actions.routeIndex} savePreference={actions.savePeopleLayout}
+ exitSelectMode={actions.exitSelectMode} personAvatar={actions.personAvatar} authorAvatar={actions.authorAvatar}
+ tagLabel={tagLabel} openEntity={actions.openEntity} showTags={actions.showIndexTags}
+ openFollowAuthor={actions.openFollowAuthor} openFollowTag={actions.openFollowTag} />
+ ),
+};
+export const INDEX_ROUTES: IndexRouteTable = {
+ '/performers': indexRoute, '/creators': indexRoute, '/studios': indexRoute, '/agencies': indexRoute, '/tags': indexRoute,
+};
+
+/** 路由树画的路径(两张表的键)。`<Routes>` 的声明、首屏取数与画页都按它查。 */
+export const ROUTED_PATHS: readonly RoutedPath[] = [
+ ...Object.keys(MANAGED_ROUTES) as ManagedPath[], ...Object.keys(INDEX_ROUTES) as IndexRoutePath[],
+];
+export const isRoutedPath = (path: string): path is RoutedPath => isManagedPath(path) || Object.hasOwn(INDEX_ROUTES, path);
+
+function routeOf(path: RoutedPath): ManagedRoute<object> {
+ return (isManagedPath(path) ? MANAGED_ROUTES[path] : INDEX_ROUTES[path as IndexRoutePath]) as ManagedRoute<object>;
+}
+
/** 首屏取数(`openManagedRoute` 经 `connectManagedRoutes` 调它)。 */
export function prefetchManagedRoute(path: string, open: object, signal: AbortSignal): Promise<void> {
- if (!isManagedPath(path)) return Promise.reject(new Error(`路由树里没有这一页:${path}`));
- const route = MANAGED_ROUTES[path] as ManagedRoute<object>;
- return route.prefetch(open, signal);
+ if (!isRoutedPath(path)) return Promise.reject(new Error(`路由树里没有这一页:${path}`));
+ return routeOf(path).prefetch(open, signal);
}
/** 画这一页。 */
-export function managedPage(path: ManagedPath, open: object, actions: ShellActions, go: (path: string) => void) {
- const route = MANAGED_ROUTES[path] as ManagedRoute<object>;
- return route.page(open, actions, go);
+export function managedPage(path: RoutedPath, open: object, actions: ShellActions, go: (path: string) => void) {
+ return routeOf(path).page(open, actions, go);
}
diff --git a/frontend/src/react/router/router.tsx b/frontend/src/react/router/router.tsx
index c847e4b6f..c8aa88386 100644
--- a/frontend/src/react/router/router.tsx
+++ b/frontend/src/react/router/router.tsx
@@ -1,13 +1,13 @@
/* 客户端导航(ADR-0031「React Router 外壳阶段接管」):React Router 的 Declarative 模式接管 history。
- * 管理区那几页(`managed-routes.tsx`)由这棵树画,其余页面仍由壳的 `ROUTES` 表打开。
+ * 管理区那几页与索引页(`managed-routes.tsx`)由这棵树画,其余页面仍由壳的 `ROUTES` 表打开。
*
* 用底层的 `<Router>`,history 是 `@peach/history` 那一份:壳在 React 包到之前就要写地址,`<BrowserRouter>`
* 自己建的 history 只听 `popstate`,看不见壳 push 进去的条目。也不用 `unstable_HistoryRouter`:它的更新
* 默认包在 `startTransition` 里,接连两次变化会并成一次渲染,后退前进就少派发一次。
*
* 派发点与管理区宿主是 `<Routes>` 的兄弟,从头活到尾:后退前进照旧派发给壳,由壳的准备动作(收起舞台、
- * 铺骨架、认领表面)打开那一屏;管理区那一页跟着壳登记的那一条走(`@peach/history` 的
- * `openManagedRoute`),详情舞台压在上面、地址换成 `/item/:id` 时它留在原处。`<Routes>` 里那几条具体
+ * 铺骨架、认领表面)打开那一屏;画着的页面跟着壳登记的那几条走(`@peach/history` 的
+ * `openManagedRoute`,每个容器一条),详情舞台压在上面、地址换成 `/item/:id` 时它留在原处。`<Routes>` 里那几条具体
* 路由只声明路径,`path="*"` 不按路径设 key,同一个实例在非管理区地址之间从头活到尾。 */
import {
createContext, memo, useContext, useLayoutEffect, useMemo, useRef, useState, type ReactNode, type RefObject,
@@ -17,11 +17,11 @@ import { createRoot, type Root } from 'react-dom/client';
import { Route, Router, Routes, useNavigate, type NavigateFunction } from 'react-router';
import {
- listenManagedEntry, managedEntry, peachHistory, routeSeen, type ManagedEntry, type Navigation,
+ listenManagedEntry, managedEntries, peachHistory, routeSeen, type ManagedEntry, type Navigation,
} from '@peach/history';
import { Providers } from '../providers';
-import { MANAGED_ROUTES, isManagedPath, managedPage } from './managed-routes';
+import { ROUTED_PATHS, isManagedPath, isRoutedPath, managedPage } from './managed-routes';
import type { ShellActions } from './shell-actions';
/* 每次历史变化的序号。地址没变的 `popstate`(同一条目重放)不会让 Router 的 location 变,
@@ -65,25 +65,31 @@ function NavigateInto({ target }: { target: RefObject<NavigateFunction | null> }
return null;
}
-/** 管理区页面里的跳转:落在路由树这几页上的交给 React Router(派发照旧回到壳,打开次数与壳自己写地址
- * 再打开相同),别的路径交壳自己写地址、按路由表打开。 */
+/** 管理区页面里的跳转:落在管理区那几页上的交给 React Router(派发照旧回到壳,打开次数与壳自己写地址
+ * 再打开相同),别的路径交壳自己写地址、按路由表打开。索引页与资料页虽然也由路由树画,仍交壳:同一页
+ * 换 search 必须由壳认领,跨页进来也是壳写地址再自己打开。 */
export function managedGo(path: string, actions: ShellActions, navigate: NavigateFunction): void {
const target = new URL(path, window.location.href);
if (!isManagedPath(target.pathname)) { actions.navigate(path); return }
void navigate(`${target.pathname}${target.search}${target.hash}`);
}
-/** 管理区宿主:画壳登记的那一页。
+/** 页面宿主:画壳在各个容器里登记的那一页(`#stats` 一页、`#index` 一页,互不相收)。
*
* 换页与收起都由 `@peach/history` 同步通知,这里用 `flushSync` 当场画完:壳在同一个任务里刚换上宿主
- * (或刚撤掉它),晚一拍画就是一帧空白。每次打开领一个代次,页面按代次重挂,首屏读的是刚取回的缓存。 */
+ * (或刚撤掉它),晚一拍画就是一帧空白。每次打开领一个代次,页面按代次重挂,首屏读的是刚取回的缓存。
+ * 就地更新(`updateManagedRoute`)只换那一页的 props、代次不变,照常排进下一次渲染:同岛时代
+ * `updateIsland` 的节律,而且壳的开关可能就是从页面自己的 effect 里推过来的,那里不能 `flushSync`。 */
function ManagedSurface() {
const actions = useContext(ShellActionsContext);
- const [entry, setEntry] = useState<ManagedEntry | null>(managedEntry);
+ const [entries, setEntries] = useState<readonly ManagedEntry[]>(managedEntries);
const navigate = useRef<NavigateFunction | null>(null);
useLayoutEffect(() => {
- setEntry(managedEntry());
- return listenManagedEntry((next) => { flushSync(() => setEntry(next)) });
+ setEntries(managedEntries());
+ return listenManagedEntry((next, sync) => {
+ if (sync) flushSync(() => setEntries(next));
+ else setEntries(next);
+ });
}, []);
const go = useMemo(() => (path: string) => {
if (actions && navigate.current) managedGo(path, actions, navigate.current);
@@ -91,7 +97,8 @@ function ManagedSurface() {
return (
<>
<NavigateInto target={navigate} />
- {entry && actions ? <ManagedPortal entry={entry} actions={actions} go={go} /> : null}
+ {actions ? entries.map((entry) => (
+ <ManagedPortal key={entry.revision} entry={entry} actions={actions} go={go} />)) : null}
</>
);
}
@@ -99,7 +106,7 @@ function ManagedSurface() {
const ManagedPortal = memo(function ManagedPortal(
{ entry, actions, go }: { entry: ManagedEntry; actions: ShellActions; go: (path: string) => void },
) {
- if (!isManagedPath(entry.path)) return null;
+ if (!isRoutedPath(entry.path)) return null;
return createPortal(managedPage(entry.path, entry.props, actions, go), entry.host, String(entry.revision));
});
@@ -112,7 +119,7 @@ export function RouterRoot({ children, actions = null }: { children?: ReactNode;
<RouteDispatch />
<ManagedSurface />
<Routes>
- {Object.keys(MANAGED_ROUTES).map((path) => <Route key={path} path={path} element={null} />)}
+ {ROUTED_PATHS.map((path) => <Route key={path} path={path} element={null} />)}
{/* 旧直达地址:壳把它改写成 `/data-cleanup#resource-sync` 再打开数据管理页。 */}
<Route path="/resource-sync" element={null} />
<Route path="*" element={children} />
@@ -123,7 +130,7 @@ export function RouterRoot({ children, actions = null }: { children?: ReactNode;
);
}
-/* 根建在一个不进文档的容器上:管理区页面经 portal 画进壳的 `#stats`,别的地方什么都不画。
+/* 根建在一个不进文档的容器上:页面经 portal 画进壳的 `#stats` 与 `#index`,别的地方什么都不画。
* 第一次渲染同步做完,宿主在 `loadRouter` 落定之前就已经订阅:壳打开的第一页取齐时它一定在听。 */
let root: Root | null = null;
export function configureRouter(actions: ShellActions): void {
diff --git a/frontend/src/react/router/shell-actions.ts b/frontend/src/react/router/shell-actions.ts
index 593a24341..7c5998b14 100644
--- a/frontend/src/react/router/shell-actions.ts
+++ b/frontend/src/react/router/shell-actions.ts
@@ -1,10 +1,13 @@
-/* 壳交给路由树的能力(`configureRouter(actions)`),经 Context 下发给管理区那几页。
+/* 壳交给路由树的能力(`configureRouter(actions)`),经 Context 下发给路由树画的那几页。
*
* 这里只放两类东西:换到还归壳的那一屏(目录、资料页、详情、关注、垃圾文件),和只有壳才有的
* 状态或回执(Toast、偏好存储、一次性上下文)。纯查表的助手(`tagLabel`、`javTitleHtml`)由页面
* 从 `@peach/legacy/*` 直接 import;每次打开才算得出的值(只读状态、地址上的分类与页签、引导标记)
* 跟着那一次打开走,不在这里。 */
+import type { OnlineAuthor } from '../follow/online-vocab';
+import type { IndexKind, IndexPerson, IndexRoute, PeopleLayout, PersonAvatar } from '../index/index-data';
+
/** 云下载表单的预填:番号、标题与来处(`asset:12`、`follow:34`、`wishlist:5`)。 */
export interface CloudDownloadPrefill { code?: string; title?: string; origin?: string }
@@ -47,9 +50,24 @@ export interface ShellActions {
saveFollowPreference(patch: { pageSize?: number; layout?: string }): void;
/** 来源徽标(含计费标记)的 HTML。 */
srcBadge(location: string, cost: string): string;
+ /** 索引页把过滤词、范围、视图与类型写回地址栏,不重开。`replace` 用在打字过滤那种一路改写的场合。 */
+ routeIndex(params: IndexRoute, options?: { replace?: boolean }): void;
+ /** 索引页的版式偏好改了,存储归壳(资料页的名册读的也是它)。 */
+ savePeopleLayout(patch: { layout: PeopleLayout }): void;
+ /** 退出顶栏的选择模式:键归壳。 */
+ exitSelectMode(): void;
+ /** 本地名册一格的头像(圆框里那段 HTML 与人脸取景),回落链在壳里只有一份。 */
+ personAvatar(item: IndexPerson, entityKind: string, big: boolean): PersonAvatar;
+ /** 在线创作者一格的头像 HTML:主页头像优先、归档兜底,都取不到落回首字母。 */
+ authorAvatar(author: OnlineAuthor): string;
+ /** 回目录,按这一枚或这几枚本地标签筛选。 */
+ showIndexTags(tags: string[], match: 'any' | 'all'): void;
+ /** 去关注页,只看这一位创作者或这一枚在线标签的更新。 */
+ openFollowAuthor(key: string): void;
+ openFollowTag(tag: string): void;
}
-/** 壳每次打开时交进来的值,按页面分。 */
+/** 壳每次打开时交进来的值,按页面分。管理区那几页画进 `#stats`。 */
export interface ManagedOpenProps {
'/stats': { configurable: boolean };
'/taste': { onboarding: boolean };
@@ -67,3 +85,15 @@ export interface ManagedOpenProps {
}
export type ManagedPath = keyof ManagedOpenProps;
+
+/** 索引页每次打开交进来的值:地址栏上的那几项(壳从地址读出)、这台浏览器的版式偏好、顶栏选择键的
+ * 现值,和本机能不能改配置。选择键之后的开关经 `updateManagedRoute` 推进来。 */
+export interface IndexOpenProps extends IndexRoute {
+ layout: PeopleLayout;
+ selectMode: boolean;
+ configurable: boolean;
+}
+
+/** 索引五页画进 `#index`,一种名册一条路径。 */
+export type IndexRoutePath = `/${IndexKind}`;
+export type IndexOpenPropsTable = { [Path in IndexRoutePath]: IndexOpenProps };
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index c125a0d92..7a2e09c84 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -1,7 +1,7 @@
import { act } from 'react';
import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
-import { islandMounted, islandNames, mountIsland, unmountIsland, updateIsland } from '../src/islands';
+import { islandMounted, islandNames, mountIsland, unmountIsland } from '../src/islands';
import { queryClient } from '../src/react/query';
import { deferredFetch } from './helpers';
@@ -43,7 +43,7 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'catalog-filter', 'catalog-grid', 'entity-page', 'feed-new', 'follow-feed', 'index',
+ 'catalog-filter', 'catalog-grid', 'entity-page', 'feed-new', 'follow-feed',
'junk-queue', 'library-processing', 'playlists', 'search']);
});
@@ -117,34 +117,6 @@ describe('mountIsland', () => {
expect(islandMounted(el)).toBe(false);
});
- /* 壳那枚选择键关掉时经 `updateIsland` 把新值推进已经挂着的根:只合并这一项,其余 props
- 照旧,也不重挂——重挂会把页头连同过滤框里打了一半的字一起换掉。 */
- it('把一项新值推进已经挂着的根,不重挂', async () => {
- const fetch = deferredFetch({ items: [{ k: '痴女', n: 1, cat: 'role' }], has_more: false });
- fetch.install();
- const el = container();
- const showTags = vi.fn();
- const props = {
- kind: 'tags', q: '', scope: 'local', view: 'alphabet', category: 'all', layout: 'big', selectMode: true,
- route: vi.fn(), savePreference: vi.fn(), exitSelectMode: vi.fn(),
- personAvatar: () => ({ html: '', face: '' }), authorAvatar: () => '',
- tagLabel: (tag: string) => tag, openEntity: vi.fn(), showTags, openFollowAuthor: vi.fn(),
- openFollowTag: vi.fn(), configurable: false,
- } as const;
- const mounting = mountIsland('index', el, props);
- await until(() => fetch.fetched.mock.calls.length > 0, '取数发出去');
- fetch.resolve();
- await act(async () => { await mounting });
- const input = el.querySelector('[data-index-search] input');
- const tag = () => el.querySelector('[data-alpha-tag][data-k="痴女"]')!;
- await act(async () => { (tag() as HTMLElement).click() });
- expect(tag().getAttribute('aria-pressed')).toBe('true');
- await act(async () => { updateIsland(el, { selectMode: false }) });
- expect(tag().getAttribute('aria-pressed'), '关掉选择键时所选要跟着清空').toBe('false');
- expect(el.querySelector('[data-index-search] input'), '推新值不许重挂').toBe(input);
- await act(async () => { (tag() as HTMLElement).click() });
- expect(showTags, '其余 props 照旧:不在选择模式时点一枚直接回目录').toHaveBeenCalledWith(['痴女'], 'all');
- });
});
describe('unmountIsland', () => {
diff --git a/frontend/test/react/index-page.test.tsx b/frontend/test/react/index-page.test.tsx
index 3cd6e0706..b70977075 100644
--- a/frontend/test/react/index-page.test.tsx
+++ b/frontend/test/react/index-page.test.tsx
@@ -56,7 +56,7 @@ function props(route: Partial<IndexRoute> = {}, patch: Partial<IndexProps> = {})
}
let setSelectMode: (on: boolean) => void = () => {};
-/** 选择键归壳:壳经 `updateIsland` 推进来的就是这一项,这里用一层状态代替。 */
+/** 选择键归壳:壳经 `updateManagedRoute` 推进来的就是这一项,这里用一层状态代替。 */
function Shell(given: IndexProps) {
const [selectMode, set] = useState(given.selectMode);
setSelectMode = set;
diff --git a/frontend/test/react/managed-routes.test.tsx b/frontend/test/react/managed-routes.test.tsx
index 568c72a9d..e9abe4531 100644
--- a/frontend/test/react/managed-routes.test.tsx
+++ b/frontend/test/react/managed-routes.test.tsx
@@ -1,8 +1,9 @@
-/* 管理区由路由画的那几页(`src/history/managed.ts` 与 `src/react/router/`):壳的骨架留到首屏取齐,
- * 换成整页落在同一个任务里;冷启动不论 Router 先挂还是壳先开始路由都只派发一次;每次打开都重取;
- * 详情舞台压在上面时页面留着,壳下一次认领表面才收;这几页之间的跳转走 React Router,别的交壳。
+/* 由路由画的那几页(`src/history/managed.ts` 与 `src/react/router/`;管理区画进 `#stats`,索引页画进
+ * `#index`):壳的骨架留到首屏取齐,换成整页落在同一个任务里;冷启动不论 Router 先挂还是壳先开始路由
+ * 都只派发一次;每次打开都重取,壳的开关就地合进去不重挂;两个容器互不相收;详情舞台压在上面时页面
+ * 留着,壳下一次认领表面才收;管理区几页之间的跳转走 React Router,别的交壳。
*
- * 历史对象、派发状态与那一条登记都是模块级的,和页面上只有一份一致,所以每条用例重新装载
+ * 历史对象、派发状态与各容器的登记都是模块级的,和页面上只有一份一致,所以每条用例重新装载
* `src/history` 与 `src/react/router`。 */
import { act, type ReactElement } from 'react';
import { createRoot } from 'react-dom/client';
@@ -42,6 +43,9 @@ function shellActions(): ShellActions {
receipt: vi.fn(), toast: vi.fn(), failure: vi.fn(), revealSource: vi.fn(async () => ''),
reopenTutorial: vi.fn(async () => {}), requestConfigurationSection: vi.fn(), requestCloudDownload: vi.fn(),
routeReview: vi.fn(), routeFollowManage: vi.fn(), saveFollowPreference: vi.fn(), srcBadge: () => '',
+ routeIndex: vi.fn(), savePeopleLayout: vi.fn(), exitSelectMode: vi.fn(),
+ personAvatar: vi.fn(() => ({ html: '', face: '' })), authorAvatar: vi.fn(() => ''), showIndexTags: vi.fn(),
+ openFollowAuthor: vi.fn(), openFollowTag: vi.fn(),
};
}
@@ -205,7 +209,7 @@ it('取数期间壳换了页就不画,骨架留给下一页', async () => {
fetch.resolve();
await act(async () => { expect(await opening).toBe(false) });
expect(stats.firstElementChild).toBe(skeleton);
- expect(r.managedEntry()).toBeNull();
+ expect(r.managedEntry(stats)).toBeNull();
});
it('同一路径再打开一次就重取:每次打开领一个新代次,页面重挂', async () => {
@@ -217,12 +221,12 @@ it('同一路径再打开一次就重取:每次打开领一个新代次,页
fetch.install();
await act(async () => { await open(r, stats) });
const page = painted(stats);
- const revision = r.managedEntry()?.revision;
+ const revision = r.managedEntry(stats)?.revision;
act(() => { r.releaseManagedRoute() });
expect(stats.querySelector('.peach-react'), '收起时宿主跟着撤掉').toBeNull();
await act(async () => { await open(r, stats) });
expect(fetch.taskCalls()).toBe(2);
- expect(r.managedEntry()?.revision).not.toBe(revision);
+ expect(r.managedEntry(stats)?.revision).not.toBe(revision);
expect(painted(stats)).not.toBeNull();
expect(painted(stats)).not.toBe(page);
});
@@ -261,7 +265,7 @@ it('壳直接改写了容器再收起也不报错:页面画在自己的宿主
act(() => { r.releaseManagedRoute() });
expect(errors).not.toHaveBeenCalled();
expect(stats.innerHTML).toBe('<p>别的页面</p>');
- expect(r.managedEntry()).toBeNull();
+ expect(r.managedEntry(stats)).toBeNull();
});
it('路由树没装载就打开:直接失败,不是静默什么都不画', async () => {
@@ -439,3 +443,148 @@ it('活动页的预填只跟着那一次打开:不带就是空表单,也不
expect('prefill' in plain).toBe(false);
expect([location.href.includes('片名'), JSON.stringify(window.history.state ?? null).includes('片名')]).toEqual([false, false]);
});
+
+/** 索引页与资料页共用的容器,里面是壳铺好的骨架。 */
+function indexSurface() {
+ const index = document.createElement('section');
+ index.id = 'index';
+ index.innerHTML = '<div class="geist-skeleton" data-skeleton="index">正在读取</div>';
+ document.body.append(index);
+ return { index, skeleton: index.firstElementChild! };
+}
+
+const TAGS = { items: [{ k: '痴女', n: 1, cat: 'role' }], has_more: false };
+const tagsOpen = (selectMode = false) => ({
+ kind: 'tags', q: '', scope: 'local', view: 'alphabet', category: 'all', layout: 'big', selectMode, configurable: false,
+});
+
+/** 索引页的取数:`/api/index` 按需手动兑现,其余当场回空表。 */
+function indexFetch(body: unknown = TAGS, { deferred = true } = {}) {
+ const pending: Array<() => void> = [];
+ const fetched = vi.fn((input: string, init?: RequestInit) => {
+ if (!input.startsWith('/api/index')) return Promise.resolve(reply({ items: [], has_more: false }));
+ if (!deferred) return Promise.resolve(reply(body));
+ return new Promise<Reply>((resolve, reject) => {
+ pending.push(() => resolve(reply(body)));
+ init?.signal?.addEventListener('abort', () => { reject(new DOMException('已中止', 'AbortError')) });
+ });
+ });
+ return {
+ fetched,
+ indexCalls: () => fetched.mock.calls.filter(([input]) => input.startsWith('/api/index')).length,
+ resolve: () => { for (const settle of pending.splice(0)) settle() },
+ install: () => vi.stubGlobal('fetch', fetched),
+ };
+}
+
+it('冷启动深链索引页:壳画的骨架留到首屏取齐,换成整页在同一批变化里', async () => {
+ const r = await load('/tags');
+ const { index, skeleton } = indexSurface();
+ await mount(r);
+ r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute));
+ const fetch = indexFetch();
+ fetch.install();
+ let opened: Promise<boolean> | undefined;
+ const dispatch = vi.fn(() => { opened = r.openManagedRoute('/tags', tagsOpen(), { container: index, isCurrent: () => true }) });
+ await act(async () => { await r.startRouting(dispatch) });
+ await until(() => fetch.indexCalls() > 0, '首屏取数发出去');
+ expect(index.firstElementChild, '取齐之前骨架原样留着').toBe(skeleton);
+ const batches = watch(index, skeleton, '痴女');
+ fetch.resolve();
+ await act(async () => { expect(await opened).toBe(true) });
+ expect(dispatch).toHaveBeenCalledTimes(1);
+ expect(batches[0], '骨架撤下的那一批变化里整页已经画好').toEqual({ skeleton: false, painted: true });
+ expect(index.querySelector(':scope > .peach-react [data-index-search]')).not.toBeNull();
+});
+
+/* 壳那枚选择键关掉时经 `updateManagedRoute` 把新值推进画着的那一页:只合并这一项,其余 props 照旧,
+ 代次不变、不重挂也不重取——重挂会把页头连同过滤框里打了一半的字一起换掉。 */
+it('就地更新:合并进画着的那一页,不重挂、不重取,代次不变', async () => {
+ const r = await load('/tags');
+ const { index } = indexSurface();
+ const actions = await mount(r);
+ r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute));
+ const fetch = indexFetch(TAGS, { deferred: false });
+ fetch.install();
+ await act(async () => { await r.openManagedRoute('/tags', tagsOpen(true), { container: index, isCurrent: () => true }) });
+ const revision = r.managedEntry(index)?.revision;
+ const calls = fetch.fetched.mock.calls.length;
+ const input = index.querySelector('[data-index-search] input');
+ const tag = () => index.querySelector<HTMLElement>('[data-alpha-tag][data-k="痴女"]')!;
+ await act(async () => { tag().click() });
+ expect(tag().getAttribute('aria-pressed')).toBe('true');
+ await act(async () => { r.updateManagedRoute(index, { selectMode: false }) });
+ expect(tag().getAttribute('aria-pressed'), '关掉选择键时所选要跟着清空').toBe('false');
+ expect(index.querySelector('[data-index-search] input'), '推新值不许重挂').toBe(input);
+ expect(r.managedEntry(index)?.revision).toBe(revision);
+ expect(r.managedEntry(index)?.props).toMatchObject({ kind: 'tags', selectMode: false, layout: 'big' });
+ expect(fetch.fetched.mock.calls.length, '推新值不许重取').toBe(calls);
+ await act(async () => { tag().click() });
+ expect(vi.mocked(actions.showIndexTags), '其余 props 照旧:不在选择模式时点一枚直接回目录')
+ .toHaveBeenCalledWith(['痴女'], 'all');
+});
+
+it('就地更新在容器里没有画着的页面时是空操作:还在取首屏时交进去的那一份照旧', async () => {
+ const r = await load('/tags');
+ const { index } = indexSurface();
+ await mount(r);
+ r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute));
+ const fetch = indexFetch();
+ fetch.install();
+ r.updateManagedRoute(index, { selectMode: true });
+ expect(r.managedEntry(index)).toBeNull();
+ const opening = r.openManagedRoute('/tags', tagsOpen(), { container: index, isCurrent: () => true });
+ await until(() => fetch.indexCalls() > 0, '首屏取数发出去');
+ r.updateManagedRoute(index, { selectMode: true });
+ fetch.resolve();
+ await act(async () => { expect(await opening).toBe(true) });
+ expect(r.managedEntry(index)?.props).toMatchObject({ selectMode: false });
+});
+
+/* 资料页画进 `#index` 时管理区那一页只是被壳藏起来:两个容器各记各的,收一个不动另一个;
+ 壳认领表面时不给容器,两个一起收。 */
+it('`#stats` 与 `#index` 各画一页,互不相收;不给容器时一起收', async () => {
+ const r = await load('/activity');
+ const { stats } = surface();
+ const { index } = indexSurface();
+ await mount(r);
+ r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute));
+ const tasksReply = tasksFetch(tasks(), { deferred: false });
+ const tagsReply = indexFetch(TAGS, { deferred: false });
+ vi.stubGlobal('fetch', vi.fn((input: string, init?: RequestInit) => (
+ input.startsWith('/api/index') ? tagsReply.fetched(input, init) : tasksReply.fetched(input, init))));
+ await act(async () => { await open(r, stats) });
+ const page = painted(stats);
+ await act(async () => { await r.openManagedRoute('/tags', tagsOpen(), { container: index, isCurrent: () => true }) });
+ expect(painted(stats), '在 `#index` 里打开一页不收 `#stats` 那一页').toBe(page);
+ expect(r.managedEntries().map((entry) => entry.path)).toEqual(['/activity', '/tags']);
+ act(() => { r.releaseManagedRoute(index) });
+ expect(index.querySelector('.peach-react')).toBeNull();
+ expect(painted(stats), '收 `#index` 不动 `#stats`').toBe(page);
+ await act(async () => { await r.openManagedRoute('/tags', tagsOpen(), { container: index, isCurrent: () => true }) });
+ act(() => { r.releaseManagedRoute() });
+ expect([stats.children.length, index.children.length, r.managedEntries().length]).toEqual([0, 0, 0]);
+});
+
+it('索引页:页内写地址、存版式、头像与去处都接到壳的那一组上', async () => {
+ const r = await load();
+ const actions = shellActions();
+ const props = (r.INDEX_ROUTES['/performers'].page(
+ { ...tagsOpen(), kind: 'performers' } as never, actions, vi.fn()) as ReactElement<Record<string, unknown>>).props;
+ expect([props.route, props.savePreference, props.exitSelectMode, props.personAvatar, props.authorAvatar,
+ props.openEntity, props.showTags, props.openFollowAuthor, props.openFollowTag]).toEqual([
+ actions.routeIndex, actions.savePeopleLayout, actions.exitSelectMode, actions.personAvatar, actions.authorAvatar,
+ actions.openEntity, actions.showIndexTags, actions.openFollowAuthor, actions.openFollowTag]);
+ expect([props.kind, props.layout, props.selectMode, props.configurable]).toEqual(['performers', 'big', false, false]);
+ expect((props.tagLabel as (tag: string) => string)('JK制服')).toBe('JK');
+});
+
+it('索引页的路径不走 React Router:同页换 search 与跨页进来都交壳', async () => {
+ const r = await load('/');
+ const actions = shellActions();
+ const navigate = vi.fn();
+ for (const path of ['/performers', '/tags?view=cloud', '/studios']) r.managedGo(path, actions, navigate);
+ expect(navigate).not.toHaveBeenCalled();
+ expect(vi.mocked(actions.navigate).mock.calls).toEqual([['/performers'], ['/tags?view=cloud'], ['/studios']]);
+ expect(r.ROUTED_PATHS).toEqual(expect.arrayContaining(['/performers', '/creators', '/studios', '/agencies', '/tags']));
+});
diff --git a/frontend/test/react/router.test.tsx b/frontend/test/react/router.test.tsx
index 7c348ec75..07a84e3b6 100644
--- a/frontend/test/react/router.test.tsx
+++ b/frontend/test/react/router.test.tsx
@@ -108,12 +108,12 @@ it('path="*" 的元素不随导航重挂,只跟着地址重渲染', async () =
}
await mount(r, <Probe />);
await act(async () => { await r.startRouting(() => {}) });
- for (const path of ['/playlists', '/performers', '/item/7']) await act(async () => { r.shellNavigate(path) });
- await act(async () => { pop('/performers') });
- await act(async () => { r.peachHistory.push('/tags') });
+ for (const path of ['/playlists', '/follow', '/item/7']) await act(async () => { r.shellNavigate(path) });
+ await act(async () => { pop('/follow') });
+ await act(async () => { r.peachHistory.push('/trash') });
expect([mounted, unmounted]).toEqual([1, 0]);
- expect(seen.at(-1)).toBe('/tags');
- expect(new Set(seen)).toEqual(new Set(['/', '/playlists', '/performers', '/item/7', '/tags']));
+ expect(seen.at(-1)).toBe('/trash');
+ expect(new Set(seen)).toEqual(new Set(['/', '/playlists', '/follow', '/item/7', '/trash']));
});
it('派发跑在 React 提交阶段之外:壳在里面用 flushSync 画别的岛,当场就画上', async () => {
diff --git a/web/app.js b/web/app.js
index d8444afb6..1175aac56 100644
--- a/web/app.js
+++ b/web/app.js
@@ -19,7 +19,7 @@ import { mountIsland, unmountIsland, updateIsland, islandMounted, preloadIslands
import { junkCountSkeletonHtml, junkPath, junkRoute } from './dist/peach-ui.js';
import { catalogSuggestions, catalogEmptyHtml, catalogFilterSkeletonHtml, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml } from './dist/peach-ui.js';
import { dropBars, fetchBars, fetchTopsPage } from './dist/peach-ui.js';
-import { loadRouter, openManagedRoute, peachHistory, releaseManagedRoute, shellNavigate, startRouting } from './dist/peach-ui.js';
+import { loadRouter, openManagedRoute, peachHistory, releaseManagedRoute, shellNavigate, startRouting, updateManagedRoute } from './dist/peach-ui.js';
import { javImageKind, syncJavImages, entitySkeletonHtml } from './dist/peach-ui.js';
import { avatarInner, configureHoverPreview, coverAnchor, coverImage, entityFaceImg, faceBoxAttrs, faceOrigin, facePos, imageFallbackAttrs, installCardArt, logoUrl, refitNativeImages, releaseHoverPreviews, rememberRepresentatives, setHoverState, upgradeCover, wireImageFallbacks } from './dist/peach-ui.js';
import { clickPlayerControl, immerseApi, loadImmerse, loadStage, seekVideoBy, stageApi, toggleVideoPlayback } from './dist/peach-ui.js';
@@ -444,7 +444,8 @@ const claimSurface=path=>{
/* 管理区正文的容器每次换页都经过这里,所以卸载也落在这里。React 档的页面是一棵自己
管取数的根:不卸掉它,离开之后那棵根还活着,有轮询的页面照着原节律继续敲库。
没挂过东西的容器 unmountIsland 直接返回,逐页判断反而会漏掉新迁过来的那一页。
- 由路由树画的那几页(`openManagedRoute`)同样在这里收:详情舞台压在它们上面时不经过这里,页面留着。 */
+ 由路由树画的那几页(`openManagedRoute`,`#stats` 与 `#index` 各一页)同样在这里一起收:详情舞台压在
+ 它们上面时不经过这里,页面留着。 */
releaseManagedRoute();
unmountIsland($('#stats'));
/* 资料页那块(换头像挂在它的圆框上)在管理区打开时只是被藏起来,DOM 还在。 */
@@ -455,8 +456,9 @@ const claimSurface=path=>{
surfaceRequests?.abort();
surfaceRequests=new AbortController();
surfaceEpoch++;return surfaceToken(path)};
-/* 由路由树画的那几页画进管理区正文,取数期间壳换了页就不画。 */
+/* 由路由树画的那几页:管理区画进 `#stats`,索引页画进 `#index`;取数期间壳换了页就不画。 */
const managedSurface=token=>({container:$('#stats'),isCurrent:()=>surfaceCurrent(token)});
+const indexSurface=token=>({container:$('#index'),isCurrent:()=>surfaceCurrent(token)});
/* 表面级读请求:带上这个表面的 signal,被取消时返回 null 而不是抛错。
取消只可能由 claimSurface 触发,而它已经推进了 epoch,所以调用点紧随其后的
`surfaceCurrent()` 必然为假、走的是同一条过期分支——不用给每个表面套一层
@@ -1032,14 +1034,14 @@ function paintSelection(){
/* 浮条宿主在 `#main` 外面,玻璃贴图的观察器看不到它长出来,画完补扫一遍。 */
if(batchDockApi()){batchDockApi().render(batchDockProps);syncGlassOptics()}
}
-/* 标签页的多选归 React 页面自己记:键在壳里,所以开关一变就推给正挂着的那一页,关掉时
- 页面随之清空所选。别的页面上没有挂着的索引页,`updateIsland` 是空操作。 */
+/* 标签页的多选归 React 页面自己记:键在壳里,所以开关一变就推给正画着的那一页,关掉时
+ 页面随之清空所选。别的页面上 `#index` 里没有画着的索引页,`updateManagedRoute` 是空操作。 */
function setSelectMode(on,clear=false){
if(on&&!selectMode)selectSurface=currentSelectSurface();
selectMode=!!on;if(!selectMode)selectSurface='';document.body.classList.toggle('select-mode',selectMode);
if(selectMode)releaseHoverPreviews();
$('#selectMode').setAttribute('aria-pressed',selectMode);if(clear){selected.clear();followSelected.clear();lastSelectedId=null;followLastSelectedId=null}paintSelection();
- if(location.pathname==='/tags')updateIsland($('#index'),{selectMode})}
+ if(location.pathname==='/tags')updateManagedRoute($('#index'),{selectMode})}
/* 只取网格直属卡片:竖屏条是嵌在网格里的横向滚动条,不该被 Shift 范围选中顺带框进来。 */
function visibleCardIds(){return [...gridCards()].map(card=>+card.dataset.id)}
function toggleSelection(id,range=false){
@@ -1640,8 +1642,9 @@ function showHomeSurfaces(){
// 而且下面那一行 style.display='' 恢复不了被 class 隐藏的元素。
document.body.classList.remove('entity-open','index-open');
/* 索引页和资料页都画进 #index,两条路都先经过这里再 `innerHTML=`:直接盖掉的话,
- 上一页挂在里面的 React 根(换头像)就没人卸,留着一棵管着已经不在页面上的节点的根。 */
- unmountIsland($('#index'));
+ 上一页挂在里面的 React 根(资料页、换头像)就没人卸,留着一棵管着已经不在页面上的节点的根;
+ 路由树画的那一页也在这里收,管理区 `#stats` 那一页不动(资料页压在它上面时它藏着继续活)。 */
+ unmountIsland($('#index'));releaseManagedRoute($('#index'));
$('#stats').hidden=true;$('#index').hidden=true;
if(!isFeedNewPath(location.pathname))$('#feedNew').hidden=true;
$('#catalogFilter').style.display='';syncCatalogFilterScreen();
@@ -2502,15 +2505,10 @@ async function openIndex(kind,push=true){
document.body.classList.add('index-open');syncCatalogFilterScreen();
disposeStage(false);
showIndexSkeleton(params);
- await mountIsland('index',$('#index'),{...params,layout:peopleIndexLayout(),selectMode,
- route:(next,{replace=false}={})=>route(indexPath(next),replace),
- savePreference:({layout})=>{appSettings.peopleLayout=layout;saveSettings()},
- exitSelectMode:()=>setSelectMode(false,false),
- personAvatar,authorAvatar:onlineAuthorRingHtml,tagLabel,
- openEntity:(entityKind,name)=>openEntity(entityKind,name),
- showTags:showIndexTags,openFollowAuthor:openFollowAuthorFromIndex,openFollowTag:openFollowTagFromIndex,
- configurable:!!runtimeConfigurable,
- },{isCurrent:()=>surfaceCurrent(surface)});
+ /* 由路由树画:页内换档、存版式、退出选择、头像与去处都在 `shellActions` 里,跟着打开走的只有地址上
+ 那四项与此刻的版式、选择键和配置权限。 */
+ await openManagedRoute('/'+kind,{...params,layout:peopleIndexLayout(),selectMode,
+ configurable:!!runtimeConfigurable},indexSurface(surface));
if(!surfaceCurrent(surface))return;
syncNavigation();scheduleStickySurfaces();
}
@@ -3930,6 +3928,15 @@ const shellActions={
saveSettings();
},
srcBadge:(location,cost)=>srcBadge(location,cost),
+ /* 索引页:同一页换 search 由壳认领、不重挂;后退前进到另一份 search 时 `restoreRoute` 照旧重开。 */
+ routeIndex:(next,{replace=false}={})=>route(indexPath(next),replace),
+ savePeopleLayout:({layout})=>{appSettings.peopleLayout=layout;saveSettings()},
+ exitSelectMode:()=>setSelectMode(false,false),
+ personAvatar:(item,entityKind,big)=>personAvatar(item,entityKind,big),
+ authorAvatar:author=>onlineAuthorRingHtml(author),
+ showIndexTags,
+ openFollowAuthor:openFollowAuthorFromIndex,
+ openFollowTag:openFollowTagFromIndex,
};
loadRouter(shellActions).catch(error=>console.error('客户端导航装载失败',error));
mountManageHeader();
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index b2666993b..711bf7e75 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -6,7 +6,7 @@ import { MEDIA_SOURCE_ICONS as ue, attachOverlayScrollbar as L, closeAnchoredMen
import { ACCENT_CHOICES as Ve, METADATA_REFRESH_DAYS as He, cardRatio as Ue, chooseAccent as We, chooseGlowPreset as Ge, glowChips as Ke, resetGlowColors as qe } from "/dist/peach-ui.js";
import { javDisplayName as Je, javTitleHtml as Ye } from "/js/jav-title.js";
import { tagLabel as Xe } from "/js/tags.js";
-import { listenManagedEntry as Ze, managedEntry as Qe, peachHistory as $e, routeSeen as et } from "/dist/peach-ui.js";
+import { listenManagedEntry as Ze, managedEntries as Qe, peachHistory as $e, routeSeen as et } from "/dist/peach-ui.js";
import { GLOW_SPOT_LABELS as tt, GLOW_SWATCHES as nt, GLOW_SWATCH_FAMILIES as rt, HOME_GLOW_SPOTS as it, glowColor as at, glowPresetName as ot, isNativeGlass as st, normalizeHomeGlow as ct } from "/js/home-glow.js";
//#region \0rolldown/runtime.js
var lt = Object.create, ut = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, ft = Object.getOwnPropertyNames, pt = Object.getPrototypeOf, mt = Object.prototype.hasOwnProperty, ht = (e, t, n) => () => {
@@ -19346,7 +19346,7 @@ function Wh(e, t, n) {
//#region node_modules/react-aria-components/dist/private/Popover.mjs
var Gh = /*#__PURE__*/ (0, V.createContext)(null), Kh = /*#__PURE__*/ (0, V.createContext)(null), qh = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
[e, t] = Ga(e, t, Gh);
- let n = (0, V.useContext)(Gg), r = Vh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Uh(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = $c(), { direction: c } = Js();
+ let n = (0, V.useContext)(Hg), r = Vh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Uh(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = $c(), { direction: c } = Js();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20039,7 +20039,7 @@ function uee(e) {
...i,
ref: a
}],
- [Gg, t],
+ [Hg, t],
[Ig, t],
[Gh, {
trigger: "MenuTrigger",
@@ -20108,13 +20108,13 @@ function pee({ props: e, collection: t, menuRef: n }) {
[_f, { elementType: "div" }],
[yl, {
name: "MenuSection",
- render: zg
+ render: Rg
}],
[dee, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [Vg, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [Bg, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
[dc, null],
[fc, null],
[Lg, o.selectionManager],
@@ -20125,7 +20125,7 @@ function pee({ props: e, collection: t, menuRef: n }) {
scrollRef: n
}))), f));
}
-var Rg = class extends Pp {
+var mee = class extends Pp {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -20145,7 +20145,7 @@ var Rg = class extends Pp {
return this.parent.childFocusStrategy;
}
};
-function zg(e, t, n, r = "react-aria-MenuSection") {
+function Rg(e, t, n, r = "react-aria-MenuSection") {
let i = (0, V.useContext)(Fg), { CollectionBranch: a } = (0, V.useContext)(Cl), [o, s] = Ka(), { headingProps: c, groupProps: l } = oee({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
@@ -20157,7 +20157,7 @@ function zg(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, V.useContext)(Lg), f = Mp(e), p = e.selectionMode == null ? d : new Rg(d, f), m = Wa(Vg)?.shouldCloseOnSelect, h = jl(e, { global: !0 });
+ }), d = (0, V.useContext)(Lg), f = Mp(e), p = e.selectionMode == null ? d : new mee(d, f), m = Wa(Bg)?.shouldCloseOnSelect, h = jl(e, { global: !0 });
return delete h.id, /*#__PURE__*/ V.createElement(Xa.section, {
...G(h, u, l),
ref: t
@@ -20167,15 +20167,15 @@ function zg(e, t, n, r = "react-aria-MenuSection") {
ref: o
}],
[Lg, p],
- [Vg, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [Bg, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ V.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var Bg = /*#__PURE__*/ ml(_c, zg), Vg = /*#__PURE__*/ (0, V.createContext)(null), Hg = /*#__PURE__*/ pl(gc, function(e, t, n) {
- [e, t] = Ga(e, t, Vg);
- let r = Wa(Vg)?.id, i = (0, V.useContext)(Fg), a = Ba(t), o = (0, V.useContext)(Lg), { isVirtualized: s } = (0, V.useContext)(Cl), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = aee({
+var zg = /*#__PURE__*/ ml(_c, Rg), Bg = /*#__PURE__*/ (0, V.createContext)(null), Vg = /*#__PURE__*/ pl(gc, function(e, t, n) {
+ [e, t] = Ga(e, t, Bg);
+ let r = Wa(Bg)?.id, i = (0, V.useContext)(Fg), a = Ba(t), o = (0, V.useContext)(Lg), { isVirtualized: s } = (0, V.useContext)(Cl), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = aee({
...e,
id: r,
key: n.key,
@@ -20261,7 +20261,7 @@ pl(hc, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Ug(e, t) {
+function hee(e, t) {
let { role: n = "dialog" } = e, r = Fa();
r = e["aria-label"] ? void 0 : r;
let i = Fa();
@@ -20296,13 +20296,13 @@ function Ug(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Wg = /*#__PURE__*/ (0, V.createContext)(null), Gg = /*#__PURE__*/ (0, V.createContext)(null), Kg = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+var gee = /*#__PURE__*/ (0, V.createContext)(null), Hg = /*#__PURE__*/ (0, V.createContext)(null), Ug = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Ga(e, t, Wg);
- let { dialogProps: r, titleProps: i, contentProps: a } = Ug({
+ [e, t] = Ga(e, t, gee);
+ let { dialogProps: r, titleProps: i, contentProps: a } = hee({
...e,
"aria-labelledby": n
- }, t), o = (0, V.useContext)(Gg);
+ }, t), o = (0, V.useContext)(Hg);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
let s = Ua({
defaultClassName: "react-aria-Dialog",
@@ -20336,14 +20336,14 @@ var Wg = /*#__PURE__*/ (0, V.createContext)(null), Gg = /*#__PURE__*/ (0, V.crea
});
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function qg(e = {}) {
+function _ee(e = {}) {
let { locale: t } = Js();
return (0, V.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var Jg = {};
-Jg = {
+var Wg = {};
+Wg = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -20357,8 +20357,8 @@ Jg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Yg = {};
-Yg = {
+var Gg = {};
+Gg = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -20372,8 +20372,8 @@ Yg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Xg = {};
-Xg = {
+var Kg = {};
+Kg = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -20387,8 +20387,8 @@ Xg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Zg = {};
-Zg = {
+var qg = {};
+qg = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -20402,8 +20402,8 @@ Zg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Qg = {};
-Qg = {
+var Jg = {};
+Jg = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -20417,8 +20417,8 @@ Qg = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var $g = {};
-$g = {
+var Yg = {};
+Yg = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -20432,8 +20432,8 @@ $g = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var e_ = {};
-e_ = {
+var Xg = {};
+Xg = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -20447,8 +20447,8 @@ e_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var t_ = {};
-t_ = {
+var Zg = {};
+Zg = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -20462,8 +20462,8 @@ t_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var n_ = {};
-n_ = {
+var Qg = {};
+Qg = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -20477,8 +20477,8 @@ n_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var r_ = {};
-r_ = {
+var $g = {};
+$g = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -20492,8 +20492,8 @@ r_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var i_ = {};
-i_ = {
+var e_ = {};
+e_ = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -20507,8 +20507,8 @@ i_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var a_ = {};
-a_ = {
+var t_ = {};
+t_ = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -20522,8 +20522,8 @@ a_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var o_ = {};
-o_ = {
+var n_ = {};
+n_ = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -20537,8 +20537,8 @@ o_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var s_ = {};
-s_ = {
+var r_ = {};
+r_ = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -20552,8 +20552,8 @@ s_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var c_ = {};
-c_ = {
+var i_ = {};
+i_ = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -20567,8 +20567,8 @@ c_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var l_ = {};
-l_ = {
+var a_ = {};
+a_ = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -20582,8 +20582,8 @@ l_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var u_ = {};
-u_ = {
+var o_ = {};
+o_ = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -20597,8 +20597,8 @@ u_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var d_ = {};
-d_ = {
+var s_ = {};
+s_ = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -20612,8 +20612,8 @@ d_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var f_ = {};
-f_ = {
+var c_ = {};
+c_ = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -20627,8 +20627,8 @@ f_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var p_ = {};
-p_ = {
+var l_ = {};
+l_ = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -20642,8 +20642,8 @@ p_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var m_ = {};
-m_ = {
+var u_ = {};
+u_ = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -20657,8 +20657,8 @@ m_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var h_ = {};
-h_ = {
+var d_ = {};
+d_ = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -20672,8 +20672,8 @@ h_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var g_ = {};
-g_ = {
+var f_ = {};
+f_ = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -20687,8 +20687,8 @@ g_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var __ = {};
-__ = {
+var p_ = {};
+p_ = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -20702,8 +20702,8 @@ __ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var v_ = {};
-v_ = {
+var m_ = {};
+m_ = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -20717,8 +20717,8 @@ v_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var y_ = {};
-y_ = {
+var h_ = {};
+h_ = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -20732,8 +20732,8 @@ y_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var b_ = {};
-b_ = {
+var g_ = {};
+g_ = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -20747,8 +20747,8 @@ b_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var x_ = {};
-x_ = {
+var __ = {};
+__ = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -20762,8 +20762,8 @@ x_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var S_ = {};
-S_ = {
+var v_ = {};
+v_ = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -20777,8 +20777,8 @@ S_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var C_ = {};
-C_ = {
+var y_ = {};
+y_ = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -20792,8 +20792,8 @@ C_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var w_ = {};
-w_ = {
+var b_ = {};
+b_ = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -20807,8 +20807,8 @@ w_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var T_ = {};
-T_ = {
+var x_ = {};
+x_ = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -20822,8 +20822,8 @@ T_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var E_ = {};
-E_ = {
+var S_ = {};
+S_ = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -20837,8 +20837,8 @@ E_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var D_ = {};
-D_ = {
+var C_ = {};
+C_ = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -20852,55 +20852,55 @@ D_ = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var O_ = {};
-O_ = {
- "ar-AE": Jg,
- "bg-BG": Yg,
- "cs-CZ": Xg,
- "da-DK": Zg,
- "de-DE": Qg,
- "el-GR": $g,
- "en-US": e_,
- "es-ES": t_,
- "et-EE": n_,
- "fi-FI": r_,
- "fr-FR": i_,
- "he-IL": a_,
- "hr-HR": o_,
- "hu-HU": s_,
- "it-IT": c_,
- "ja-JP": l_,
- "ko-KR": u_,
- "lt-LT": d_,
- "lv-LV": f_,
- "nb-NO": p_,
- "nl-NL": m_,
- "pl-PL": h_,
- "pt-BR": g_,
- "pt-PT": __,
- "ro-RO": v_,
- "ru-RU": y_,
- "sk-SK": b_,
- "sl-SI": x_,
- "sr-SP": S_,
- "sv-SE": C_,
- "tr-TR": w_,
- "uk-UA": T_,
- "zh-CN": E_,
- "zh-TW": D_
+var w_ = {};
+w_ = {
+ "ar-AE": Wg,
+ "bg-BG": Gg,
+ "cs-CZ": Kg,
+ "da-DK": qg,
+ "de-DE": Jg,
+ "el-GR": Yg,
+ "en-US": Xg,
+ "es-ES": Zg,
+ "et-EE": Qg,
+ "fi-FI": $g,
+ "fr-FR": e_,
+ "he-IL": t_,
+ "hr-HR": n_,
+ "hu-HU": r_,
+ "it-IT": i_,
+ "ja-JP": a_,
+ "ko-KR": o_,
+ "lt-LT": s_,
+ "lv-LV": c_,
+ "nb-NO": l_,
+ "nl-NL": u_,
+ "pl-PL": d_,
+ "pt-BR": f_,
+ "pt-PT": p_,
+ "ro-RO": m_,
+ "ru-RU": h_,
+ "sk-SK": g_,
+ "sl-SI": __,
+ "sr-SP": v_,
+ "sv-SE": y_,
+ "tr-TR": b_,
+ "uk-UA": x_,
+ "zh-CN": S_,
+ "zh-TW": C_
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function mee(e) {
+function vee(e) {
return e && e.__esModule ? e.default : e;
}
-function hee(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = cc(mee(O_), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, V.useRef)(i), o = (0, V.useCallback)(() => {
+function yee(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = cc(vee(w_), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, V.useRef)(i), o = (0, V.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = k_(i, a.current), o = k_(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = T_(i, a.current), o = T_(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -20939,7 +20939,7 @@ function hee(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function k_(e, t) {
+function T_(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -20947,7 +20947,7 @@ function k_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function A_(e, t) {
+function E_(e, t) {
let n = t?.isDisabled, [r, i] = (0, V.useState)(!1);
return ha(() => {
if (e?.current && !n) {
@@ -20972,11 +20972,11 @@ function A_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function gee(e) {
+function bee(e) {
return e && e.__esModule ? e.default : e;
}
-function _ee(e) {
- let t = cc(gee(O_), "@react-aria/grid"), n = Es(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+function D_(e) {
+ let t = cc(bee(w_), "@react-aria/grid"), n = Es(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
return Iu((0, V.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
@@ -20990,14 +20990,14 @@ function _ee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function vee(e) {
+function O_(e) {
return e && e.__esModule ? e.default : e;
}
-function yee(e, t) {
+function xee(e, t) {
let { key: n } = e, r = t.selectionManager, i = Na(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": cc(vee(O_), "@react-aria/grid").format("select"),
+ "aria-label": cc(O_(w_), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -21005,7 +21005,7 @@ function yee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function bee(e, t, n) {
+function See(e, t, n) {
let { overlayProps: r, underlayProps: i } = Bm({
...e,
isOpen: t.isOpen,
@@ -21020,19 +21020,19 @@ function bee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var j_ = typeof document < "u" && window.visualViewport;
-function xee() {
+var k_ = typeof document < "u" && window.visualViewport;
+function Cee() {
let e = Da(), [t, n] = (0, V.useState)(() => e ? {
width: 0,
height: 0
- } : M_());
+ } : A_());
return (0, V.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- j_ && j_.scale > 1 || e(M_());
+ k_ && k_.scale > 1 || e(A_());
}, r, i = (t) => {
- j_ && j_.scale > 1 || Ns(K(t)) && (r = requestAnimationFrame(() => {
+ k_ && k_.scale > 1 || Ns(K(t)) && (r = requestAnimationFrame(() => {
let t = uo();
(!t || !Ns(t)) && e({
width: document.documentElement.clientWidth,
@@ -21040,26 +21040,26 @@ function xee() {
});
}));
};
- return e(M_()), Wo() && Ko() && window.addEventListener("blur", i, !0), j_ ? j_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Wo() && Ko() && window.removeEventListener("blur", i, !0), j_ ? j_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(A_()), Wo() && Ko() && window.addEventListener("blur", i, !0), k_ ? k_.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Wo() && Ko() && window.removeEventListener("blur", i, !0), k_ ? k_.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function M_() {
+function A_() {
return {
- width: j_ ? Math.min(j_.width * j_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: j_ ? j_.height * j_.scale : document.documentElement.clientHeight
+ width: k_ ? Math.min(k_.width * k_.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: k_ ? k_.height * k_.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var See = /*#__PURE__*/ (0, V.createContext)(null), N_ = /*#__PURE__*/ (0, V.createContext)(null), Cee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- if ((0, V.useContext)(N_)) return /*#__PURE__*/ V.createElement(F_, {
+var wee = /*#__PURE__*/ (0, V.createContext)(null), j_ = /*#__PURE__*/ (0, V.createContext)(null), Tee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ if ((0, V.useContext)(j_)) return /*#__PURE__*/ V.createElement(N_, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ V.createElement(P_, {
+ return /*#__PURE__*/ V.createElement(M_, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -21069,15 +21069,15 @@ var See = /*#__PURE__*/ (0, V.createContext)(null), N_ = /*#__PURE__*/ (0, V.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ V.createElement(F_, {
+ }, /*#__PURE__*/ V.createElement(N_, {
...f,
modalRef: t
}, s));
});
-function wee(e, t) {
- [e, t] = Ga(e, t, See);
- let n = (0, V.useContext)(Gg), r = Vh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ba(t), o = (0, V.useRef)(null), s = Uh(a, i.isOpen), c = Uh(o, i.isOpen), l = s || c || e.isExiting || !1, u = Da();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ V.createElement(Tee, {
+function Eee(e, t) {
+ [e, t] = Ga(e, t, wee);
+ let n = (0, V.useContext)(Hg), r = Vh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ba(t), o = (0, V.useRef)(null), s = Uh(a, i.isOpen), c = Uh(o, i.isOpen), l = s || c || e.isExiting || !1, u = Da();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ V.createElement(Dee, {
...e,
state: i,
isExiting: l,
@@ -21085,9 +21085,9 @@ function wee(e, t) {
modalRef: o
});
}
-var P_ = /*#__PURE__*/ (0, V.forwardRef)(wee);
-function Tee({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = bee(t, r, n), o = Hh(t.overlayRef) || t.isEntering || !1, s = Ua({
+var M_ = /*#__PURE__*/ (0, V.forwardRef)(Eee);
+function Dee({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = See(t, r, n), o = Hh(t.overlayRef) || t.isEntering || !1, s = Ua({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -21095,7 +21095,7 @@ function Tee({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = xee(), l, u;
+ }), c = Cee(), l, u;
if (typeof document < "u") {
let e = Ou(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -21117,15 +21117,15 @@ function Tee({ UNSTABLE_portalContainer: e, ...t }) {
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ V.createElement(Ha, { values: [[N_, {
+ }, /*#__PURE__*/ V.createElement(Ha, { values: [[j_, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [Gg, r]] }, s.children)));
+ }], [Hg, r]] }, s.children)));
}
-function F_(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, V.useContext)(N_), a = (0, V.useContext)(Gg), o = Ba((0, V.useMemo)(() => Ia(e.modalRef, n), [e.modalRef, n])), s = Hh(o), c = Ua({
+function N_(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, V.useContext)(j_), a = (0, V.useContext)(Hg), o = Ba((0, V.useMemo)(() => Ia(e.modalRef, n), [e.modalRef, n])), s = Hh(o), c = Ua({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -21144,10 +21144,10 @@ function F_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var I_ = /* @__PURE__ */ new WeakMap();
+var P_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Eee(e, t, n) {
+function Oee(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
}, { pressProps: g, isPressed: _ } = ql({
@@ -21170,7 +21170,7 @@ function Eee(e, t, n) {
}
}), { focusableProps: b } = Yc(G(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = G(g, b), S = jl(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = I_.get(t);
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = P_.get(t);
td(n, t.defaultSelectedValue, t.setSelectedValue), nd({ validationBehavior: O }, t, n);
let k = sd();
return {
@@ -21204,7 +21204,7 @@ function Eee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Dee(e, t) {
+function kee(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Js(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ed({
...e,
labelElementType: "span",
@@ -21233,7 +21233,7 @@ function Dee(e, t) {
},
allowRepeats: !0
}), x = Na(n);
- return I_.set(t, {
+ return P_.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -21262,9 +21262,9 @@ function Dee(e, t) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Oee = Math.round(Math.random() * 1e10), kee = 0;
-function Aee(e) {
- let t = (0, V.useMemo)(() => e.name || `radio-group-${Oee}-${++kee}`, [e.name]), [n, r] = uc(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, V.useState)(n), [a, o] = (0, V.useState)(null), s = Ku({
+var Aee = Math.round(Math.random() * 1e10), jee = 0;
+function Mee(e) {
+ let t = (0, V.useMemo)(() => e.name || `radio-group-${Aee}-${++jee}`, [e.name]), [n, r] = uc(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, V.useState)(n), [a, o] = (0, V.useState)(null), s = Ku({
...e,
value: n
}), c = (t) => {
@@ -21287,12 +21287,12 @@ function Aee(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var jee = /*#__PURE__*/ (0, V.createContext)(null), Mee = /*#__PURE__*/ (0, V.createContext)(null), L_ = /*#__PURE__*/ (0, V.createContext)(null), R_ = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- [e, t] = Ga(e, t, jee);
- let { validationBehavior: n } = Wa(Qu) || {}, r = e.validationBehavior ?? n ?? "native", i = Aee({
+var Nee = /*#__PURE__*/ (0, V.createContext)(null), Pee = /*#__PURE__*/ (0, V.createContext)(null), F_ = /*#__PURE__*/ (0, V.createContext)(null), I_ = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ [e, t] = Ga(e, t, Nee);
+ let { validationBehavior: n } = Wa(Qu) || {}, r = e.validationBehavior ?? n ?? "native", i = Mee({
...e,
validationBehavior: r
- }), [a, o] = Ka(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Dee({
+ }), [a, o] = Ka(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = kee({
...e,
label: o,
validationBehavior: r
@@ -21318,7 +21318,7 @@ var jee = /*#__PURE__*/ (0, V.createContext)(null), Mee = /*#__PURE__*/ (0, V.cr
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
}, /*#__PURE__*/ V.createElement(Ha, { values: [
- [L_, i],
+ [F_, i],
[lu, {
...c,
ref: a,
@@ -21330,23 +21330,23 @@ var jee = /*#__PURE__*/ (0, V.createContext)(null), Mee = /*#__PURE__*/ (0, V.cr
} }],
[Bu, d]
] }, /*#__PURE__*/ V.createElement(mf, null, f.children)));
-}), z_ = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}), L_ = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ga(r, t, Mee);
- let i = V.useContext(L_), a = Ba((0, V.useMemo)(() => Ia(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Eee({
+ [e, t] = Ga(r, t, Pee);
+ let i = V.useContext(F_), a = Ba((0, V.useMemo)(() => Ia(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Oee({
...qa(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ V.createElement(B_.Provider, { value: {
+ return /*#__PURE__*/ V.createElement(R_.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ V.createElement(Nee, {
+ } }, /*#__PURE__*/ V.createElement(Fee, {
...e,
ref: t
}));
-}), B_ = /*#__PURE__*/ (0, V.createContext)(null), Nee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, V.useContext)(B_), l = V.useContext(L_), { isFocused: u, isFocusVisible: d, focusProps: f } = nu(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = cu({
+}), R_ = /*#__PURE__*/ (0, V.createContext)(null), Fee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, V.useContext)(R_), l = V.useContext(F_), { isFocused: u, isFocusVisible: d, focusProps: f } = nu(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = cu({
...e,
isDisabled: p
}), g = Ua({
@@ -21380,8 +21380,8 @@ var jee = /*#__PURE__*/ (0, V.createContext)(null), Mee = /*#__PURE__*/ (0, V.cr
...G(r, f),
ref: c
})), g.children);
-}), V_ = /* @__PURE__ */ new WeakMap();
-function Pee(e, t, n) {
+}), z_ = /* @__PURE__ */ new WeakMap();
+function Iee(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = up({
usage: "search",
sensitivity: "base"
@@ -21424,7 +21424,7 @@ function Pee(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = jl(e, { labelable: !0 }), C = G(m, d, y), w = Na();
- return V_.set(t, {
+ return z_.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -21485,8 +21485,8 @@ function Pee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Fee(e, t, n) {
- let r = V_.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Ru({ style: {
+function Lee(e, t, n) {
+ let r = z_.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Ru({ style: {
position: "fixed",
top: 0,
left: 0
@@ -21521,8 +21521,8 @@ function Fee(e, t, n) {
}
};
}
-function Iee(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, V.useRef)(null), c = (0, V.useRef)(null), { containerProps: l, selectProps: u } = Fee({
+function Ree(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, V.useRef)(null), c = (0, V.useRef)(null), { containerProps: l, selectProps: u } = Lee({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -21546,7 +21546,7 @@ function Iee(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = V_.get(t) || {};
+ let { validationBehavior: e } = z_.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -21577,7 +21577,7 @@ function Iee(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Lee(e) {
+function zee(e) {
let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Vh(e), [i, a] = (0, V.useState)(null), o = (0, V.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
@@ -21599,7 +21599,7 @@ function Lee(e) {
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, V.useMemo)(() => Ree(l), [l]),
+ selectedKeys: (0, V.useMemo)(() => Bee(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -21636,16 +21636,16 @@ function Lee(e) {
setFocused: g
};
}
-function Ree(e) {
+function Bee(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function zee(e) {
+function Vee(e) {
return e && e.__esModule ? e.default : e;
}
-var H_ = /*#__PURE__*/ (0, V.createContext)(null), U_ = /*#__PURE__*/ (0, V.createContext)(null), Bee = /*#__PURE__*/ Qc(function(e, t) {
- [e, t] = Ga(e, t, H_);
+var B_ = /*#__PURE__*/ (0, V.createContext)(null), V_ = /*#__PURE__*/ (0, V.createContext)(null), Hee = /*#__PURE__*/ Qc(function(e, t) {
+ [e, t] = Ga(e, t, B_);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, V.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -21660,23 +21660,23 @@ var H_ = /*#__PURE__*/ (0, V.createContext)(null), U_ = /*#__PURE__*/ (0, V.crea
i,
a
]);
- return /*#__PURE__*/ V.createElement(al, { content: o }, (n) => /*#__PURE__*/ V.createElement(Hee, {
+ return /*#__PURE__*/ V.createElement(al, { content: o }, (n) => /*#__PURE__*/ V.createElement(Wee, {
props: e,
collection: n,
selectRef: t
}));
-}), Vee = [
+}), Uee = [
lu,
yu,
Tu
];
-function Hee({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Wa(Qu) || {}, i = e.validationBehavior ?? r ?? "native", a = Lee({
+function Wee({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Wa(Qu) || {}, i = e.validationBehavior ?? r ?? "native", a = zee({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = nu({ within: !0 }), c = (0, V.useRef)(null), [l, u] = Ka(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Pee({
+ }), { isFocusVisible: o, focusProps: s } = nu({ within: !0 }), c = (0, V.useRef)(null), [l, u] = Ka(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Iee({
...qa(e),
label: u,
validationBehavior: i
@@ -21702,9 +21702,9 @@ function Hee({ props: e, selectRef: t, collection: n }) {
delete x.id;
let S = (0, V.useRef)(null);
return /*#__PURE__*/ V.createElement(Ha, { values: [
- [H_, e],
- [U_, a],
- [W_, p],
+ [B_, e],
+ [V_, a],
+ [H_, p],
[lu, {
...d,
ref: l,
@@ -21716,14 +21716,14 @@ function Hee({ props: e, selectRef: t, collection: n }) {
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Gg, a],
+ [Hg, a],
[Gh, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Vee
+ clearContexts: Uee
}],
[Wp, {
...m,
@@ -21745,14 +21745,14 @@ function Hee({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ V.createElement(Iee, {
+ }, b.children, /*#__PURE__*/ V.createElement(Ree, {
..._,
autoComplete: e.autoComplete
})));
}
-var W_ = /*#__PURE__*/ (0, V.createContext)(null), Uee = /*#__PURE__*/ Qc(function(e, t) {
- [e, t] = Ga(e, t, W_);
- let n = (0, V.useContext)(U_), { placeholder: r } = Wa(H_), i = n.selectedItems.map((e) => {
+var H_ = /*#__PURE__*/ (0, V.createContext)(null), Gee = /*#__PURE__*/ Qc(function(e, t) {
+ [e, t] = Ga(e, t, H_);
+ let n = (0, V.useContext)(V_), { placeholder: r } = Wa(B_), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -21764,7 +21764,7 @@ var W_ = /*#__PURE__*/ (0, V.createContext)(null), Uee = /*#__PURE__*/ Qc(functi
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = qg(), o = (0, V.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, V.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = _ee(), o = (0, V.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, V.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -21779,7 +21779,7 @@ var W_ = /*#__PURE__*/ (0, V.createContext)(null), Uee = /*#__PURE__*/ Qc(functi
a,
o,
i
- ]), u = cc(zee(of), "react-aria-components"), d = Ua({
+ ]), u = cc(Vee(of), "react-aria-components"), d = Ua({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -21800,7 +21800,7 @@ var W_ = /*#__PURE__*/ (0, V.createContext)(null), Uee = /*#__PURE__*/ Qc(functi
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Wee(e, t, n) {
+function Kee(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = cd(e, t, n);
return {
labelProps: r,
@@ -21813,23 +21813,23 @@ function Wee(e, t, n) {
...o
};
}
-for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0, V.createContext)(null), Kee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+for (var qee = /*#__PURE__*/ (0, V.createContext)(null), U_ = /*#__PURE__*/ (0, V.createContext)(null), Jee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ga(r, t, Gee);
- let i = Ba((0, V.useMemo)(() => Ia(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ud(e), o = Wee({
+ [e, t] = Ga(r, t, qee);
+ let i = Ba((0, V.useMemo)(() => Ia(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ud(e), o = Kee({
...qa(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ V.createElement(Ha, { values: [[G_, a], [K_, {
+ return /*#__PURE__*/ V.createElement(Ha, { values: [[U_, a], [W_, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ V.createElement(qee, {
+ }]] }, /*#__PURE__*/ V.createElement(Yee, {
...e,
ref: t
}));
-}), K_ = /*#__PURE__*/ (0, V.createContext)(null), qee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, V.useContext)(K_), { isFocused: f, isFocusVisible: p, focusProps: m } = nu(), h = a || o, g = (0, V.useContext)(G_), { hoverProps: _, isHovered: v } = cu({
+}), W_ = /*#__PURE__*/ (0, V.createContext)(null), Yee = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, V.useContext)(W_), { isFocused: f, isFocusVisible: p, focusProps: m } = nu(), h = a || o, g = (0, V.useContext)(U_), { hoverProps: _, isHovered: v } = cu({
...e,
isDisabled: h
}), y = Ua({
@@ -21865,7 +21865,7 @@ for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0,
...G(r, m),
ref: l
})), y.children);
-}), q_ = 10, J_ = 5, Jee = class {
+}), G_ = 10, K_ = 5, Xee = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -21875,7 +21875,7 @@ for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0,
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > J_ && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > q_ && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > K_ && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > G_ && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -21954,11 +21954,11 @@ for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > J_ && i) {
+ if (Math.abs(r - c.lastSwitchY) > K_ && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > q_ && a) {
+ if (l > G_ && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -21973,7 +21973,7 @@ for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0,
boundaryContext: null
};
}
-}, Yee = class {
+}, Zee = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -22043,8 +22043,8 @@ for (var Gee = /*#__PURE__*/ (0, V.createContext)(null), G_ = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Y_ = "row-header-column-" + Math.random().toString(36).slice(2), X_ = "row-header-column-" + Math.random().toString(36).slice(2); Y_ === X_;) X_ = "row-header-column-" + Math.random().toString(36).slice(2);
-function Z_(e, t) {
+}, q_ = "row-header-column-" + Math.random().toString(36).slice(2), J_ = "row-header-column-" + Math.random().toString(36).slice(2); q_ === J_;) J_ = "row-header-column-" + Math.random().toString(36).slice(2);
+function Y_(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -22128,13 +22128,13 @@ function Z_(e, t) {
textValue: ""
}));
}
-var Xee = class extends Yee {
+var Qee = class extends Zee {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Y_,
+ key: q_,
value: null,
textValue: "",
level: 0,
@@ -22149,7 +22149,7 @@ var Xee = class extends Yee {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: X_,
+ key: J_,
value: null,
textValue: "",
level: 0,
@@ -22176,7 +22176,7 @@ var Xee = class extends Yee {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Z_(s, a);
+ let l = Y_(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -22237,7 +22237,7 @@ var Xee = class extends Yee {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Zee(e) {
+function $ee(e) {
let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || Mp(e), i = (0, V.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
@@ -22288,11 +22288,11 @@ function Zee(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Qee = {
+var ete = {
ascending: "descending",
descending: "ascending"
};
-function $ee(e) {
+function tte(e) {
let [t, n] = (0, V.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, V.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -22303,7 +22303,7 @@ function $ee(e) {
i,
r,
a
- ]), c = zp(e, (0, V.useCallback)((e) => new Xee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Zee({
+ ]), c = zp(e, (0, V.useCallback)((e) => new Qee(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = $ee({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -22319,7 +22319,7 @@ function $ee(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Qee[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? ete[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -22332,7 +22332,7 @@ function $ee(e) {
treeColumn: o
};
}
-function ete(e, t) {
+function nte(e, t) {
let n = (0, V.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -22342,10 +22342,10 @@ function ete(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Q_ = class {
+var X_ = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new tte(e.layout) : new sp(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Z_(e.layout) : new sp(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -22511,7 +22511,7 @@ var Q_ = class {
}
return null;
}
-}, tte = class {
+}, Z_ = class {
constructor(e) {
this.layout = e;
}
@@ -22524,16 +22524,16 @@ var Q_ = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, $_ = /* @__PURE__ */ new WeakMap();
+}, Q_ = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function nte(e, t, n) {
+function $_(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
let h = up({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Js(), _ = t.selectionManager.disabledBehavior, v = (0, V.useMemo)(() => a || new Q_({
+ }), { direction: g } = Js(), _ = t.selectionManager.disabledBehavior, v = (0, V.useMemo)(() => a || new X_({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -22559,7 +22559,7 @@ function nte(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Na(e.id);
- $_.set(t, {
+ Q_.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -22568,7 +22568,7 @@ function nte(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = _ee({
+ let x = D_({
selectionManager: m,
hasItemActions: !!(l || u)
}), S = jl(e, { labelable: !0 }), C = (0, V.useCallback)((e) => {
@@ -22580,12 +22580,12 @@ function nte(e, t, n) {
}, [m]), w = (0, V.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = A_(n, { isDisabled: t.collection.size !== 0 }), E = G(S, {
+ }), [C, y.onBlur]), T = E_(n, { isDisabled: t.collection.size !== 0 }), E = G(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), hee({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), yee({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
@@ -23191,7 +23191,7 @@ Rv = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ite = class extends Q_ {
+var ite = class extends X_ {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -23297,7 +23297,7 @@ function ote(e, t, n) {
o
]), d = Na(e.id);
ev.set(t, d);
- let { gridProps: f } = nte({
+ let { gridProps: f } = $_({
...e,
id: d,
keyboardDelegate: u
@@ -23318,7 +23318,7 @@ function ote(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
function zv(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Js(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = $_.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, V.useRef)(null), h = () => {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Js(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Q_.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, V.useRef)(null), h = () => {
if (n.current) {
let e = qf(n.current);
if (p === "child") {
@@ -23459,7 +23459,7 @@ function cte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function lte(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = $_.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = hp({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Q_.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = hp({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -23493,7 +23493,7 @@ var Vv = {
rtl: "ArrowRight"
}
};
-function Hv(e, t, n) {
+function dte(e, t, n) {
let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = lte(e, t, n), { direction: s } = Js();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = cc(ute(Rv), "@react-aria/table"), u = Ls({
@@ -23503,7 +23503,7 @@ function Hv(e, t, n) {
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = Uv(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = Uv(t.collection, a);
+ let n = Hv(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = Hv(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
@@ -23535,18 +23535,18 @@ function Hv(e, t, n) {
...o
};
}
-function Uv(e, t) {
+function Hv(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function dte(e, t, n) {
+function fte(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function fte(e, t, n) {
+function pte(e, t, n) {
let { gridCellProps: r, isPressed: i } = zv(e, t, n), a = e.node.column?.key;
return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = nv(t, e.node.parentKey, a)), {
gridCellProps: r,
@@ -23555,20 +23555,20 @@ function fte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function pte(e) {
+function mte(e) {
return e && e.__esModule ? e.default : e;
}
-function mte(e, t) {
- let { key: n } = e, { checkboxProps: r } = yee(e, t);
+function hte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = xee(e, t);
return { checkboxProps: {
...r,
"aria-labelledby": `${r.id} ${rv(t, n)}`
} };
}
-function hte(e) {
+function gte(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": cc(pte(Rv), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": cc(mte(Rv), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -23577,17 +23577,17 @@ function hte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function gte() {
+function _te() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function Wv() {
- return gte();
+function Uv() {
+ return _te();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var _te = class extends vc {
+var vte = class extends vc {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -23602,7 +23602,7 @@ var _te = class extends vc {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Qv(-2);
+ return new Xv(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -23628,7 +23628,7 @@ var _te = class extends vc {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Z_(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = Y_(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -23709,10 +23709,10 @@ var _te = class extends vc {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Yv(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new qv(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Gv = /*#__PURE__*/ (0, V.createContext)(null), vte = /*#__PURE__*/ (0, V.createContext)(null), Kv = /*#__PURE__*/ (0, V.createContext)(null), qv = /*#__PURE__*/ (0, V.createContext)(null), yte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- [e, t] = Ga(e, t, vte);
+}, yte = /*#__PURE__*/ (0, V.createContext)(null), bte = /*#__PURE__*/ (0, V.createContext)(null), Wv = /*#__PURE__*/ (0, V.createContext)(null), Gv = /*#__PURE__*/ (0, V.createContext)(null), xte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ [e, t] = Ga(e, t, bte);
let n = Mp(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, V.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
@@ -23723,17 +23723,17 @@ var _te = class extends vc {
i,
a,
o
- ]), c = /*#__PURE__*/ V.createElement(Ste.Provider, { value: s }, /*#__PURE__*/ V.createElement(_l, e));
+ ]), c = /*#__PURE__*/ V.createElement(wte.Provider, { value: s }, /*#__PURE__*/ V.createElement(_l, e));
return /*#__PURE__*/ V.createElement(al, {
content: c,
- createCollection: () => new _te()
- }, (r) => /*#__PURE__*/ V.createElement(xte, {
+ createCollection: () => new vte()
+ }, (r) => /*#__PURE__*/ V.createElement(Cte, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), bte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}), Ste = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -23742,7 +23742,7 @@ var _te = class extends vc {
...e,
ref: t
});
-}), Jv = {
+}), Kv = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -23752,26 +23752,26 @@ var _te = class extends vc {
rtl: "ArrowRight"
}
};
-function xte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+function Cte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = Ga(e, t, dc);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, V.useContext)(Gv);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, V.useContext)(yte);
t = Ba((0, V.useMemo)(() => Ia(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = uc(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, V.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = $ee({
+ let d = tte({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = ete(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, V.useContext)(Cl), { dragAndDropHooks: _ } = e, { gridProps: v } = ote({
+ }), f = nte(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, V.useContext)(Cl), { dragAndDropHooks: _ } = e, { gridProps: v } = ote({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, V.useRef)(b), (0, V.useRef)(x), (0, V.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, V.useRef)(null), { direction: O } = Js(), [k] = (0, V.useState)(() => new Jee());
+ let S, C, w, T = !1, E = null, D = (0, V.useRef)(null), { direction: O } = Js(), [k] = (0, V.useState)(() => new Xee());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -23806,7 +23806,7 @@ function xte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Jv.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Jv.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Kv.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Kv.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
@@ -23829,17 +23829,17 @@ function xte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}));
let I = jl(e, { global: !0 });
return /*#__PURE__*/ V.createElement(Ha, { values: [
- [Kv, f],
- [qv, F],
+ [Wv, f],
+ [Gv, F],
[sf, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [cf, { render: Mte }],
+ [cf, { render: Pte }],
[dc, null],
[fc, null]
- ] }, /*#__PURE__*/ V.createElement(Df, null, /*#__PURE__*/ V.createElement(bte, {
+ ] }, /*#__PURE__*/ V.createElement(Df, null, /*#__PURE__*/ V.createElement(Ste, {
...G(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -23855,11 +23855,11 @@ function xte({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
persistedKeys: df(y, _, C)
})))), E);
}
-var Ste = /*#__PURE__*/ (0, V.createContext)(null), Yv = class extends pc {
+var wte = /*#__PURE__*/ (0, V.createContext)(null), qv = class extends pc {
static {
this.type = "tableheader";
}
-}, Cte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, Tte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -23868,16 +23868,16 @@ var Ste = /*#__PURE__*/ (0, V.createContext)(null), Yv = class extends pc {
...e,
ref: t
});
-}), Xv = /*#__PURE__*/ ml(Yv, (e, t) => {
- let n = (0, V.useContext)(Kv).collection, r = Cc({
+}), Jv = /*#__PURE__*/ ml(qv, (e, t) => {
+ let n = (0, V.useContext)(Wv).collection, r = Cc({
items: n.headerRows,
children: (0, V.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ V.createElement(Tte, { item: e });
+ case "headerrow": return /*#__PURE__*/ V.createElement(Dte, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = Wv(), { hoverProps: a, isHovered: o } = cu({
+ }), { rowGroupProps: i } = Uv(), { hoverProps: a, isHovered: o } = cu({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -23887,7 +23887,7 @@ var Ste = /*#__PURE__*/ (0, V.createContext)(null), Yv = class extends pc {
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ V.createElement(Cte, {
+ return /*#__PURE__*/ V.createElement(Tte, {
...G(jl(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -23896,7 +23896,7 @@ var Ste = /*#__PURE__*/ (0, V.createContext)(null), Yv = class extends pc {
}, (e) => /*#__PURE__*/ V.createElement(_l, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), wte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, e.children)), Ete = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement("div", {
...e,
@@ -23906,12 +23906,12 @@ var Ste = /*#__PURE__*/ (0, V.createContext)(null), Yv = class extends pc {
ref: t
});
});
-function Tte({ item: e }) {
- let t = (0, V.useRef)(null), n = (0, V.useContext)(Kv), { isVirtualized: r, CollectionBranch: i } = (0, V.useContext)(Cl), { rowProps: a } = dte({
+function Dte({ item: e }) {
+ let t = (0, V.useRef)(null), n = (0, V.useContext)(Wv), { isVirtualized: r, CollectionBranch: i } = (0, V.useContext)(Cl), { rowProps: a } = fte({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = hte(n);
- return /*#__PURE__*/ V.createElement(wte, {
+ }, n, t), { checkboxProps: o } = gte(n);
+ return /*#__PURE__*/ V.createElement(Ete, {
...a,
ref: t
}, /*#__PURE__*/ V.createElement(Ha, { values: [[fd, { slots: { selection: o } }], [pd, { slots: { selection: o } }]] }, /*#__PURE__*/ V.createElement(i, {
@@ -23919,11 +23919,11 @@ function Tte({ item: e }) {
parent: e
})));
}
-var Ete = class extends pc {
+var Ote = class extends pc {
static {
this.type = "column";
}
-}, Dte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, kte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -23932,13 +23932,13 @@ var Ete = class extends pc {
...e,
ref: t
});
-}), Zv = /*#__PURE__*/ pl(Ete, (e, t, n) => {
- let r = Ba(t), i = (0, V.useContext)(Kv), { isVirtualized: a } = (0, V.useContext)(Cl), { columnHeaderProps: o, isPressed: s } = cte({
+}), Yv = /*#__PURE__*/ pl(Ote, (e, t, n) => {
+ let r = Ba(t), i = (0, V.useContext)(Wv), { isVirtualized: a } = (0, V.useContext)(Cl), { columnHeaderProps: o, isPressed: s } = cte({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = nu(), d = (0, V.useContext)(qv), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = nu(), d = (0, V.useContext)(Gv), f = !1;
d && (f = d.resizingColumn === n.key);
let { hoverProps: p, isHovered: m } = cu({ isDisabled: !e.allowsSorting }), h = Ua({
...e,
@@ -23967,7 +23967,7 @@ var Ete = class extends pc {
width: d.getColumnWidth(n.key)
});
let _ = jl(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ V.createElement(Dte, {
+ return delete _.id, /*#__PURE__*/ V.createElement(kte, {
...G(_, o, u, p),
...h,
style: g,
@@ -23979,15 +23979,15 @@ var Ete = class extends pc {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ V.createElement(Ha, { values: [[Ote, {
+ }, /*#__PURE__*/ V.createElement(Ha, { values: [[Ate, {
column: n,
triggerRef: r
}], [Cl, bl]] }, h.children));
-}), Ote = /*#__PURE__*/ (0, V.createContext)(null), Qv = class extends mc {
+}), Ate = /*#__PURE__*/ (0, V.createContext)(null), Xv = class extends mc {
static {
this.type = "tablebody";
}
-}, kte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, jte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -23996,8 +23996,8 @@ var Ete = class extends pc {
...e,
ref: t
});
-}), $v = /*#__PURE__*/ ml(Qv, (e, t, n) => {
- let r = (0, V.useContext)(Kv), { isVirtualized: i } = (0, V.useContext)(Cl), a = r.collection, { CollectionBranch: o } = (0, V.useContext)(Cl), { dragAndDropHooks: s, dropState: c } = (0, V.useContext)(sf), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), Zv = /*#__PURE__*/ ml(Xv, (e, t, n) => {
+ let r = (0, V.useContext)(Wv), { isVirtualized: i } = (0, V.useContext)(Cl), a = r.collection, { CollectionBranch: o } = (0, V.useContext)(Cl), { dragAndDropHooks: s, dropState: c } = (0, V.useContext)(sf), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
}, p = Ua({
@@ -24009,22 +24009,22 @@ var Ete = class extends pc {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ V.createElement(ty, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ V.createElement($v, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ V.createElement(ry, {
+ }, /*#__PURE__*/ V.createElement(ty, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = Wv(), _ = jl(e, { global: !0 });
- return /*#__PURE__*/ V.createElement(kte, {
+ let { rowGroupProps: g } = Uv(), _ = jl(e, { global: !0 });
+ return /*#__PURE__*/ V.createElement(jte, {
...G(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ V.createElement(Lte, null), /*#__PURE__*/ V.createElement(o, {
+ }, l && /*#__PURE__*/ V.createElement(ay, null), /*#__PURE__*/ V.createElement(o, {
collection: a,
parent: n,
renderDropIndicator: uf(s, c)
@@ -24035,7 +24035,7 @@ var Ete = class extends pc {
this.type = "tablefooter";
}
});
-var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), Ate = class extends pc {
+var Qv = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), Mte = class extends pc {
static {
this.type = "item";
}
@@ -24047,7 +24047,7 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
}
return null;
}
-}, ty = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, $v = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -24056,8 +24056,8 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
...e,
ref: t
});
-}), ny = /*#__PURE__*/ ml(Ate, (e, t, n) => {
- let r = Ba(t), i = (0, V.useContext)(Kv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, V.useContext)(sf), { isVirtualized: c, CollectionBranch: l } = (0, V.useContext)(Cl), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Hv({
+}), ey = /*#__PURE__*/ ml(Mte, (e, t, n) => {
+ let r = Ba(t), i = (0, V.useContext)(Wv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, V.useContext)(sf), { isVirtualized: c, CollectionBranch: l } = (0, V.useContext)(Cl), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = dte({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -24066,7 +24066,7 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = mte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = hte({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -24103,10 +24103,10 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
level: n.level + 1
}
}), N = jl(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ V.createElement(V.Fragment, null, C && !C.isHidden && /*#__PURE__*/ V.createElement(ty, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ V.createElement(V.Fragment, null, C && !C.isHidden && /*#__PURE__*/ V.createElement($v, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ V.createElement(ry, {
+ }, /*#__PURE__*/ V.createElement(ty, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -24115,7 +24115,7 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ V.createElement(ty, {
+ }))), /*#__PURE__*/ V.createElement($v, {
...G(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -24150,7 +24150,7 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
}
} }],
[hf, { isSelected: p.isSelected }],
- [ey, { isFocusVisibleWithinRow: _ }]
+ [Qv, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ V.createElement(l, {
collection: i.collection,
parent: n
@@ -24163,11 +24163,11 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
items: e.columns,
idScope: e.id
}, e.children);
-}), jte = class extends pc {
+}), Nte = class extends pc {
static {
this.type = "cell";
}
-}, ry = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}, ty = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -24176,16 +24176,16 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
...e,
ref: t
});
-}), iy = /*#__PURE__*/ pl(jte, (e, t, n) => {
- let r = Ba(t), i = (0, V.useContext)(Kv), { dragState: a } = (0, V.useContext)(sf), { isVirtualized: o } = (0, V.useContext)(Cl);
+}), ny = /*#__PURE__*/ pl(Nte, (e, t, n) => {
+ let r = Ba(t), i = (0, V.useContext)(Wv), { dragState: a } = (0, V.useContext)(sf), { isVirtualized: o } = (0, V.useContext)(Cl);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = fte({
+ let { gridCellProps: s, isPressed: c } = pte({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = nu(), { hoverProps: f, isHovered: p } = cu({}), { isFocusVisibleWithinRow: m } = (0, V.useContext)(ey), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Ua({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = nu(), { hoverProps: f, isHovered: p } = cu({}), { isFocusVisibleWithinRow: m } = (0, V.useContext)(Qv), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Ua({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -24205,7 +24205,7 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
isTreeColumn: n.column.key === i.treeColumn
}
}), S = jl(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ V.createElement(ry, {
+ return delete S.id, /*#__PURE__*/ V.createElement(ty, {
...G(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -24221,12 +24221,12 @@ var ey = /*#__PURE__*/ (0, V.createContext)({ isFocusVisibleWithinRow: !1 }), At
"data-disabled": b || void 0
}, /*#__PURE__*/ V.createElement(Cl.Provider, { value: bl }, x.children));
});
-function Mte(e, t) {
+function Pte(e, t) {
t = Ba(t);
let { dragAndDropHooks: n, dropState: r } = (0, V.useContext)(sf), i = (0, V.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ V.createElement(Ite, {
+ return /*#__PURE__*/ V.createElement(iy, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -24235,7 +24235,7 @@ function Mte(e, t) {
ref: t
});
}
-var Nte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+var Fte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -24244,7 +24244,7 @@ var Nte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
...e,
ref: t
});
-}), Pte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+}), Ite = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
let { isVirtualized: n } = (0, V.useContext)(Cl);
return n ? /*#__PURE__*/ V.createElement(Xa.div, {
...e,
@@ -24254,21 +24254,21 @@ var Nte = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
ref: t
});
});
-function Fte(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, V.useContext)(Kv), { visuallyHiddenProps: c } = Ru(), l = Ua({
+function ry(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, V.useContext)(Wv), { visuallyHiddenProps: c } = Ru(), l = Ua({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ V.createElement(Nte, {
+ return /*#__PURE__*/ V.createElement(Fte, {
...jl(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ V.createElement(Pte, {
+ }, /*#__PURE__*/ V.createElement(Ite, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -24279,14 +24279,14 @@ function Fte(e, t) {
ref: i
}), l.children));
}
-var Ite = /*#__PURE__*/ (0, V.forwardRef)(Fte);
-function Lte() {
- let e = (0, V.useContext)(Kv), { dragAndDropHooks: t, dropState: n } = (0, V.useContext)(sf), r = (0, V.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Ru();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ V.createElement(ty, {
+var iy = /*#__PURE__*/ (0, V.forwardRef)(ry);
+function ay() {
+ let e = (0, V.useContext)(Wv), { dragAndDropHooks: t, dropState: n } = (0, V.useContext)(sf), r = (0, V.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Ru();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ V.createElement($v, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ V.createElement(ry, {
+ }, /*#__PURE__*/ V.createElement(ty, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -24298,7 +24298,7 @@ function Lte() {
})));
}
pl(hc, function(e, t, n) {
- let r = (0, V.useContext)(Kv), { isVirtualized: i } = (0, V.useContext)(Cl), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, V.useRef)(null);
+ let r = (0, V.useContext)(Wv), { isVirtualized: i } = (0, V.useContext)(Cl), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, V.useRef)(null);
Up((0, V.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
@@ -24317,10 +24317,10 @@ pl(hc, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(ty, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement($v, {
style: { height: 0 },
inert: Op(!0)
- }, /*#__PURE__*/ V.createElement(ry, { style: {
+ }, /*#__PURE__*/ V.createElement(ty, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ V.createElement("div", {
@@ -24331,14 +24331,14 @@ pl(hc, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ V.createElement(ty, {
+ }))), a && d.children && /*#__PURE__*/ V.createElement($v, {
...G(jl(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ V.createElement(ry, {
+ }, /*#__PURE__*/ V.createElement(ty, {
role: "rowheader",
...p,
style: m
@@ -24346,13 +24346,13 @@ pl(hc, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var ay = /* @__PURE__ */ new WeakMap();
-function oy(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${ay.get(e)}-${n}-${t}`) : "";
+var oy = /* @__PURE__ */ new WeakMap();
+function sy(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${oy.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Rte(e, t, n) {
+function cy(e, t, n) {
let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = hp({
selectionManager: o,
key: r,
@@ -24360,7 +24360,7 @@ function Rte(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = oy(t, r, "tab"), m = oy(t, r, "tabpanel"), { tabIndex: h } = d, g = jl(u?.props, { labelable: !0 });
+ }), p = sy(t, r, "tab"), m = sy(t, r, "tabpanel"), { tabIndex: h } = d, g = jl(u?.props, { labelable: !0 });
delete g.id;
let _ = as(u?.props), { focusableProps: v } = Yc({
...u?.props,
@@ -24382,12 +24382,12 @@ function Rte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function zte(e, t, n) {
- let r = A_(n) ? void 0 : 0, i = oy(t, e.id ?? t?.selectedKey, "tabpanel");
+function ly(e, t, n) {
+ let r = E_(n) ? void 0 : 0, i = sy(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: G(Ls({
...e,
id: i,
- "aria-labelledby": oy(t, t?.selectedKey, "tab")
+ "aria-labelledby": sy(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -24397,7 +24397,7 @@ function zte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Bte = class {
+var uy = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -24441,11 +24441,11 @@ var Bte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Vte(e, t, n) {
+function dy(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Js(), { collectionProps: l } = op({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, V.useMemo)(() => new Bte(a, c, r, s), [
+ keyboardDelegate: (0, V.useMemo)(() => new uy(a, c, r, s), [
a,
s,
r,
@@ -24456,7 +24456,7 @@ function Vte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Na();
- return ay.set(t, u), { tabListProps: {
+ return oy.set(t, u), { tabListProps: {
...G(l, Ls({
...e,
id: u
@@ -24468,7 +24468,7 @@ function Vte(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Hte(e) {
+function fy(e) {
let [t, n] = uc(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, V.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Bp({
...e,
selectionMode: "single",
@@ -24492,24 +24492,24 @@ function Hte(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ute(e) {
- let t = Hte({
+function py(e) {
+ let t = fy({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? sy(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? my(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, V.useRef)(i);
return (0, V.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = sy(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = my(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function sy(e, t) {
+function my(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -24519,20 +24519,20 @@ function sy(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var cy = /*#__PURE__*/ (0, V.createContext)(null), ly = /*#__PURE__*/ (0, V.createContext)(null), uy = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- [e, t] = Ga(e, t, cy);
+var hy = /*#__PURE__*/ (0, V.createContext)(null), gy = /*#__PURE__*/ (0, V.createContext)(null), _y = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ [e, t] = Ga(e, t, hy);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, V.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ V.createElement(al, { content: n }, (n) => /*#__PURE__*/ V.createElement(Wte, {
+ }) : n, [n, r]), /*#__PURE__*/ V.createElement(al, { content: n }, (n) => /*#__PURE__*/ V.createElement(Lte, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Wte({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ute({
+function Lte({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = py({
...e,
collection: n,
children: void 0
@@ -24557,16 +24557,16 @@ function Wte({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ V.createElement(Ha, { values: [[cy, e], [ly, i]] }, l.children));
+ }, /*#__PURE__*/ V.createElement(Ha, { values: [[hy, e], [gy, i]] }, l.children));
}
-var dy = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- return (0, V.useContext)(ly) ? /*#__PURE__*/ V.createElement(Gte, {
+var vy = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ return (0, V.useContext)(gy) ? /*#__PURE__*/ V.createElement(Rte, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ V.createElement(_l, e);
});
-function Gte({ props: e, forwardedRef: t }) {
- let n = (0, V.useContext)(ly), { CollectionRoot: r } = (0, V.useContext)(Cl), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Wa(cy), o = Ba(t), { tabListProps: s } = Vte({
+function Rte({ props: e, forwardedRef: t }) {
+ let n = (0, V.useContext)(gy), { CollectionRoot: r } = (0, V.useContext)(Cl), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Wa(hy), o = Ba(t), { tabListProps: s } = dy({
...e,
orientation: i,
keyboardActivation: a
@@ -24588,12 +24588,12 @@ function Gte({ props: e, forwardedRef: t }) {
persistedKeys: wl(n.selectionManager.focusedKey)
})));
}
-var fy = /*#__PURE__*/ pl(class extends pc {
+var yy = /*#__PURE__*/ pl(class extends pc {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, V.useContext)(ly), i = Ba(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Rte({
+ let r = (0, V.useContext)(gy), i = Ba(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = cy({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = nu(), { hoverProps: f, isHovered: p } = cu({
@@ -24625,19 +24625,19 @@ var fy = /*#__PURE__*/ pl(class extends pc {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ V.createElement(hf.Provider, { value: { isSelected: o } }, m.children));
-}), py = /*#__PURE__*/ Qc(function(e, t) {
- let n = (0, V.useContext)(ly), r = Ba(t), i = n.selectedKey === e.id, [a, o] = (0, V.useState)(n.selectedKey == null ? null : i);
+}), by = /*#__PURE__*/ Qc(function(e, t) {
+ let n = (0, V.useContext)(gy), r = Ba(t), i = n.selectedKey === e.id, [a, o] = (0, V.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
let s = Uh(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ V.createElement(Kte, {
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ V.createElement(zte, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Kte(e) {
- let t = (0, V.useContext)(ly), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = nu(), d = t.selectedKey === e.id, f = Hh(r) && !i, p = Ua({
+function zte(e) {
+ let t = (0, V.useContext)(gy), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ly(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = nu(), d = t.selectedKey === e.id, f = Hh(r) && !i, p = Ua({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -24660,12 +24660,12 @@ function Kte(e) {
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ V.createElement(Ha, { values: [[cy, null], [ly, null]] }, /*#__PURE__*/ V.createElement(Cl.Provider, { value: bl }, p.children)));
+ }, /*#__PURE__*/ V.createElement(Ha, { values: [[hy, null], [gy, null]] }, /*#__PURE__*/ V.createElement(Cl.Provider, { value: bl }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var qte = /*#__PURE__*/ (0, V.createContext)({}), Jte = /*#__PURE__*/ (0, V.createContext)(null), Yte = /*#__PURE__*/ Qc(function(e, t) {
- [e, t] = Ga(e, t, Jte);
+var Bte = /*#__PURE__*/ (0, V.createContext)({}), Vte = /*#__PURE__*/ (0, V.createContext)(null), Hte = /*#__PURE__*/ Qc(function(e, t) {
+ [e, t] = Ga(e, t, Vte);
let { validationBehavior: n } = Wa(Qu) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, V.useRef)(null);
[e, i] = Ga(e, i, fc);
let [a, o] = Ka(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, V.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = wd({
@@ -24703,7 +24703,7 @@ var qte = /*#__PURE__*/ (0, V.createContext)({}), Jte = /*#__PURE__*/ (0, V.crea
...u,
ref: m
}],
- [qte, {
+ [Bte, {
...u,
ref: m
}],
@@ -24721,34 +24721,34 @@ var qte = /*#__PURE__*/ (0, V.createContext)({}), Jte = /*#__PURE__*/ (0, V.crea
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function my(e, t) {
+function xy(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function hy(e, t) {
+function Sy(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var gy = (e, t, n) => n > t ? t : n < e ? e : n, _y = {}, vy = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), yy = (e) => typeof e == "object" && !!e, by = (e) => /^0[^.\s]+$/u.test(e);
+var Cy = (e, t, n) => n > t ? t : n < e ? e : n, wy = {}, Ty = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Ey = (e) => typeof e == "object" && !!e, Dy = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function xy(e) {
+function Oy(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var Sy = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Cy = (...e) => e.reduce((e, t) => (n) => t(e(n))), wy = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var ky = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Ay = (...e) => e.reduce((e, t) => (n) => t(e(n))), jy = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Ty = class {
+}, My = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return my(this.subscriptions, e), () => hy(this.subscriptions, e);
+ return xy(this.subscriptions, e), () => Sy(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -24766,42 +24766,42 @@ var Sy = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Cy = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Ey = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Dy = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Oy = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, ky = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Xte = 1e-7, Zte = 12;
-function Qte(e, t, n, r, i) {
+}, Ny = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Py = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Fy = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Iy = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ute = 1e-7, Wte = 12;
+function Gte(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = ky(o, r, i) - e, a > 0 ? n = o : t = o;
- while (Math.abs(a) > Xte && ++s < Zte);
+ o = t + (n - t) / 2, a = Iy(o, r, i) - e, a > 0 ? n = o : t = o;
+ while (Math.abs(a) > Ute && ++s < Wte);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function Ay(e, t, n, r) {
- if (e === t && n === r) return Sy;
- let i = (t) => Qte(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : ky(i(e), t, r);
+function Ly(e, t, n, r) {
+ if (e === t && n === r) return ky;
+ let i = (t) => Gte(t, 0, 1, e, n);
+ return (e) => e === 0 || e === 1 ? e : Iy(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var jy = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, My = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Ny = /*@__PURE__*/ Ay(.33, 1.53, .69, .99), Py = /*@__PURE__*/ My(Ny), Fy = /*@__PURE__*/ jy(Py), Iy = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Py(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ly = (e) => 1 - Math.sin(Math.acos(e)), Ry = /* @__PURE__ */ My(Ly), zy = /* @__PURE__ */ jy(Ly), $te = /*@__PURE__*/ Ay(.42, 0, 1, 1), ene = /*@__PURE__*/ Ay(0, 0, .58, 1), By = /*@__PURE__*/ Ay(.42, 0, .58, 1), tne = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", Vy = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Hy = {
- linear: Sy,
- easeIn: $te,
- easeInOut: By,
- easeOut: ene,
- circIn: Ly,
- circInOut: zy,
- circOut: Ry,
- backIn: Py,
- backInOut: Fy,
- backOut: Ny,
- anticipate: Iy
-}, nne = (e) => typeof e == "string", Uy = (e) => {
- if (/* @__PURE__ */ Vy(e)) {
+var Ry = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, zy = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), By = /*@__PURE__*/ Ly(.33, 1.53, .69, .99), Vy = /*@__PURE__*/ zy(By), Hy = /*@__PURE__*/ Ry(Vy), Uy = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Vy(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Wy = (e) => 1 - Math.sin(Math.acos(e)), Gy = /* @__PURE__ */ zy(Wy), Ky = /* @__PURE__ */ Ry(Wy), Kte = /*@__PURE__*/ Ly(.42, 0, 1, 1), qte = /*@__PURE__*/ Ly(0, 0, .58, 1), qy = /*@__PURE__*/ Ly(.42, 0, .58, 1), Jte = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", Jy = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Yy = {
+ linear: ky,
+ easeIn: Kte,
+ easeInOut: qy,
+ easeOut: qte,
+ circIn: Wy,
+ circInOut: Ky,
+ circOut: Gy,
+ backIn: Vy,
+ backInOut: Hy,
+ backOut: By,
+ anticipate: Uy
+}, Yte = (e) => typeof e == "string", Xy = (e) => {
+ if (/* @__PURE__ */ Jy(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ Ay(t, n, r, i);
+ return /* @__PURE__ */ Ly(t, n, r, i);
}
- return nne(e) ? (Hy[e], `${e}`, Hy[e]) : e;
-}, Wy = [
+ return Yte(e) ? (Yy[e], `${e}`, Yy[e]) : e;
+}, Zy = [
"setup",
"read",
"resolveKeyframes",
@@ -24813,7 +24813,7 @@ var jy = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 -
];
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function rne(e) {
+function Xte(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a = /* @__PURE__ */ new WeakSet(), o = {
delta: 0,
timestamp: 0,
@@ -24844,25 +24844,25 @@ function rne(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var ine = 40;
-function Gy(e, t) {
+var Zte = 40;
+function Qy(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = Wy.reduce((e, t) => (e[t] = rne(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = _y.useManualTiming, o = a ? i.timestamp : performance.now();
- n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, ine), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
+ }, a = () => n = !0, o = Zy.reduce((e, t) => (e[t] = Xte(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = wy.useManualTiming, o = a ? i.timestamp : performance.now();
+ n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Zte), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: Wy.reduce((e, t) => {
+ schedule: Zy.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < Wy.length; t++) o[Wy[t]].cancel(e);
+ for (let t = 0; t < Zy.length; t++) o[Zy[t]].cancel(e);
},
state: i,
steps: o
@@ -24870,59 +24870,59 @@ function Gy(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: Ky, cancel: qy, state: Jy, steps: Yy } = /* @__PURE__ */ Gy(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sy, !0), Xy;
-function Zy() {
- Xy = void 0;
+var { schedule: $y, cancel: eb, state: tb, steps: nb } = /* @__PURE__ */ Qy(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ky, !0), rb;
+function Qte() {
+ rb = void 0;
}
-var Qy = {
- now: () => (Xy === void 0 && Qy.set(Jy.isProcessing || _y.useManualTiming ? Jy.timestamp : performance.now()), Xy),
+var ib = {
+ now: () => (rb === void 0 && ib.set(tb.isProcessing || wy.useManualTiming ? tb.timestamp : performance.now()), rb),
set: (e) => {
- Xy = e, queueMicrotask(Zy);
+ rb = e, queueMicrotask(Qte);
}
-}, $y = (e) => (t) => typeof t == "string" && t.startsWith(e), eb = /*@__PURE__*/ $y("--"), tb = /*@__PURE__*/ $y("var(--"), nb = (e) => tb(e) ? rb.test(e.split("/*")[0].trim()) : !1, rb = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function ib(e) {
+}, ab = (e) => (t) => typeof t == "string" && t.startsWith(e), ob = /*@__PURE__*/ ab("--"), $te = /*@__PURE__*/ ab("var(--"), sb = (e) => $te(e) ? ene.test(e.split("/*")[0].trim()) : !1, ene = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function cb(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var ab = {
+var lb = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, ob = {
- ...ab,
- transform: (e) => gy(0, 1, e)
-}, sb = {
- ...ab,
+}, ub = {
+ ...lb,
+ transform: (e) => Cy(0, 1, e)
+}, db = {
+ ...lb,
default: 1
-}, cb = (e) => Math.round(e * 1e5) / 1e5, lb = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, fb = (e) => Math.round(e * 1e5) / 1e5, pb = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function ub(e) {
+function tne(e) {
return e == null;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var db = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, fb = (e, t) => (n) => !!(typeof n == "string" && db.test(n) && n.startsWith(e) || t && !ub(n) && Object.prototype.hasOwnProperty.call(n, t)), pb = (e, t, n) => (r) => {
+var nne = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, mb = (e, t) => (n) => !!(typeof n == "string" && nne.test(n) && n.startsWith(e) || t && !tne(n) && Object.prototype.hasOwnProperty.call(n, t)), hb = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(lb);
+ let [i, a, o, s] = r.match(pb);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, ane = (e) => gy(0, 255, e), mb = {
- ...ab,
- transform: (e) => Math.round(ane(e))
-}, hb = {
- test: /*@__PURE__*/ fb("rgb", "red"),
- parse: /*@__PURE__*/ pb("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + mb.transform(e) + ", " + mb.transform(t) + ", " + mb.transform(n) + ", " + cb(ob.transform(r)) + ")"
+}, rne = (e) => Cy(0, 255, e), gb = {
+ ...lb,
+ transform: (e) => Math.round(rne(e))
+}, _b = {
+ test: /*@__PURE__*/ mb("rgb", "red"),
+ parse: /*@__PURE__*/ hb("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + gb.transform(e) + ", " + gb.transform(t) + ", " + gb.transform(n) + ", " + fb(ub.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
-function one(e) {
+function ine(e) {
let t = "", n = "", r = "", i = "";
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
red: parseInt(t, 16),
@@ -24931,38 +24931,38 @@ function one(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var gb = {
- test: /*@__PURE__*/ fb("#"),
- parse: one,
- transform: hb.transform
-}, _b = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var vb = {
+ test: /*@__PURE__*/ mb("#"),
+ parse: ine,
+ transform: _b.transform
+}, yb = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), vb = /*@__PURE__*/ _b("deg"), yb = /*@__PURE__*/ _b("%"), q = /*@__PURE__*/ _b("px"), sne = /*@__PURE__*/ _b("vh"), cne = /*@__PURE__*/ _b("vw"), bb = {
- ...yb,
- parse: (e) => yb.parse(e) / 100,
- transform: (e) => yb.transform(e * 100)
-}, xb = {
- test: /*@__PURE__*/ fb("hsl", "hue"),
- parse: /*@__PURE__*/ pb("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + yb.transform(cb(t)) + ", " + yb.transform(cb(n)) + ", " + cb(ob.transform(r)) + ")"
-}, Sb = {
- test: (e) => hb.test(e) || gb.test(e) || xb.test(e),
- parse: (e) => hb.test(e) ? hb.parse(e) : xb.test(e) ? xb.parse(e) : gb.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? hb.transform(e) : xb.transform(e),
+}), bb = /*@__PURE__*/ yb("deg"), xb = /*@__PURE__*/ yb("%"), q = /*@__PURE__*/ yb("px"), ane = /*@__PURE__*/ yb("vh"), one = /*@__PURE__*/ yb("vw"), Sb = {
+ ...xb,
+ parse: (e) => xb.parse(e) / 100,
+ transform: (e) => xb.transform(e * 100)
+}, Cb = {
+ test: /*@__PURE__*/ mb("hsl", "hue"),
+ parse: /*@__PURE__*/ hb("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + xb.transform(fb(t)) + ", " + xb.transform(fb(n)) + ", " + fb(ub.transform(r)) + ")"
+}, wb = {
+ test: (e) => _b.test(e) || vb.test(e) || Cb.test(e),
+ parse: (e) => _b.test(e) ? _b.parse(e) : Cb.test(e) ? Cb.parse(e) : vb.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? _b.transform(e) : Cb.transform(e),
getAnimatableNone: (e) => {
- let t = Sb.parse(e);
- return t.alpha = 0, Sb.transform(t);
+ let t = wb.parse(e);
+ return t.alpha = 0, wb.transform(t);
}
-}, lne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
+}, sne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
-function une(e) {
- return isNaN(e) && typeof e == "string" && (e.match(lb)?.length || 0) + (e.match(lne)?.length || 0) > 0;
+function cne(e) {
+ return isNaN(e) && typeof e == "string" && (e.match(pb)?.length || 0) + (e.match(sne)?.length || 0) > 0;
}
-var Cb = "number", wb = "color", dne = "var", fne = "var(", Tb = "${}", pne = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
-function Eb(e) {
+var Tb = "number", Eb = "color", lne = "var", une = "var(", Db = "${}", dne = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
+function Ob(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -24970,51 +24970,51 @@ function Eb(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(pne, (e) => (Sb.test(e) ? (r.color.push(a), i.push(wb), n.push(Sb.parse(e))) : e.startsWith(fne) ? (r.var.push(a), i.push(dne), n.push(e)) : (r.number.push(a), i.push(Cb), n.push(parseFloat(e))), ++a, Tb)).split(Tb),
+ split: t.replace(dne, (e) => (wb.test(e) ? (r.color.push(a), i.push(Eb), n.push(wb.parse(e))) : e.startsWith(une) ? (r.var.push(a), i.push(lne), n.push(e)) : (r.number.push(a), i.push(Tb), n.push(parseFloat(e))), ++a, Db)).split(Db),
indexes: r,
types: i
};
}
-function mne(e) {
- return Eb(e).values;
+function fne(e) {
+ return Ob(e).values;
}
-function Db({ split: e, types: t }) {
+function kb({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Cb ? cb(r[a]) : e === wb ? Sb.transform(r[a]) : r[a];
+ i += e === Tb ? fb(r[a]) : e === Eb ? wb.transform(r[a]) : r[a];
}
return i;
};
}
-function hne(e) {
- return Db(Eb(e));
+function pne(e) {
+ return kb(Ob(e));
}
-var gne = (e) => typeof e == "number" ? 0 : Sb.test(e) ? Sb.getAnimatableNone(e) : e, _ne = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : gne(e);
-function vne(e) {
- let t = Eb(e);
- return Db(t)(t.values.map((e, n) => _ne(e, t.split[n])));
+var mne = (e) => typeof e == "number" ? 0 : wb.test(e) ? wb.getAnimatableNone(e) : e, hne = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : mne(e);
+function gne(e) {
+ let t = Ob(e);
+ return kb(t)(t.values.map((e, n) => hne(e, t.split[n])));
}
-var Ob = {
- test: une,
- parse: mne,
- createTransformer: hne,
- getAnimatableNone: vne
+var Ab = {
+ test: cne,
+ parse: fne,
+ createTransformer: pne,
+ getAnimatableNone: gne
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function kb(e, t, n) {
+function jb(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function yne({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function _ne({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = kb(s, r, e + 1 / 3), a = kb(s, r, e), o = kb(s, r, e - 1 / 3);
+ i = jb(s, r, e + 1 / 3), a = jb(s, r, e), o = jb(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -25025,61 +25025,61 @@ function yne({ hue: e, saturation: t, lightness: n, alpha: r }) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function Ab(e, t) {
+function Mb(e, t) {
return (n) => n > 0 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var jb = (e, t, n) => e + (t - e) * n, Mb = (e, t, n) => {
+var Nb = (e, t, n) => e + (t - e) * n, Pb = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, bne = [
- gb,
- hb,
- xb
-], xne = (e) => bne.find((t) => t.test(e));
-function Nb(e) {
- let t = xne(e);
+}, vne = [
+ vb,
+ _b,
+ Cb
+], yne = (e) => vne.find((t) => t.test(e));
+function Fb(e) {
+ let t = yne(e);
if (`${e}`, !t) return !1;
let n = t.parse(e);
- return t === xb && (n = yne(n)), n;
+ return t === Cb && (n = _ne(n)), n;
}
-var Pb = (e, t) => {
- let n = Nb(e), r = Nb(t);
- if (!n || !r) return Ab(e, t);
+var Ib = (e, t) => {
+ let n = Fb(e), r = Fb(t);
+ if (!n || !r) return Mb(e, t);
let i = { ...n };
- return (e) => (i.red = Mb(n.red, r.red, e), i.green = Mb(n.green, r.green, e), i.blue = Mb(n.blue, r.blue, e), i.alpha = jb(n.alpha, r.alpha, e), hb.transform(i));
-}, Fb = /* @__PURE__ */ new Set(["none", "hidden"]);
-function Sne(e, t) {
- return Fb.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = Pb(n.red, r.red, e), i.green = Pb(n.green, r.green, e), i.blue = Pb(n.blue, r.blue, e), i.alpha = Nb(n.alpha, r.alpha, e), _b.transform(i));
+}, Lb = /* @__PURE__ */ new Set(["none", "hidden"]);
+function bne(e, t) {
+ return Lb.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function Cne(e, t) {
- return (n) => jb(e, t, n);
+function xne(e, t) {
+ return (n) => Nb(e, t, n);
}
-function Ib(e) {
- return typeof e == "number" ? Cne : typeof e == "string" ? nb(e) ? Ab : Sb.test(e) ? Pb : Ene : Array.isArray(e) ? Lb : typeof e == "object" ? Sb.test(e) ? Pb : wne : Ab;
+function Rb(e) {
+ return typeof e == "number" ? xne : typeof e == "string" ? sb(e) ? Mb : wb.test(e) ? Ib : wne : Array.isArray(e) ? zb : typeof e == "object" ? wb.test(e) ? Ib : Sne : Mb;
}
-function Lb(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => Ib(e)(e, t[n]));
+function zb(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => Rb(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function wne(e, t) {
+function Sne(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Ib(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Rb(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function Tne(e, t) {
+function Cne(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -25091,50 +25091,50 @@ function Tne(e, t) {
}
return n;
}
-var Ene = (e, t) => {
- let n = Ob.createTransformer(t), r = Eb(e), i = Eb(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Fb.has(e) && !i.values.length || Fb.has(t) && !r.values.length ? Sne(e, t) : Cy(Lb(Tne(r, i), i.values), n) : (`${e}${t}`, Ab(e, t));
+var wne = (e, t) => {
+ let n = Ab.createTransformer(t), r = Ob(e), i = Ob(t);
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Lb.has(e) && !i.values.length || Lb.has(t) && !r.values.length ? bne(e, t) : Ay(zb(Cne(r, i), i.values), n) : (`${e}${t}`, Mb(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
-function Rb(e, t, n) {
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? jb(e, t, n) : Ib(e)(e, t);
+function Bb(e, t, n) {
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Nb(e, t, n) : Rb(e)(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
-var Dne = (e) => {
+var Tne = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => Ky.update(t, e),
- stop: () => qy(t),
- now: () => Jy.isProcessing ? Jy.timestamp : Qy.now()
+ start: (e = !0) => $y.update(t, e),
+ stop: () => eb(t),
+ now: () => tb.isProcessing ? tb.timestamp : ib.now()
};
-}, zb = (e, t, n = 10) => {
+}, Vb = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, Bb = 2e4;
-function Vb(e) {
+}, Hb = 2e4;
+function Ub(e) {
let t = 0, n = e.next(t);
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
return t >= 2e4 ? Infinity : t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function One(e, t = 100, n) {
+function Ene(e, t = 100, n) {
let r = n({
...e,
keyframes: [0, t]
- }), i = Math.min(Vb(r), Bb);
+ }), i = Math.min(Ub(r), Hb);
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ Dy(i)
+ duration: /* @__PURE__ */ Py(i)
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Hb = {
+var Wb = {
stiffness: 100,
damping: 10,
mass: 1,
@@ -25155,31 +25155,31 @@ var Hb = {
minDamping: .05,
maxDamping: 1
};
-function Ub(e, t) {
+function Gb(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var kne = 12;
-function Ane(e, t, n) {
+var Dne = 12;
+function One(e, t, n) {
let r = n;
- for (let n = 1; n < kne; n++) r -= e(r) / t(r);
+ for (let n = 1; n < Dne; n++) r -= e(r) / t(r);
return r;
}
-var Wb = .001;
-function jne({ duration: e = Hb.duration, bounce: t = Hb.bounce, velocity: n = Hb.velocity, mass: r = Hb.mass }) {
+var Kb = .001;
+function kne({ duration: e = Wb.duration, bounce: t = Wb.bounce, velocity: n = Wb.velocity, mass: r = Wb.mass }) {
let i, a;
- Hb.maxDuration;
+ Wb.maxDuration;
let o = 1 - t;
- o = gy(Hb.minDamping, Hb.maxDamping, o), e = gy(Hb.minDuration, Hb.maxDuration, /* @__PURE__ */ Dy(e)), o < 1 ? (i = (t) => {
- let r = t * o, i = r * e, a = r - n, s = Ub(t, o), c = Math.exp(-i);
- return Wb - a / s * c;
+ o = Cy(Wb.minDamping, Wb.maxDamping, o), e = Cy(Wb.minDuration, Wb.maxDuration, /* @__PURE__ */ Py(e)), o < 1 ? (i = (t) => {
+ let r = t * o, i = r * e, a = r - n, s = Gb(t, o), c = Math.exp(-i);
+ return Kb - a / s * c;
}, a = (t) => {
- let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Ub(t ** 2, o);
- return (-i(t) + Wb > 0 ? -1 : 1) * ((a - s) * c) / l;
+ let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Gb(t ** 2, o);
+ return (-i(t) + Kb > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
- let s = 5 / e, c = Ane(i, a, s);
- if (e = /* @__PURE__ */ Ey(e), isNaN(c)) return {
- stiffness: Hb.stiffness,
- damping: Hb.damping,
+ let s = 5 / e, c = One(i, a, s);
+ if (e = /* @__PURE__ */ Ny(e), isNaN(c)) return {
+ stiffness: Wb.stiffness,
+ damping: Wb.damping,
duration: e
};
{
@@ -25191,47 +25191,47 @@ function jne({ duration: e = Hb.duration, bounce: t = Hb.bounce, velocity: n = H
};
}
}
-var Mne = ["duration", "bounce"], Nne = [
+var Ane = ["duration", "bounce"], jne = [
"stiffness",
"damping",
"mass"
];
-function Gb(e, t) {
+function qb(e, t) {
return t.some((t) => e[t] !== void 0);
}
-function Pne(e) {
+function Mne(e) {
let t = {
- velocity: Hb.velocity,
- stiffness: Hb.stiffness,
- damping: Hb.damping,
- mass: Hb.mass,
+ velocity: Wb.velocity,
+ stiffness: Wb.stiffness,
+ damping: Wb.damping,
+ mass: Wb.mass,
isResolvedFromDuration: !1,
...e
};
- if (!Gb(e, Nne) && Gb(e, Mne)) {
+ if (!qb(e, jne) && qb(e, Ane)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * gy(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Cy(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
- mass: Hb.mass,
+ mass: Wb.mass,
stiffness: i,
damping: a
};
} else {
- let n = jne({
+ let n = kne({
...e,
velocity: 0
});
t = {
...t,
...n,
- mass: Hb.mass
+ mass: Wb.mass
}, t.isResolvedFromDuration = !0;
}
}
return t;
}
-function Kb(e = Hb.visualDuration, t = Hb.bounce) {
+function Jb(e = Wb.visualDuration, t = Wb.bounce) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -25239,13 +25239,13 @@ function Kb(e = Hb.visualDuration, t = Hb.bounce) {
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
done: !1,
value: a
- }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Pne({
+ }, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Mne({
...n,
- velocity: -/* @__PURE__ */ Dy(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ Dy(Math.sqrt(c / u)), v = Math.abs(g) < 5;
- r ||= v ? Hb.restSpeed.granular : Hb.restSpeed.default, i ||= v ? Hb.restDelta.granular : Hb.restDelta.default;
+ velocity: -/* @__PURE__ */ Py(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ Py(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ r ||= v ? Wb.restSpeed.granular : Wb.restSpeed.default, i ||= v ? Wb.restDelta.granular : Wb.restDelta.default;
let y, b, x, S, C, w;
- if (h < 1) x = Ub(_, h), S = (m + h * _ * g) / x, y = (e) => {
+ if (h < 1) x = Gb(_, h), S = (m + h * _ * g) / x, y = (e) => {
let t = Math.exp(-h * _ * e);
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
@@ -25267,42 +25267,42 @@ function Kb(e = Hb.visualDuration, t = Hb.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ Ey(b(e)),
+ velocity: (e) => /* @__PURE__ */ Ny(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ Ey(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ Ny(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ Ey(b(e));
+ let n = /* @__PURE__ */ Ny(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
},
toString: () => {
- let e = Math.min(Vb(T), Bb), t = zb((t) => T.next(e * t).value, e, 30);
+ let e = Math.min(Ub(T), Hb), t = Vb((t) => T.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return T;
}
-Kb.applyToOptions = (e) => {
- let t = One(e, 100, Kb);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Ey(t.duration), e.type = "keyframes", e;
+Jb.applyToOptions = (e) => {
+ let t = Ene(e, 100, Jb);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Ny(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Fne = 5;
-function qb(e, t, n) {
- let r = Math.max(t - Fne, 0);
- return /* @__PURE__ */ Oy(n - e(r), t - r);
+var Nne = 5;
+function Yb(e, t, n) {
+ let r = Math.max(t - Nne, 0);
+ return /* @__PURE__ */ Fy(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Jb({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Xb({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -25312,9 +25312,9 @@ function Jb({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e), n = y(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
}, x, S, C = (e) => {
- p(f.value) && (x = e, S = Kb({
+ p(f.value) && (x = e, S = Jb({
keyframes: [f.value, m(f.value)],
- velocity: qb(y, e, f.value),
+ velocity: Yb(y, e, f.value),
damping: i,
stiffness: a,
restDelta: l,
@@ -25331,59 +25331,59 @@ function Jb({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Ine(e, t, n) {
- let r = [], i = n || _y.mix || Rb, a = e.length - 1;
+function Pne(e, t, n) {
+ let r = [], i = n || wy.mix || Bb, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = Cy(Array.isArray(t) ? t[n] || Sy : t, a)), r.push(a);
+ t && (a = Ay(Array.isArray(t) ? t[n] || ky : t, a)), r.push(a);
}
return r;
}
-function Yb(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Zb(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (t.length, a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Ine(t, r, i), c = s.length, l = (n) => {
+ let s = Pne(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ wy(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ jy(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(gy(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Cy(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Lne(e, t) {
+function Fne(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ wy(0, t, r);
- e.push(jb(n, 1, i));
+ let i = /* @__PURE__ */ jy(0, t, r);
+ e.push(Nb(n, 1, i));
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Rne(e) {
+function Qb(e) {
let t = [0];
- return Lne(t, e.length - 1), t;
+ return Fne(t, e.length - 1), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function zne(e, t) {
+function $b(e, t) {
return e.map((e) => e * t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Bne(e, t) {
- return e.map(() => t || By).splice(0, e.length - 1);
+function ex(e, t) {
+ return e.map(() => t || qy).splice(0, e.length - 1);
}
-function Xb({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ tne(r) ? r.map(Uy) : Uy(r), a = {
+function tx({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
+ let i = /* @__PURE__ */ Jte(r) ? r.map(Xy) : Xy(r), a = {
done: !1,
value: t[0]
- }, o = Yb(zne(n && n.length === t.length ? n : Rne(t), e), t, { ease: Array.isArray(i) ? i : Bne(t, i) });
+ }, o = Zb($b(n && n.length === t.length ? n : Qb(t), e), t, { ease: Array.isArray(i) ? i : ex(t, i) });
return {
calculatedDuration: e,
next: (t) => (a.value = o(t), a.done = t >= e, a)
@@ -25391,26 +25391,26 @@ function Xb({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Vne = (e) => e !== null;
-function Zb(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Vne), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var nx = (e) => e !== null;
+function rx(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(nx), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Hne = {
- decay: Jb,
- inertia: Jb,
- tween: Xb,
- keyframes: Xb,
- spring: Kb
+var ix = {
+ decay: Xb,
+ inertia: Xb,
+ tween: tx,
+ keyframes: tx,
+ spring: Jb
};
-function Qb(e) {
- typeof e.type == "string" && (e.type = Hne[e.type]);
+function ax(e) {
+ typeof e.type == "string" && (e.type = ix[e.type]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var $b = class {
+var ox = class {
constructor() {
this.updateFinished();
}
@@ -25428,21 +25428,21 @@ var $b = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Une = (e) => e / 100, ex = class extends $b {
+}, sx = (e) => e / 100, cx = class extends ox {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== Qy.now() && this.tick(Qy.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== ib.now() && this.tick(ib.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
- Qb(e);
- let { type: t = Xb, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Xb;
- s !== Xb && typeof o[0] != "number" && (this.mixKeyframes = Cy(Une, Rb(o[0], o[1])), o = [0, 100]);
+ ax(e);
+ let { type: t = tx, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || tx;
+ s !== tx && typeof o[0] != "number" && (this.mixKeyframes = Ay(sx, Bb(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -25451,7 +25451,7 @@ var $b = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = Vb(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Ub(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -25469,54 +25469,54 @@ var $b = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = gy(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = Cy(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
let { done: x } = b;
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
- return S && p !== Jb && (b.value = Zb(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
+ return S && p !== Xb && (b.value = rx(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
}
then(e, t) {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ Dy(this.calculatedDuration);
+ return /* @__PURE__ */ Py(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Dy(e);
+ return this.duration + /* @__PURE__ */ Py(e);
}
get time() {
- return /* @__PURE__ */ Dy(this.currentTime);
+ return /* @__PURE__ */ Py(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Ey(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Ny(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
if (e <= 0) return this.options.velocity || 0;
if (this.generator.velocity) return this.generator.velocity(e);
let t = this.generator.next(e).value;
- return qb((e) => this.generator.next(e).value, e, t);
+ return Yb((e) => this.generator.next(e).value, e, t);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(Qy.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Dy(this.currentTime));
+ t && this.driver && this.updateTime(ib.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Py(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = Dne, startTime: t } = this.options;
+ let { driver: e = Tne, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(Qy.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(ib.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -25542,12 +25542,12 @@ var $b = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function tx(e) {
+function lx(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var nx = (e) => e * 180 / Math.PI, rx = (e) => ix(nx(Math.atan2(e[1], e[0]))), Wne = {
+var ux = (e) => e * 180 / Math.PI, dx = (e) => px(ux(Math.atan2(e[1], e[0]))), fx = {
x: 4,
y: 5,
translateX: 4,
@@ -25555,54 +25555,54 @@ var nx = (e) => e * 180 / Math.PI, rx = (e) => ix(nx(Math.atan2(e[1], e[0]))), W
scaleX: 0,
scaleY: 3,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: rx,
- rotateZ: rx,
- skewX: (e) => nx(Math.atan(e[1])),
- skewY: (e) => nx(Math.atan(e[2])),
+ rotate: dx,
+ rotateZ: dx,
+ skewX: (e) => ux(Math.atan(e[1])),
+ skewY: (e) => ux(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, ix = (e) => (e %= 360, e < 0 && (e += 360), e), ax = rx, ox = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), sx = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Gne = {
+}, px = (e) => (e %= 360, e < 0 && (e += 360), e), mx = dx, hx = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), gx = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), _x = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: ox,
- scaleY: sx,
- scale: (e) => (ox(e) + sx(e)) / 2,
- rotateX: (e) => ix(nx(Math.atan2(e[6], e[5]))),
- rotateY: (e) => ix(nx(Math.atan2(-e[2], e[0]))),
- rotateZ: ax,
- rotate: ax,
- skewX: (e) => nx(Math.atan(e[4])),
- skewY: (e) => nx(Math.atan(e[1])),
+ scaleX: hx,
+ scaleY: gx,
+ scale: (e) => (hx(e) + gx(e)) / 2,
+ rotateX: (e) => px(ux(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => px(ux(Math.atan2(-e[2], e[0]))),
+ rotateZ: mx,
+ rotate: mx,
+ skewX: (e) => ux(Math.atan(e[4])),
+ skewY: (e) => ux(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function cx(e) {
+function vx(e) {
return +!!e.includes("scale");
}
-function lx(e, t) {
- if (!e || e === "none") return cx(t);
+function yx(e, t) {
+ if (!e || e === "none") return vx(t);
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
- if (n) r = Gne, i = n;
+ if (n) r = _x, i = n;
else {
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
- r = Wne, i = t;
+ r = fx, i = t;
}
- if (!i) return cx(t);
- let a = r[t], o = i[1].split(",").map(qne);
+ if (!i) return vx(t);
+ let a = r[t], o = i[1].split(",").map(Lne);
return typeof a == "function" ? a(o) : o[a];
}
-var Kne = (e, t) => {
+var Ine = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return lx(n, t);
+ return yx(n, t);
};
-function qne(e) {
+function Lne(e) {
return parseFloat(e.trim());
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
-var ux = [
+var bx = [
"transformPerspective",
"x",
"y",
@@ -25620,19 +25620,19 @@ var ux = [
"skew",
"skewX",
"skewY"
-], dx = /* @__PURE__ */ new Set([...ux, "pathRotation"]), fx = (e) => e === ab || e === q, Jne = /* @__PURE__ */ new Set([
+], xx = /* @__PURE__ */ new Set([...bx, "pathRotation"]), Sx = (e) => e === lb || e === q, Rne = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Yne = ux.filter((e) => !Jne.has(e));
-function Xne(e) {
+]), zne = bx.filter((e) => !Rne.has(e));
+function Bne(e) {
let t = [];
- return Yne.forEach((n) => {
+ return zne.forEach((n) => {
let r = e.getValue(n);
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
}), t;
}
-var px = {
+var Cx = {
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
let i = e.max - e.min;
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
@@ -25645,18 +25645,18 @@ var px = {
left: (e, { left: t }) => parseFloat(t),
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
- x: (e, { transform: t }) => lx(t, "x"),
- y: (e, { transform: t }) => lx(t, "y")
+ x: (e, { transform: t }) => yx(t, "x"),
+ y: (e, { transform: t }) => yx(t, "y")
};
-px.translateX = px.x, px.translateY = px.y;
+Cx.translateX = Cx.x, Cx.translateY = Cx.y;
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
-var mx = /* @__PURE__ */ new Set(), hx = !1, gx = !1, _x = !1;
-function vx() {
- if (gx) {
- let e = Array.from(mx).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
+var wx = /* @__PURE__ */ new Set(), Tx = !1, Ex = !1, Dx = !1;
+function Ox() {
+ if (Ex) {
+ let e = Array.from(wx).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
t.forEach((e) => {
- let t = Xne(e);
+ let t = Bne(e);
t.length && (n.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -25668,22 +25668,22 @@ function vx() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- gx = !1, hx = !1, mx.forEach((e) => e.complete(_x)), mx.clear();
+ Ex = !1, Tx = !1, wx.forEach((e) => e.complete(Dx)), wx.clear();
}
-function yx() {
- mx.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (gx = !0);
+function kx() {
+ wx.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (Ex = !0);
});
}
-function Zne() {
- _x = !0, yx(), vx(), _x = !1;
+function Vne() {
+ Dx = !0, kx(), Ox(), Dx = !1;
}
-var bx = class {
+var Ax = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (mx.add(this), hx || (hx = !0, Ky.read(yx), Ky.resolveKeyframes(vx))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (wx.add(this), Tx || (Tx = !0, $y.read(kx), $y.resolveKeyframes(Ox))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -25696,70 +25696,70 @@ var bx = class {
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- tx(e);
+ lx(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), mx.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), wx.delete(this);
}
cancel() {
- this.state === "scheduled" && (mx.delete(this), this.state = "pending");
+ this.state === "scheduled" && (wx.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, xx = (e) => e.startsWith("--");
+}, jx = (e) => e.startsWith("--");
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function Sx(e, t, n) {
- xx(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function Mx(e, t, n) {
+ jx(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Qne = {};
+var Hne = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function Cx(e, t) {
- let n = /* @__PURE__ */ xy(e);
- return () => Qne[t] ?? n();
+function Nx(e, t) {
+ let n = /* @__PURE__ */ Oy(e);
+ return () => Hne[t] ?? n();
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var $ne = /* @__PURE__ */ Cx(() => window.ScrollTimeline !== void 0, "scrollTimeline"), wx = /*@__PURE__*/ Cx(() => {
+var Une = /* @__PURE__ */ Nx(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Px = /*@__PURE__*/ Nx(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), Tx = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Ex = {
+}, "linearEasing"), Fx = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Ix = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ Tx([
+ circIn: /*@__PURE__*/ Fx([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ Tx([
+ circOut: /*@__PURE__*/ Fx([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ Tx([
+ backIn: /*@__PURE__*/ Fx([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ Tx([
+ backOut: /*@__PURE__*/ Fx([
.33,
1.53,
.69,
@@ -25768,15 +25768,15 @@ var $ne = /* @__PURE__ */ Cx(() => window.ScrollTimeline !== void 0, "scrollTime
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function Dx(e, t) {
- if (e) return typeof e == "function" ? wx() ? zb(e, t) : "ease-out" : /* @__PURE__ */ Vy(e) ? Tx(e) : Array.isArray(e) ? e.map((e) => Dx(e, t) || Ex.easeOut) : Ex[e];
+function Lx(e, t) {
+ if (e) return typeof e == "function" ? Px() ? Vb(e, t) : "ease-out" : /* @__PURE__ */ Jy(e) ? Fx(e) : Array.isArray(e) ? e.map((e) => Lx(e, t) || Ix.easeOut) : Ix[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function ere(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Wne(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = Dx(s, i);
+ let d = Lx(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -25790,26 +25790,26 @@ function ere(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function Ox(e) {
+function Rx(e) {
return typeof e == "function" && "applyToOptions" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function tre({ type: e, ...t }) {
- return Ox(e) && wx() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Gne({ type: e, ...t }) {
+ return Rx(e) && Px() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var kx = class extends $b {
+var zx = class extends ox {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, e.type;
- let c = tre(e);
- this.animation = ere(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Gne(e);
+ this.animation = Wne(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Zb(r, this.options, o, this.speed);
- this.updateMotionValue && this.updateMotionValue(e), Sx(t, n, e), this.animation.cancel();
+ let e = rx(r, this.options, o, this.speed);
+ this.updateMotionValue && this.updateMotionValue(e), Mx(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
};
@@ -25840,18 +25840,18 @@ var kx = class extends $b {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Dy(Number(e));
+ return /* @__PURE__ */ Py(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Dy(e);
+ return this.duration + /* @__PURE__ */ Py(e);
}
get time() {
- return /* @__PURE__ */ Dy(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Py(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Ey(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Ny(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -25869,24 +25869,24 @@ var kx = class extends $b {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && $ne() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Sy) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Une() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), ky) : r(this);
}
-}, Ax = {
- anticipate: Iy,
- backInOut: Fy,
- circInOut: zy
+}, Bx = {
+ anticipate: Uy,
+ backInOut: Hy,
+ circInOut: Ky
};
-function nre(e) {
- return e in Ax;
+function Kne(e) {
+ return e in Bx;
}
-function rre(e) {
- typeof e.ease == "string" && nre(e.ease) && (e.ease = Ax[e.ease]);
+function qne(e) {
+ typeof e.ease == "string" && Kne(e.ease) && (e.ease = Bx[e.ease]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
-var jx = 10, ire = class extends kx {
+var Vx = 10, Jne = class extends zx {
constructor(e) {
- rre(e), Qb(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ qne(e), ax(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
updateMotionValue(e) {
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
@@ -25895,48 +25895,48 @@ var jx = 10, ire = class extends kx {
t.set(e);
return;
}
- let o = new ex({
+ let o = new cx({
...a,
autoplay: !1
- }), s = Math.max(jx, Qy.now() - this.startTime), c = gy(0, jx, s - jx), l = o.sample(s).value, { name: u } = this.options;
- i && u && Sx(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
+ }), s = Math.max(Vx, ib.now() - this.startTime), c = Cy(0, Vx, s - Vx), l = o.sample(s).value, { name: u } = this.options;
+ i && u && Mx(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
-}, Mx = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Ob.test(e) || e === "0") && !e.startsWith("url("));
+}, Hx = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Ab.test(e) || e === "0") && !e.startsWith("url("));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function are(e) {
+function Yne(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function ore(e, t, n, r) {
+function Xne(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = Mx(i, t), s = Mx(a, t);
- return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : are(e) || (n === "spring" || Ox(n)) && r;
+ let a = e[e.length - 1], o = Hx(i, t), s = Hx(a, t);
+ return `${t}${i}${a}${o ? a : i}`, !o || !s ? !1 : Yne(e) || (n === "spring" || Rx(n)) && r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function Nx(e) {
+function Ux(e) {
e.duration = 0, e.type = "keyframes";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var Px = /* @__PURE__ */ new Set([
+var Wx = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform",
"backgroundColor"
-]), sre = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function cre(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && sre.test(e[t])) return !0;
+]), Zne = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Qne(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Zne.test(e[t])) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
-var lre = /* @__PURE__ */ new Set([
+var $ne = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -25947,20 +25947,20 @@ var lre = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), ure = /*@__PURE__*/ xy(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
-function dre(e) {
+]), ere = /*@__PURE__*/ Oy(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+function tre(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return ure() && n && (Px.has(n) || lre.has(n) && cre(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
+ return ere() && n && (Wx.has(n) || $ne.has(n) && Qne(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia";
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var fre = 40, pre = class extends $b {
+var nre = 40, rre = class extends ox {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = Qy.now();
+ }, this.createdAt = ib.now();
let d = {
autoplay: e,
delay: t,
@@ -25972,33 +25972,33 @@ var fre = 40, pre = class extends $b {
motionValue: c,
element: l,
...u
- }, f = l?.KeyframeResolver || bx;
+ }, f = l?.KeyframeResolver || Ax;
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = Qy.now();
+ this.resolvedAt = ib.now();
let u = !0;
- ore(e, i, a, o) || (u = !1, (_y.instantAnimations || !s) && l?.(Zb(e, n, t)), e[0] = e[e.length - 1], Nx(n), n.repeat = 0);
+ Xne(e, i, a, o) || (u = !1, (wy.instantAnimations || !s) && l?.(rx(e, n, t)), e[0] = e[e.length - 1], Ux(n), n.repeat = 0);
let d = {
- startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > fre ? this.resolvedAt : this.createdAt : void 0,
+ startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > nre ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
...n,
keyframes: e
- }, f = u && !c && dre(d), p = d.motionValue?.owner?.current, m;
+ }, f = u && !c && tre(d), p = d.motionValue?.owner?.current, m;
if (f) try {
- m = new ire({
+ m = new Jne({
...d,
element: p
});
} catch {
- m = new ex(d);
+ m = new cx(d);
}
- else m = new ex(d);
+ else m = new cx(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(Sy), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(ky), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -26007,7 +26007,7 @@ var fre = 40, pre = class extends $b {
return this.finished.finally(e).then(() => {});
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Zne()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Vne()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -26048,7 +26048,7 @@ var fre = 40, pre = class extends $b {
cancel() {
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
}
-}, mre = class {
+}, ire = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -26088,10 +26088,10 @@ var fre = 40, pre = class extends $b {
return this.getAll("startTime");
}
get duration() {
- return Fx(this.animations, "duration");
+ return Gx(this.animations, "duration");
}
get iterationDuration() {
- return Fx(this.animations, "iterationDuration");
+ return Gx(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -26109,7 +26109,7 @@ var fre = 40, pre = class extends $b {
this.runAll("complete");
}
};
-function Fx(e, t) {
+function Gx(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -26119,32 +26119,32 @@ function Fx(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var hre = class extends mre {
+var are = class extends ire {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, Ix = /* @__PURE__ */ new WeakMap(), gre = (e, t = "") => `${e}:${t}`;
-function _re(e) {
- let t = Ix.get(e);
- return t || (t = /* @__PURE__ */ new Map(), Ix.set(e, t)), t;
+}, Kx = /* @__PURE__ */ new WeakMap(), ore = (e, t = "") => `${e}:${t}`;
+function sre(e) {
+ let t = Kx.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), Kx.set(e, t)), t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function Lx(e, t, n, r = 0, i = 1) {
+function qx(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/index.mjs
-var Rx = 30, vre = (e) => !isNaN(parseFloat(e)), zx = { current: void 0 }, yre = class {
+var Jx = 30, cre = (e) => !isNaN(parseFloat(e)), Yx = { current: void 0 }, lre = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = Qy.now();
+ let t = ib.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = Qy.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = vre(this.current));
+ this.current = e, this.updatedAt = ib.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = cre(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -26153,10 +26153,10 @@ var Rx = 30, vre = (e) => !isNaN(parseFloat(e)), zx = { current: void 0 }, yre =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new Ty());
+ this.events[e] || (this.events[e] = new My());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), Ky.read(() => {
+ n(), $y.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -26186,16 +26186,16 @@ var Rx = 30, vre = (e) => !isNaN(parseFloat(e)), zx = { current: void 0 }, yre =
this.dependents && this.dependents.delete(e);
}
get() {
- return zx.current && zx.current.push(this), this.current;
+ return Yx.current && Yx.current.push(this), this.current;
}
getPrevious() {
return this.prev;
}
getVelocity() {
- let e = Qy.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Rx) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, Rx);
- return /* @__PURE__ */ Oy(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = ib.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Jx) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, Jx);
+ return /* @__PURE__ */ Fy(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -26217,12 +26217,12 @@ var Rx = 30, vre = (e) => !isNaN(parseFloat(e)), zx = { current: void 0 }, yre =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
}
};
-function Bx(e, t) {
- return new yre(e, t);
+function Xx(e, t) {
+ return new lre(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function Vx(e, t) {
+function Zx(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -26234,26 +26234,26 @@ function Vx(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function Hx(e, t) {
+function Qx(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : Vx(n, e);
+ return n === e ? n : Zx(n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var bre = {
+var ure = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, xre = (e) => ({
+}, dre = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Sre = {
+}), fre = {
type: "keyframes",
duration: .8
-}, Cre = {
+}, pre = {
type: "keyframes",
ease: [
.25,
@@ -26262,7 +26262,7 @@ var bre = {
1
],
duration: .3
-}, wre = (e, { keyframes: t }) => t.length > 2 ? Sre : dx.has(e) ? e.startsWith("scale") ? xre(t[1]) : bre : Cre, Tre = /* @__PURE__ */ new Set([
+}, mre = (e, { keyframes: t }) => t.length > 2 ? fre : xx.has(e) ? e.startsWith("scale") ? dre(t[1]) : ure : pre, hre = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -26274,15 +26274,15 @@ var bre = {
"from",
"elapsed"
]);
-function Ere(e) {
- for (let t in e) if (!Tre.has(t)) return !0;
+function gre(e) {
+ for (let t in e) if (!hre.has(t)) return !0;
return !1;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var Ux = (e, t, n, r = {}, i, a) => (o) => {
- let s = Hx(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Ey(c);
+var $x = (e, t, n, r = {}, i, a) => (o) => {
+ let s = Qx(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Ny(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -26299,160 +26299,160 @@ var Ux = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- Ere(s) || Object.assign(u, wre(e, u)), u.duration &&= /* @__PURE__ */ Ey(u.duration), u.repeatDelay &&= /* @__PURE__ */ Ey(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ gre(s) || Object.assign(u, mre(e, u)), u.duration &&= /* @__PURE__ */ Ny(u.duration), u.repeatDelay &&= /* @__PURE__ */ Ny(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Nx(u), u.delay === 0 && (d = !0)), (_y.instantAnimations || _y.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Nx(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Zb(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ux(u), u.delay === 0 && (d = !0)), (wy.instantAnimations || wy.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Ux(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = rx(u.keyframes, s);
if (e !== void 0) {
- Ky.update(() => {
+ $y.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new ex(u) : new pre(u);
-}, Dre = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Ore(e) {
- let t = Dre.exec(e);
+ return s.isSync ? new cx(u) : new rre(u);
+}, _re = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function vre(e) {
+ let t = _re.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function Wx(e, t, n = 1) {
+function eS(e, t, n = 1) {
`${e}`;
- let [r, i] = Ore(e);
+ let [r, i] = vre(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return vy(e) ? parseFloat(e) : e;
+ return Ty(e) ? parseFloat(e) : e;
}
- return nb(i) ? Wx(i, t, n + 1) : i;
+ return sb(i) ? eS(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Gx(e) {
+function tS(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function Kx(e, t, n, r) {
+function nS(e, t, n, r) {
if (typeof t == "function") {
- let [i, a] = Gx(r);
+ let [i, a] = tS(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
- let [i, a] = Gx(r);
+ let [i, a] = tS(r);
t = t(n === void 0 ? e.custom : n, i, a);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function qx(e, t, n) {
+function rS(e, t, n) {
let r = e.getProps();
- return Kx(r, t, n === void 0 ? r.custom : n, e);
+ return nS(r, t, n === void 0 ? r.custom : n, e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
-var Jx = /* @__PURE__ */ new Set([
+var iS = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...ux
-]), Yx = (e) => Array.isArray(e);
+ ...bx
+]), aS = (e) => Array.isArray(e);
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function kre(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Bx(n));
+function yre(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Xx(n));
}
-function Are(e) {
- return Yx(e) ? e[e.length - 1] || 0 : e;
+function bre(e) {
+ return aS(e) ? e[e.length - 1] || 0 : e;
}
-function jre(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = qx(e, t) || {};
+function xre(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = rS(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) kre(e, t, Are(i[t]));
+ for (let t in i) yre(e, t, bre(i[t]));
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var Xx = (e) => !!(e && e.getVelocity);
+var oS = (e) => !!(e && e.getVelocity);
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Mre(e) {
- return !!(Xx(e) && e.add);
+function Sre(e) {
+ return !!(oS(e) && e.add);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function Zx(e, t) {
+function sS(e, t) {
let n = e.getValue("willChange");
- if (Mre(n)) return n.add(t);
- if (!n && _y.WillChange) {
- let n = new _y.WillChange("auto");
+ if (Sre(n)) return n.add(t);
+ if (!n && wy.WillChange) {
+ let n = new wy.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Qx(e) {
+function cS(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
-var $x = "data-" + Qx("framerAppearId");
+var lS = "data-" + cS("framerAppearId");
//#endregion
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function eS(e) {
- return e.props[$x];
+function uS(e) {
+ return e.props[lS];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-function tS({ protectedKeys: e, needsAnimating: t }, n) {
+function Cre({ protectedKeys: e, needsAnimating: t }, n) {
let r = e.hasOwnProperty(n) && t[n] !== !0;
return t[n] = !1, r;
}
-function nS(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function dS(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? Vx(a, c) : c;
+ a = a ? Zx(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
p && p.animateVisualElement(e, s, a, n, d);
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && tS(f, t)) continue;
+ if (i === void 0 || f && Cre(f, t)) continue;
let o = {
delay: n,
- ...Hx(a || {}, t)
+ ...Qx(a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- Ky.update(() => r.set(i));
+ $y.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
- let n = eS(e);
+ let n = uS(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, Ky);
+ let e = window.MotionHandoffAnimation(n, t, $y);
e !== null && (o.startTime = e, p = !0);
}
}
- Zx(e, t);
+ sS(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(Ux(t, r, i, m && Jx.has(t) ? { type: !1 } : o, e, p));
+ r.start($x(t, r, i, m && iS.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => Ky.update(() => {
- o && jre(e, o);
+ let t = () => $y.update(() => {
+ o && xre(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
@@ -26460,12 +26460,12 @@ function nS(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function rS(e, t, n = {}) {
- let r = qx(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
+function fS(e, t, n = {}) {
+ let r = rS(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
n.transitionOverride && (i = n.transitionOverride);
- let a = r ? () => Promise.all(nS(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
+ let a = r ? () => Promise.all(dS(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
- return iS(e, t, r, a, o, s, n);
+ return wre(e, t, r, a, o, s, n);
} : () => Promise.resolve(), { when: s } = i;
if (s) {
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
@@ -26473,26 +26473,26 @@ function rS(e, t, n = {}) {
}
return Promise.all([a(), o(n.delay)]);
}
-function iS(e, t, n = 0, r = 0, i = 0, a = 1, o) {
+function wre(e, t, n = 0, r = 0, i = 0, a = 1, o) {
let s = [];
- for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(rS(c, t, {
+ for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(fS(c, t, {
...o,
- delay: n + (typeof r == "function" ? 0 : r) + Lx(e.variantChildren, c, r, i, a)
+ delay: n + (typeof r == "function" ? 0 : r) + qx(e.variantChildren, c, r, i, a)
}).then(() => c.notify("AnimationComplete", t)));
return Promise.all(s);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function aS(e, t, n = {}) {
+function Tre(e, t, n = {}) {
e.notify("AnimationStart", t);
let r;
if (Array.isArray(t)) {
- let i = t.map((t) => rS(e, t, n));
+ let i = t.map((t) => fS(e, t, n));
r = Promise.all(i);
- } else if (typeof t == "string") r = rS(e, t, n);
+ } else if (typeof t == "string") r = fS(e, t, n);
else {
- let i = typeof t == "function" ? qx(e, t, n.custom) : t;
- r = Promise.all(nS(e, i, n));
+ let i = typeof t == "function" ? rS(e, t, n.custom) : t;
+ r = Promise.all(dS(e, i, n));
}
return r.then(() => {
e.notify("AnimationComplete", t);
@@ -26500,58 +26500,58 @@ function aS(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
-var oS = {
+var Ere = {
test: (e) => e === "auto",
parse: (e) => e
-}, sS = (e) => (t) => t.test(e), cS = [
- ab,
+}, pS = (e) => (t) => t.test(e), mS = [
+ lb,
q,
- yb,
- vb,
- cne,
- sne,
- oS
-], lS = (e) => cS.find(sS(e));
+ xb,
+ bb,
+ one,
+ ane,
+ Ere
+], hS = (e) => mS.find(pS(e));
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function uS(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || by(e);
+function Dre(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Dy(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
-var dS = /* @__PURE__ */ new Set([
+var Ore = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function fS(e) {
+function kre(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(lb) || [];
+ let [r] = n.match(pb) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!dS.has(t);
+ let i = n.replace(r, ""), a = +!!Ore.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var pS = /\b([a-z-]*)\(.*?\)/gu, mS = {
- ...Ob,
+var Are = /\b([a-z-]*)\(.*?\)/gu, gS = {
+ ...Ab,
getAnimatableNone: (e) => {
- let t = e.match(pS);
- return t ? t.map(fS).join(" ") : e;
+ let t = e.match(Are);
+ return t ? t.map(kre).join(" ") : e;
}
-}, hS = {
- ...Ob,
+}, _S = {
+ ...Ab,
getAnimatableNone: (e) => {
- let t = Ob.parse(e);
- return Ob.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = Ab.parse(e);
+ return Ab.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, gS = {
- ...ab,
+}, vS = {
+ ...lb,
transform: Math.round
-}, _S = {
+}, yS = {
borderWidth: q,
borderTopWidth: q,
borderRightWidth: q,
@@ -26602,18 +26602,18 @@ var pS = /\b([a-z-]*)\(.*?\)/gu, mS = {
fontSize: q,
backgroundPositionX: q,
backgroundPositionY: q,
- rotate: vb,
- pathRotation: vb,
- rotateX: vb,
- rotateY: vb,
- rotateZ: vb,
- scale: sb,
- scaleX: sb,
- scaleY: sb,
- scaleZ: sb,
- skew: vb,
- skewX: vb,
- skewY: vb,
+ rotate: bb,
+ pathRotation: bb,
+ rotateX: bb,
+ rotateY: bb,
+ rotateZ: bb,
+ scale: db,
+ scaleX: db,
+ scaleY: db,
+ scaleZ: db,
+ skew: bb,
+ skewX: bb,
+ skewY: bb,
distance: q,
translateX: q,
translateY: q,
@@ -26623,53 +26623,53 @@ var pS = /\b([a-z-]*)\(.*?\)/gu, mS = {
z: q,
perspective: q,
transformPerspective: q,
- opacity: ob,
- originX: bb,
- originY: bb,
+ opacity: ub,
+ originX: Sb,
+ originY: Sb,
originZ: q,
- zIndex: gS,
- fillOpacity: ob,
- strokeOpacity: ob,
- numOctaves: gS
-}, vS = {
- ..._S,
- color: Sb,
- backgroundColor: Sb,
- outlineColor: Sb,
- fill: Sb,
- stroke: Sb,
- borderColor: Sb,
- borderTopColor: Sb,
- borderRightColor: Sb,
- borderBottomColor: Sb,
- borderLeftColor: Sb,
- filter: mS,
- WebkitFilter: mS,
- mask: hS,
- WebkitMask: hS
-}, yS = (e) => vS[e], bS = /*@__PURE__*/ new Set([mS, hS]);
+ zIndex: vS,
+ fillOpacity: ub,
+ strokeOpacity: ub,
+ numOctaves: vS
+}, jre = {
+ ...yS,
+ color: wb,
+ backgroundColor: wb,
+ outlineColor: wb,
+ fill: wb,
+ stroke: wb,
+ borderColor: wb,
+ borderTopColor: wb,
+ borderRightColor: wb,
+ borderBottomColor: wb,
+ borderLeftColor: wb,
+ filter: gS,
+ WebkitFilter: gS,
+ mask: _S,
+ WebkitMask: _S
+}, bS = (e) => jre[e], Mre = /*@__PURE__*/ new Set([gS, _S]);
function xS(e, t) {
- let n = yS(e);
- return bS.has(n) || (n = Ob), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ let n = bS(e);
+ return Mre.has(n) || (n = Ab), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var SS = /* @__PURE__ */ new Set([
+var Nre = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function CS(e, t, n) {
+function Pre(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !SS.has(t) && Eb(t).values.length && (i = e[r]), r++;
+ typeof t == "string" && !Nre.has(t) && Ob(t).values.length && (i = e[r]), r++;
}
if (i && n) for (let r of t) e[r] = xS(n, i);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var wS = class extends bx {
+var Fre = class extends Ax {
constructor(e, t, n, r, i) {
super(e, t, n, r, i, !0);
}
@@ -26679,34 +26679,34 @@ var wS = class extends bx {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), nb(r))) {
- let i = Wx(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), sb(r))) {
+ let i = eS(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !Jx.has(n) || e.length !== 2) return;
- let [r, i] = e, a = lS(r), o = lS(i);
- if (ib(r) !== ib(i) && px[n]) {
+ if (this.resolveNoneKeyframes(), !iS.has(n) || e.length !== 2) return;
+ let [r, i] = e, a = hS(r), o = hS(i);
+ if (cb(r) !== cb(i) && Cx[n]) {
this.needsMeasurement = !0;
return;
}
if (a !== o) {
- if (fx(a) && fx(o)) for (let t = 0; t < e.length; t++) {
+ if (Sx(a) && Sx(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else px[n] && (this.needsMeasurement = !0);
+ else Cx[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || uS(e[t])) && n.push(t);
- n.length && CS(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Dre(e[t])) && n.push(t);
+ n.length && Pre(e, n, t);
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
if (!e || !e.current) return;
- n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = px[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
+ n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Cx[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
let r = t[t.length - 1];
r !== void 0 && e.getValue(n, r).jump(r, !1);
}
@@ -26716,23 +26716,23 @@ var wS = class extends bx {
let r = e.getValue(t);
r && r.jump(this.measuredOrigin, !1);
let i = n.length - 1, a = n[i];
- n[i] = px[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
+ n[i] = Cx[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
e.getValue(t).set(n);
}), this.resolveNoneKeyframes();
}
-}, TS = [
+}, SS = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], ES = /* @__PURE__ */ new Set([
+], Ire = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...TS,
+ ...SS,
"width",
"maxWidth",
"height",
@@ -26776,12 +26776,12 @@ var wS = class extends bx {
]);
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function DS(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && ES.has(t) && (e[n] = e[n] + "px");
+function Lre(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Ire.has(t) && (e[n] = e[n] + "px");
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function OS(e, t, n) {
+function CS(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
@@ -26794,34 +26794,34 @@ function OS(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var kS = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
+var wS = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function AS(e) {
- return yy(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function TS(e) {
+ return Ey(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: jS, cancel: Nre } = /* @__PURE__ */ Gy(queueMicrotask, !1), MS = {
+var { schedule: ES, cancel: Rre } = /* @__PURE__ */ Qy(queueMicrotask, !1), DS = {
x: !1,
y: !1
};
-function NS() {
- return MS.x || MS.y;
+function OS() {
+ return DS.x || DS.y;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function PS(e) {
- return e === "x" || e === "y" ? MS[e] ? null : (MS[e] = !0, () => {
- MS[e] = !1;
- }) : MS.x || MS.y ? null : (MS.x = MS.y = !0, () => {
- MS.x = MS.y = !1;
+function zre(e) {
+ return e === "x" || e === "y" ? DS[e] ? null : (DS[e] = !0, () => {
+ DS[e] = !1;
+ }) : DS.x || DS.y ? null : (DS.x = DS.y = !0, () => {
+ DS.x = DS.y = !1;
});
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function FS(e, t) {
- let n = OS(e), r = new AbortController();
+function kS(e, t) {
+ let n = CS(e), r = new AbortController();
return [
n,
{
@@ -26834,11 +26834,11 @@ function FS(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
-function IS(e) {
- return !(e.pointerType === "touch" || NS());
+function Bre(e) {
+ return !(e.pointerType === "touch" || OS());
}
-function LS(e, t, n = {}) {
- let [r, i, a] = FS(e, n);
+function Vre(e, t, n = {}) {
+ let [r, i, a] = kS(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -26858,7 +26858,7 @@ function LS(e, t, n = {}) {
}
};
e.addEventListener("pointerenter", (n) => {
- if (!IS(n)) return;
+ if (!Bre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -26867,130 +26867,130 @@ function LS(e, t, n = {}) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var RS = (e, t) => t ? e === t || RS(e, t.parentElement) : !1, zS = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, BS = /* @__PURE__ */ new Set([
+var AS = (e, t) => t ? e === t || AS(e, t.parentElement) : !1, jS = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Hre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function VS(e) {
- return BS.has(e.tagName) || e.isContentEditable === !0;
+function Ure(e) {
+ return Hre.has(e.tagName) || e.isContentEditable === !0;
}
-var HS = /* @__PURE__ */ new Set([
+var Wre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Pre(e) {
- return HS.has(e.tagName) || e.isContentEditable === !0;
+function Gre(e) {
+ return Wre.has(e.tagName) || e.isContentEditable === !0;
}
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
-var US = /* @__PURE__ */ new WeakSet();
+var MS = /* @__PURE__ */ new WeakSet();
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function WS(e) {
+function NS(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function GS(e, t) {
+function PS(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Fre = (e, t) => {
+var Kre = (e, t) => {
let n = e.currentTarget;
if (!n) return;
- let r = WS(() => {
- if (US.has(n)) return;
- GS(n, "down");
- let e = WS(() => {
- GS(n, "up");
+ let r = NS(() => {
+ if (MS.has(n)) return;
+ PS(n, "down");
+ let e = NS(() => {
+ PS(n, "up");
});
- n.addEventListener("keyup", e, t), n.addEventListener("blur", () => GS(n, "cancel"), t);
+ n.addEventListener("keyup", e, t), n.addEventListener("blur", () => PS(n, "cancel"), t);
});
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
};
//#endregion
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function KS(e) {
- return zS(e) && !NS();
+function FS(e) {
+ return jS(e) && !OS();
}
-var qS = /* @__PURE__ */ new WeakSet();
-function Ire(e, t, n = {}) {
- let [r, i, a] = FS(e, n), o = (e) => {
+var IS = /* @__PURE__ */ new WeakSet();
+function qre(e, t, n = {}) {
+ let [r, i, a] = kS(e, n), o = (e) => {
let r = e.currentTarget;
- if (!KS(e) || qS.has(e)) return;
- US.add(r), n.stopPropagation && qS.add(e);
+ if (!FS(e) || IS.has(e)) return;
+ MS.add(r), n.stopPropagation && IS.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), US.has(r) && US.delete(r), KS(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), MS.has(r) && MS.delete(r), FS(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || RS(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || AS(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), AS(e) && (e.addEventListener("focus", (e) => Fre(e, i)), !VS(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), TS(e) && (e.addEventListener("focus", (e) => Kre(e, i)), !Ure(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function JS(e, t) {
+function LS(e, t) {
let n = window.getComputedStyle(e);
- return xx(t) ? n.getPropertyValue(t) : n[t];
+ return jx(t) ? n.getPropertyValue(t) : n[t];
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function YS(e) {
- return yy(e) && "ownerSVGElement" in e;
+function RS(e) {
+ return Ey(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var XS = /* @__PURE__ */ new WeakMap(), ZS, QS = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : YS(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Lre = /*@__PURE__*/ QS("inline", "width", "offsetWidth"), Rre = /*@__PURE__*/ QS("block", "height", "offsetHeight");
-function zre({ target: e, borderBoxSize: t }) {
- XS.get(e)?.forEach((n) => {
+var zS = /* @__PURE__ */ new WeakMap(), BS, VS = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : RS(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Jre = /*@__PURE__*/ VS("inline", "width", "offsetWidth"), Yre = /*@__PURE__*/ VS("block", "height", "offsetHeight");
+function Xre({ target: e, borderBoxSize: t }) {
+ zS.get(e)?.forEach((n) => {
n(e, {
get width() {
- return Lre(e, t);
+ return Jre(e, t);
},
get height() {
- return Rre(e, t);
+ return Yre(e, t);
}
});
});
}
-function Bre(e) {
- e.forEach(zre);
+function Zre(e) {
+ e.forEach(Xre);
}
-function Vre() {
- typeof ResizeObserver > "u" || (ZS = new ResizeObserver(Bre));
+function Qre() {
+ typeof ResizeObserver > "u" || (BS = new ResizeObserver(Zre));
}
-function Hre(e, t) {
- ZS || Vre();
- let n = OS(e);
+function $re(e, t) {
+ BS || Qre();
+ let n = CS(e);
return n.forEach((e) => {
- let n = XS.get(e);
- n || (n = /* @__PURE__ */ new Set(), XS.set(e, n)), n.add(t), ZS?.observe(e);
+ let n = zS.get(e);
+ n || (n = /* @__PURE__ */ new Set(), zS.set(e, n)), n.add(t), BS?.observe(e);
}), () => {
n.forEach((e) => {
- let n = XS.get(e);
- n?.delete(t), n?.size || ZS?.unobserve(e);
+ let n = zS.get(e);
+ n?.delete(t), n?.size || BS?.unobserve(e);
});
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var $S = /* @__PURE__ */ new Set(), eC;
-function Ure() {
- eC = () => {
+var HS = /* @__PURE__ */ new Set(), US;
+function eie() {
+ US = () => {
let e = {
get width() {
return window.innerWidth;
@@ -26999,49 +26999,49 @@ function Ure() {
return window.innerHeight;
}
};
- $S.forEach((t) => t(e));
- }, window.addEventListener("resize", eC);
+ HS.forEach((t) => t(e));
+ }, window.addEventListener("resize", US);
}
-function Wre(e) {
- return $S.add(e), eC || Ure(), () => {
- $S.delete(e), !$S.size && typeof eC == "function" && (window.removeEventListener("resize", eC), eC = void 0);
+function tie(e) {
+ return HS.add(e), US || eie(), () => {
+ HS.delete(e), !HS.size && typeof US == "function" && (window.removeEventListener("resize", US), US = void 0);
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/index.mjs
-function tC(e, t) {
- return typeof e == "function" ? Wre(e) : Hre(e, t);
+function WS(e, t) {
+ return typeof e == "function" ? tie(e) : $re(e, t);
}
//#endregion
//#region node_modules/motion-dom/dist/es/stats/buffer.mjs
-var nC = {
+var GS = {
value: null,
addProjectionMetrics: null
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function Gre(e) {
- return YS(e) && e.tagName === "svg";
+function nie(e) {
+ return RS(e) && e.tagName === "svg";
}
//#endregion
//#region node_modules/motion-dom/dist/es/utils/transform.mjs
-function Kre(...e) {
- let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = Yb(i, a, o);
+function rie(...e) {
+ let t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], a = e[2 + n], o = e[3 + n], s = Zb(i, a, o);
return t ? s(r) : s;
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/follow-value.mjs
-function qre(e, t, n = {}) {
+function iie(e, t, n = {}) {
let r = e.get(), i = null, a = r, o, s = typeof r == "string" ? r.replace(/[\d.-]/g, "") : void 0, c = () => {
i &&= (i.stop(), null), e.animation = void 0;
}, l = () => {
- let t = iC(e.get()), r = iC(a);
+ let t = qS(e.get()), r = qS(a);
if (t === r) {
c();
return;
}
let s = i ? i.getGeneratorVelocity() : e.getVelocity();
- c(), i = new ex({
+ c(), i = new cx({
keyframes: [t, r],
velocity: s,
type: "spring",
@@ -27056,10 +27056,10 @@ function qre(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(rC(e, s)), Ky.postRender(u);
- }, c), Xx(t)) {
+ a = e, o = (e) => t(KS(e, s)), $y.postRender(u);
+ }, c), oS(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
- r ? (r = !1, e.jump(rC(t, s), !1)) : e.set(rC(t, s));
+ r ? (r = !1, e.jump(KS(t, s), !1)) : e.set(KS(t, s));
}), a = e.on("destroy", i);
return () => {
i(), a();
@@ -27067,46 +27067,46 @@ function qre(e, t, n = {}) {
}
return c;
}
-function rC(e, t) {
+function KS(e, t) {
return t ? e + t : e;
}
-function iC(e) {
+function qS(e) {
return typeof e == "number" ? e : parseFloat(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
-var Jre = [
- ...cS,
- Sb,
- Ob
-], Yre = (e) => Jre.find(sS(e)), aC = () => ({
+var aie = [
+ ...mS,
+ wb,
+ Ab
+], oie = (e) => aie.find(pS(e)), JS = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), oC = () => ({
- x: aC(),
- y: aC()
-}), sC = () => ({
+}), YS = () => ({
+ x: JS(),
+ y: JS()
+}), XS = () => ({
min: 0,
max: 0
-}), cC = () => ({
- x: sC(),
- y: sC()
-}), Xre = /* @__PURE__ */ new WeakMap();
+}), ZS = () => ({
+ x: XS(),
+ y: XS()
+}), sie = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function lC(e) {
+function QS(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function uC(e) {
+function $S(e) {
return typeof e == "string" || Array.isArray(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var dC = [
+var eC = [
"animate",
"whileInView",
"whileFocus",
@@ -27114,29 +27114,29 @@ var dC = [
"whileTap",
"whileDrag",
"exit"
-], fC = ["initial", ...dC];
+], tC = ["initial", ...eC];
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function pC(e) {
- return lC(e.animate) || fC.some((t) => uC(e[t]));
+function nC(e) {
+ return QS(e.animate) || tC.some((t) => $S(e[t]));
}
-function mC(e) {
- return !!(pC(e) || e.variants);
+function rC(e) {
+ return !!(nC(e) || e.variants);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Zre(e, t, n) {
+function cie(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (Xx(i)) e.addValue(r, i);
- else if (Xx(a)) e.addValue(r, Bx(i, { owner: e }));
+ if (oS(i)) e.addValue(r, i);
+ else if (oS(a)) e.addValue(r, Xx(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, Bx(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, Xx(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -27145,18 +27145,18 @@ function Zre(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var hC = { current: null }, gC = { current: !1 }, Qre = typeof window < "u";
-function _C() {
- if (gC.current = !0, Qre) {
+var iC = { current: null }, aC = { current: !1 }, lie = typeof window < "u";
+function oC() {
+ if (aC.current = !0, lie) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => hC.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => iC.current = e.matches;
e.addEventListener("change", t), t();
- } else hC.current = !1;
+ } else iC.current = !1;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var vC = [
+var sC = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -27164,38 +27164,38 @@ var vC = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], yC = {};
-function bC(e) {
- yC = e;
+], cC = {};
+function lC(e) {
+ cC = e;
}
-function $re() {
- return yC;
+function uie() {
+ return cC;
}
-var eie = class {
+var die = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = bx, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Ax, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = Qy.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, Ky.render(this.render, !1, !0));
+ let e = ib.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, $y.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = pC(t), this.isVariantNode = mC(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = nC(t), this.isVariantNode = rC(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && Xx(t) && t.set(c[e]);
+ c[e] !== void 0 && oS(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- this.current = e, Xre.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (gC.current || _C(), this.shouldReduceMotion = hC.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.current = e, sie.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (aC.current || oC(), this.shouldReduceMotion = iC.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), qy(this.notifyUpdate), qy(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), eb(this.notifyUpdate), eb(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -27210,24 +27210,24 @@ var eie = class {
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Px.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new kx({
+ if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Wx.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new zx({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Ey(o)
+ duration: /* @__PURE__ */ Ny(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = dx.has(e);
+ let n = xx.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && Ky.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && $y.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -27238,8 +27238,8 @@ var eie = class {
}
updateFeatures() {
let e = "animation";
- for (e in yC) {
- let t = yC[e];
+ for (e in cC) {
+ let t = cC[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -27252,7 +27252,7 @@ var eie = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : cC();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ZS();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -27262,13 +27262,13 @@ var eie = class {
}
update(e, t) {
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < vC.length; t++) {
- let n = vC[t];
+ for (let t = 0; t < sC.length; t++) {
+ let n = sC[t];
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Zre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
+ this.prevMotionValues = cie(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
}
getProps() {
return this.props;
@@ -27304,11 +27304,11 @@ var eie = class {
getValue(e, t) {
if (this.props.values && this.props.values[e]) return this.props.values[e];
let n = this.values.get(e);
- return n === void 0 && t !== void 0 && (n = Bx(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
+ return n === void 0 && t !== void 0 && (n = Xx(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (vy(n) || by(n)) ? n = parseFloat(n) : !Yre(n) && Ob.test(t) && (n = xS(e, t)), this.setBaseTarget(e, Xx(n) ? n.get() : n)), Xx(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Ty(n) || Dy(n)) ? n = parseFloat(n) : !oie(n) && Ab.test(t) && (n = xS(e, t)), this.setBaseTarget(e, oS(n) ? n.get() : n)), oS(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -27316,25 +27316,25 @@ var eie = class {
getBaseTarget(e) {
let { initial: t } = this.props, n;
if (typeof t == "string" || typeof t == "object") {
- let r = Kx(this.props, t, this.presenceContext?.custom);
+ let r = nS(this.props, t, this.presenceContext?.custom);
r && (n = r[e]);
}
if (t && n !== void 0) return n;
let r = this.getBaseTargetFromProps(this.props, e);
- return r !== void 0 && !Xx(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
+ return r !== void 0 && !oS(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new Ty()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new My()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
}
scheduleRenderMicrotask() {
- jS.render(this.render);
+ ES.render(this.render);
}
-}, xC = class extends eie {
+}, uC = class extends die {
constructor() {
- super(...arguments), this.KeyframeResolver = wS;
+ super(...arguments), this.KeyframeResolver = Fre;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -27349,11 +27349,11 @@ var eie = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- Xx(e) && (this.childSubscription = e.on("change", (e) => {
+ oS(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
-}, SC = class {
+}, dC = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
@@ -27361,7 +27361,7 @@ var eie = class {
};
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function CC({ top: e, left: t, right: n, bottom: r }) {
+function fC({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -27373,7 +27373,7 @@ function CC({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function tie({ x: e, y: t }) {
+function fie({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -27381,7 +27381,7 @@ function tie({ x: e, y: t }) {
left: e.min
};
}
-function nie(e, t) {
+function pie(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -27399,37 +27399,37 @@ function nie(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function wC(e) {
+function pC(e) {
return e === void 0 || e === 1;
}
-function TC({ scale: e, scaleX: t, scaleY: n }) {
- return !wC(e) || !wC(t) || !wC(n);
+function mC({ scale: e, scaleX: t, scaleY: n }) {
+ return !pC(e) || !pC(t) || !pC(n);
}
-function EC(e) {
- return TC(e) || DC(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
+function hC(e) {
+ return mC(e) || gC(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
}
-function DC(e) {
- return OC(e.x) || OC(e.y);
+function gC(e) {
+ return _C(e.x) || _C(e.y);
}
-function OC(e) {
+function _C(e) {
return e && e !== "0%";
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function kC(e, t, n) {
+function vC(e, t, n) {
return n + t * (e - n);
}
-function AC(e, t, n, r, i) {
- return i !== void 0 && (e = kC(e, i, r)), kC(e, n, r) + t;
+function yC(e, t, n, r, i) {
+ return i !== void 0 && (e = vC(e, i, r)), vC(e, n, r) + t;
}
-function jC(e, t = 0, n = 1, r, i) {
- e.min = AC(e.min, t, n, r, i), e.max = AC(e.max, t, n, r, i);
+function bC(e, t = 0, n = 1, r, i) {
+ e.min = yC(e.min, t, n, r, i), e.max = yC(e.max, t, n, r, i);
}
-function MC(e, { x: t, y: n }) {
- jC(e.x, t.translate, t.scale, t.originPoint), jC(e.y, n.translate, n.scale, n.originPoint);
+function xC(e, { x: t, y: n }) {
+ bC(e.x, t.translate, t.scale, t.originPoint), bC(e.y, n.translate, n.scale, n.originPoint);
}
-var NC = .999999999999, PC = 1.0000000000001;
-function rie(e, t, n, r = !1) {
+var SC = .999999999999, CC = 1.0000000000001;
+function mie(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
@@ -27437,44 +27437,44 @@ function rie(e, t, n, r = !1) {
for (let s = 0; s < i; s++) {
a = n[s], o = a.projectionDelta;
let { visualElement: i } = a.options;
- i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (FC(e.x, -a.scroll.offset.x), FC(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, MC(e, o)), r && EC(a.latestValues) && RC(e, a.latestValues, a.layout?.layoutBox));
+ i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (wC(e.x, -a.scroll.offset.x), wC(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, xC(e, o)), r && hC(a.latestValues) && DC(e, a.latestValues, a.layout?.layoutBox));
}
- t.x < PC && t.x > NC && (t.x = 1), t.y < PC && t.y > NC && (t.y = 1);
+ t.x < CC && t.x > SC && (t.x = 1), t.y < CC && t.y > SC && (t.y = 1);
}
-function FC(e, t) {
+function wC(e, t) {
e.min += t, e.max += t;
}
-function IC(e, t, n, r, i = .5) {
- jC(e, t, n, jb(e.min, e.max, i), r);
+function TC(e, t, n, r, i = .5) {
+ bC(e, t, n, Nb(e.min, e.max, i), r);
}
-function LC(e, t) {
+function EC(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function RC(e, t, n) {
+function DC(e, t, n) {
let r = n ?? e;
- IC(e.x, LC(t.x, r.x), t.scaleX, t.scale, t.originX), IC(e.y, LC(t.y, r.y), t.scaleY, t.scale, t.originY);
+ TC(e.x, EC(t.x, r.x), t.scaleX, t.scale, t.originX), TC(e.y, EC(t.y, r.y), t.scaleY, t.scale, t.originY);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function zC(e, t) {
- return CC(nie(e.getBoundingClientRect(), t));
+function OC(e, t) {
+ return fC(pie(e.getBoundingClientRect(), t));
}
-function iie(e, t, n) {
- let r = zC(e, n), { scroll: i } = t;
- return i && (FC(r.x, i.offset.x), FC(r.y, i.offset.y)), r;
+function hie(e, t, n) {
+ let r = OC(e, n), { scroll: i } = t;
+ return i && (wC(r.x, i.offset.x), wC(r.y, i.offset.y)), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
-var aie = {
+var gie = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, oie = ux.length;
-function sie(e, t, n) {
+}, _ie = bx.length;
+function vie(e, t, n) {
let r = "", i = !0;
- for (let a = 0; a < oie; a++) {
- let o = ux[a], s = e[o];
+ for (let a = 0; a < _ie; a++) {
+ let o = bx[a], s = e[o];
if (s === void 0) continue;
let c = !0;
if (typeof s == "number") c = s === +!!o.startsWith("scale");
@@ -27483,154 +27483,154 @@ function sie(e, t, n) {
c = o.startsWith("scale") ? e === 1 : e === 0;
}
if (!c || n) {
- let e = kS(s, _S[o]);
+ let e = wS(s, yS[o]);
if (!c) {
i = !1;
- let t = aie[o] || o;
+ let t = gie[o] || o;
r += `${t}(${e}) `;
}
n && (t[o] = e);
}
}
let a = e.pathRotation;
- return a && (i = !1, r += `rotate(${kS(a, _S.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
+ return a && (i = !1, r += `rotate(${wS(a, yS.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function BC(e, t, n) {
+function kC(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (dx.has(e)) {
+ if (xx.has(e)) {
o = !0;
continue;
}
- if (eb(e)) {
+ if (ob(e)) {
i[e] = n;
continue;
}
{
- let t = kS(n, _S[e]);
+ let t = wS(n, yS[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = sie(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = vie(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function VC(e, { style: t, vars: n }, r, i) {
+function AC(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function HC(e, t) {
+function jC(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var UC = { correct: (e, t) => {
+var MC = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (q.test(e)) e = parseFloat(e);
else return e;
}
- return `${HC(e, t.target.x)}% ${HC(e, t.target.y)}%`;
-} }, cie = { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = Ob.parse(e);
+ return `${jC(e, t.target.x)}% ${jC(e, t.target.y)}%`;
+} }, yie = { correct: (e, { treeScale: t, projectionDelta: n }) => {
+ let r = e, i = Ab.parse(e);
if (i.length > 5) return r;
- let a = Ob.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = Ab.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = jb(s, c, .5);
+ let l = Nb(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
-} }, WC = {
+} }, NC = {
borderRadius: {
- ...UC,
- applyTo: [...TS]
+ ...MC,
+ applyTo: [...SS]
},
- borderTopLeftRadius: UC,
- borderTopRightRadius: UC,
- borderBottomLeftRadius: UC,
- borderBottomRightRadius: UC,
- boxShadow: cie
+ borderTopLeftRadius: MC,
+ borderTopRightRadius: MC,
+ borderBottomLeftRadius: MC,
+ borderBottomRightRadius: MC,
+ boxShadow: yie
};
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function GC(e, { layout: t, layoutId: n }) {
- return dx.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!WC[e] || e === "opacity");
+function PC(e, { layout: t, layoutId: n }) {
+ return xx.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!NC[e] || e === "opacity");
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function KC(e, t, n) {
+function FC(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (Xx(r[t]) || i && Xx(i[t]) || GC(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (oS(r[t]) || i && oS(i[t]) || PC(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function lie(e) {
+function bie(e) {
return window.getComputedStyle(e);
}
-var uie = class extends xC {
+var xie = class extends uC {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = VC;
+ super(...arguments), this.type = "html", this.renderInstance = AC;
}
mount(e) {
e.style, super.mount(e);
}
readValueFromInstance(e, t) {
- if (dx.has(t)) return this.projection?.isProjecting ? cx(t) : Kne(e, t);
+ if (xx.has(t)) return this.projection?.isProjecting ? vx(t) : Ine(e, t);
{
- let n = lie(e), r = (eb(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = bie(e), r = (ob(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return zC(e, t);
+ return OC(e, t);
}
build(e, t, n) {
- BC(e, t, n.transformTemplate);
+ kC(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return KC(e, t, n);
+ return FC(e, t, n);
}
-}, die = {
+}, Sie = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, fie = {
+}, Cie = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function pie(e, t, n = 1, r = 0, i = !0) {
+function wie(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? die : fie;
+ let a = i ? Sie : Cie;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var mie = [
+var Tie = [
"offsetDistance",
"offsetPath",
"offsetRotate",
"offsetAnchor"
];
-function qC(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (BC(e, s, l), c) {
+function IC(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (kC(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
- for (let e of mie) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && pie(d, i, a, o, !1);
+ for (let e of Tie) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && wie(d, i, a, o, !1);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
-var JC = /* @__PURE__ */ new Set([
+var LC = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -27654,68 +27654,68 @@ var JC = /* @__PURE__ */ new Set([
"startOffset",
"textLength",
"lengthAdjust"
-]), YC = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), RC = (e) => typeof e == "string" && e.toLowerCase() === "svg";
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function hie(e, t, n, r) {
- VC(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(JC.has(n) ? n : Qx(n), t.attrs[n]);
+function Eie(e, t, n, r) {
+ AC(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(LC.has(n) ? n : cS(n), t.attrs[n]);
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function XC(e, t, n) {
- let r = KC(e, t, n);
- for (let n in e) if (Xx(e[n]) || Xx(t[n])) {
- let t = ux.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function zC(e, t, n) {
+ let r = FC(e, t, n);
+ for (let n in e) if (oS(e[n]) || oS(t[n])) {
+ let t = bx.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var gie = class extends xC {
+var Die = class extends uC {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = cC;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ZS;
}
getBaseTargetFromProps(e, t) {
return e[t];
}
readValueFromInstance(e, t) {
- if (dx.has(t)) {
- let e = yS(t);
+ if (xx.has(t)) {
+ let e = bS(t);
return e && e.default || 0;
}
- return t = JC.has(t) ? t : Qx(t), e.getAttribute(t);
+ return t = LC.has(t) ? t : cS(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return XC(e, t, n);
+ return zC(e, t, n);
}
build(e, t, n) {
- qC(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ IC(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- hie(e, t, n, r);
+ Eie(e, t, n, r);
}
mount(e) {
- this.isSVGTag = YC(e.tagName), super.mount(e);
+ this.isSVGTag = RC(e.tagName), super.mount(e);
}
-}, _ie = fC.length;
-function ZC(e) {
+}, Oie = tC.length;
+function BC(e) {
if (!e) return;
if (!e.isControllingVariants) {
- let t = e.parent && ZC(e.parent) || {};
+ let t = e.parent && BC(e.parent) || {};
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
}
let t = {};
- for (let n = 0; n < _ie; n++) {
- let r = fC[n], i = e.props[r];
- (uC(i) || i === !1) && (t[r] = i);
+ for (let n = 0; n < Oie; n++) {
+ let r = tC[n], i = e.props[r];
+ ($S(i) || i === !1) && (t[r] = i);
}
return t;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function QC(e, t) {
+function VC(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -27724,13 +27724,13 @@ function QC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var vie = [...dC].reverse(), yie = dC.length;
-function bie(e) {
- return (t) => Promise.all(t.map(({ animation: t, options: n }) => aS(e, t, n)));
+var kie = [...eC].reverse(), Aie = eC.length;
+function jie(e) {
+ return (t) => Promise.all(t.map(({ animation: t, options: n }) => Tre(e, t, n)));
}
-function xie(e) {
- let t = bie(e), n = ew(), r = !0, i = !1, a = (t) => (n, r) => {
- let i = qx(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
+function Mie(e) {
+ let t = jie(e), n = UC(), r = !0, i = !1, a = (t) => (n, r) => {
+ let i = rS(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
if (i) {
let { transition: e, transitionEnd: t, ...r } = i;
n = {
@@ -27745,12 +27745,12 @@ function xie(e) {
t = n(e);
}
function s(o) {
- let { props: s } = e, c = ZC(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
- for (let t = 0; t < yie; t++) {
- let p = vie[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = uC(h), _ = p === o ? m.isActive : null;
+ let { props: s } = e, c = BC(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
+ for (let t = 0; t < Aie; t++) {
+ let p = kie[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = $S(h), _ = p === o ? m.isActive : null;
_ === !1 && (f = t);
let v = h === c[p] && h !== s[p] && g;
- if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || lC(h) || typeof h == "boolean") continue;
+ if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || QS(h) || typeof h == "boolean") continue;
if (p === "exit" && m.isActive && _ !== !0) {
m.prevResolvedValues && (d = {
...d,
@@ -27758,7 +27758,7 @@ function xie(e) {
});
continue;
}
- let y = Sie(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
+ let y = Nie(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
_ === !1 && (C = {});
let { prevResolvedValues: w = {} } = m, T = {
...w,
@@ -27772,7 +27772,7 @@ function xie(e) {
let t = C[e], n = w[e];
if (d.hasOwnProperty(e)) continue;
let r = !1;
- r = Yx(t) && Yx(n) ? !QC(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
+ r = aS(t) && aS(n) ? !VC(t, n) || y : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
}
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
...d,
@@ -27782,10 +27782,10 @@ function xie(e) {
b && (!D || x) && l.push(...S.map((t) => {
let n = { type: p };
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
- let { parent: r } = e, i = qx(r, t);
+ let { parent: r } = e, i = rS(r, t);
if (r.enteringChildren && i) {
let { delayChildren: t } = i.transition || {};
- n.delay = Lx(r.enteringChildren, e, t);
+ n.delay = qx(r.enteringChildren, e, t);
}
}
return {
@@ -27797,7 +27797,7 @@ function xie(e) {
if (u.size) {
let t = {};
if (typeof s.initial != "boolean") {
- let n = qx(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
+ let n = rS(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
n && n.transition && (t.transition = n.transition);
}
u.forEach((n) => {
@@ -27821,14 +27821,14 @@ function xie(e) {
setAnimateFunction: o,
getState: () => n,
reset: () => {
- n = ew(), i = !0;
+ n = UC(), i = !0;
}
};
}
-function Sie(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !QC(t, e) : !1;
+function Nie(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !VC(t, e) : !1;
}
-function $C(e = !1) {
+function HC(e = !1) {
return {
isActive: e,
protectedKeys: {},
@@ -27836,115 +27836,115 @@ function $C(e = !1) {
prevResolvedValues: {}
};
}
-function ew() {
+function UC() {
return {
- animate: $C(!0),
- whileInView: $C(),
- whileHover: $C(),
- whileTap: $C(),
- whileDrag: $C(),
- whileFocus: $C(),
- exit: $C()
+ animate: HC(!0),
+ whileInView: HC(),
+ whileHover: HC(),
+ whileTap: HC(),
+ whileDrag: HC(),
+ whileFocus: HC(),
+ exit: HC()
};
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function tw(e, t) {
+function WC(e, t) {
e.min = t.min, e.max = t.max;
}
-function nw(e, t) {
- tw(e.x, t.x), tw(e.y, t.y);
+function GC(e, t) {
+ WC(e.x, t.x), WC(e.y, t.y);
}
-function rw(e, t) {
+function KC(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Cie = .9999, wie = 1.0001, Tie = -.01, Eie = .01;
-function iw(e) {
+var Pie = .9999, Fie = 1.0001, Iie = -.01, Lie = .01;
+function qC(e) {
return e.max - e.min;
}
-function Die(e, t, n) {
+function Rie(e, t, n) {
return Math.abs(e - t) <= n;
}
-function aw(e, t, n, r = .5) {
- e.origin = r, e.originPoint = jb(t.min, t.max, e.origin), e.scale = iw(n) / iw(t), e.translate = jb(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Cie && e.scale <= wie || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Tie && e.translate <= Eie || isNaN(e.translate)) && (e.translate = 0);
+function JC(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = Nb(t.min, t.max, e.origin), e.scale = qC(n) / qC(t), e.translate = Nb(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Pie && e.scale <= Fie || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Iie && e.translate <= Lie || isNaN(e.translate)) && (e.translate = 0);
}
-function ow(e, t, n, r) {
- aw(e.x, t.x, n.x, r ? r.originX : void 0), aw(e.y, t.y, n.y, r ? r.originY : void 0);
+function YC(e, t, n, r) {
+ JC(e.x, t.x, n.x, r ? r.originX : void 0), JC(e.y, t.y, n.y, r ? r.originY : void 0);
}
-function sw(e, t, n, r = 0) {
- e.min = (r ? jb(n.min, n.max, r) : n.min) + t.min, e.max = e.min + iw(t);
+function XC(e, t, n, r = 0) {
+ e.min = (r ? Nb(n.min, n.max, r) : n.min) + t.min, e.max = e.min + qC(t);
}
-function Oie(e, t, n, r) {
- sw(e.x, t.x, n.x, r?.x), sw(e.y, t.y, n.y, r?.y);
+function zie(e, t, n, r) {
+ XC(e.x, t.x, n.x, r?.x), XC(e.y, t.y, n.y, r?.y);
}
-function cw(e, t, n, r = 0) {
- let i = r ? jb(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + iw(t);
+function ZC(e, t, n, r = 0) {
+ let i = r ? Nb(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + qC(t);
}
-function lw(e, t, n, r) {
- cw(e.x, t.x, n.x, r?.x), cw(e.y, t.y, n.y, r?.y);
+function QC(e, t, n, r) {
+ ZC(e.x, t.x, n.x, r?.x), ZC(e.y, t.y, n.y, r?.y);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function uw(e, t, n, r, i) {
- return e -= t, e = kC(e, 1 / n, r), i !== void 0 && (e = kC(e, 1 / i, r)), e;
+function $C(e, t, n, r, i) {
+ return e -= t, e = vC(e, 1 / n, r), i !== void 0 && (e = vC(e, 1 / i, r)), e;
}
-function kie(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (yb.test(t) && (t = parseFloat(t), t = jb(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = jb(a.min, a.max, r);
- e === a && (s -= t), e.min = uw(e.min, t, n, s, i), e.max = uw(e.max, t, n, s, i);
+function Bie(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (xb.test(t) && (t = parseFloat(t), t = Nb(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = Nb(a.min, a.max, r);
+ e === a && (s -= t), e.min = $C(e.min, t, n, s, i), e.max = $C(e.max, t, n, s, i);
}
-function dw(e, t, [n, r, i], a, o) {
- kie(e, t[n], t[r], t[i], t.scale, a, o);
+function ew(e, t, [n, r, i], a, o) {
+ Bie(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Aie = [
+var tw = [
"x",
"scaleX",
"originX"
-], jie = [
+], nw = [
"y",
"scaleY",
"originY"
];
-function fw(e, t, n, r) {
- dw(e.x, t, Aie, n ? n.x : void 0, r ? r.x : void 0), dw(e.y, t, jie, n ? n.y : void 0, r ? r.y : void 0);
+function rw(e, t, n, r) {
+ ew(e.x, t, tw, n ? n.x : void 0, r ? r.x : void 0), ew(e.y, t, nw, n ? n.y : void 0, r ? r.y : void 0);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function pw(e) {
+function iw(e) {
return e.translate === 0 && e.scale === 1;
}
-function mw(e) {
- return pw(e.x) && pw(e.y);
+function aw(e) {
+ return iw(e.x) && iw(e.y);
}
-function hw(e, t) {
+function ow(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Mie(e, t) {
- return hw(e.x, t.x) && hw(e.y, t.y);
+function sw(e, t) {
+ return ow(e.x, t.x) && ow(e.y, t.y);
}
-function gw(e, t) {
+function cw(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function _w(e, t) {
- return gw(e.x, t.x) && gw(e.y, t.y);
+function lw(e, t) {
+ return cw(e.x, t.x) && cw(e.y, t.y);
}
-function vw(e) {
- return iw(e.x) / iw(e.y);
+function uw(e) {
+ return qC(e.x) / qC(e.y);
}
-function yw(e, t) {
+function dw(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function bw(e) {
+function fw(e) {
return [e("x"), e("y")];
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Nie(e, t, n) {
+function pw(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
@@ -27955,81 +27955,81 @@ function Nie(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var Pie = TS.length, xw = (e) => typeof e == "string" ? parseFloat(e) : e, Sw = (e) => typeof e == "number" || q.test(e);
-function Fie(e, t, n, r, i, a) {
- i ? (e.opacity = jb(0, n.opacity ?? 1, Iie(r)), e.opacityExit = jb(t.opacity ?? 1, 0, Lie(r))) : a && (e.opacity = jb(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Pie; i++) {
- let a = TS[i], o = Cw(t, a), s = Cw(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Sw(o) === Sw(s) ? (e[a] = Math.max(jb(xw(o), xw(s), r), 0), (yb.test(s) || yb.test(o)) && (e[a] += "%")) : e[a] = s);
+var mw = SS.length, hw = (e) => typeof e == "string" ? parseFloat(e) : e, gw = (e) => typeof e == "number" || q.test(e);
+function _w(e, t, n, r, i, a) {
+ i ? (e.opacity = Nb(0, n.opacity ?? 1, yw(r)), e.opacityExit = Nb(t.opacity ?? 1, 0, bw(r))) : a && (e.opacity = Nb(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < mw; i++) {
+ let a = SS[i], o = vw(t, a), s = vw(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || gw(o) === gw(s) ? (e[a] = Math.max(Nb(hw(o), hw(s), r), 0), (xb.test(s) || xb.test(o)) && (e[a] += "%")) : e[a] = s);
}
- (t.rotate || n.rotate) && (e.rotate = jb(t.rotate || 0, n.rotate || 0, r));
+ (t.rotate || n.rotate) && (e.rotate = Nb(t.rotate || 0, n.rotate || 0, r));
}
-function Cw(e, t) {
+function vw(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Iie = /*@__PURE__*/ ww(0, .5, Ry), Lie = /*@__PURE__*/ ww(.5, .95, Sy);
-function ww(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ wy(e, t, r));
+var yw = /*@__PURE__*/ xw(0, .5, Gy), bw = /*@__PURE__*/ xw(.5, .95, ky);
+function xw(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ jy(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function Rie(e, t, n) {
- let r = Xx(e) ? e : Bx(e);
- return r.start(Ux("", r, t, n)), r.animation;
+function Sw(e, t, n) {
+ let r = oS(e) ? e : Xx(e);
+ return r.start($x("", r, t, n)), r.animation;
}
//#endregion
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function Tw(e, t, n, r = { passive: !0 }) {
+function Cw(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var zie = (e, t) => e.depth - t.depth, Bie = class {
+var ww = (e, t) => e.depth - t.depth, Tw = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- my(this.children, e), this.isDirty = !0;
+ xy(this.children, e), this.isDirty = !0;
}
remove(e) {
- hy(this.children, e), this.isDirty = !0;
+ Sy(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(zie), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(ww), this.isDirty = !1, this.children.forEach(e);
}
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
-function Vie(e, t) {
- let n = Qy.now(), r = ({ timestamp: i }) => {
+function Ew(e, t) {
+ let n = ib.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (qy(r), e(a - t));
+ a >= t && (eb(r), e(a - t));
};
- return Ky.setup(r, !0), () => qy(r);
+ return $y.setup(r, !0), () => eb(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function Ew(e) {
- return Xx(e) ? e.get() : e;
+function Dw(e) {
+ return oS(e) ? e.get() : e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Hie = class {
+var Ow = class {
constructor() {
this.members = [];
}
add(e) {
- my(this.members, e);
+ xy(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && (hy(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (Sy(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (hy(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (Sy(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -28060,51 +28060,51 @@ var Hie = class {
removeLeadSnapshot() {
this.lead?.snapshot && (this.lead.snapshot = void 0);
}
-}, Dw = {
+}, kw = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Ow = {
+}, Aw = {
nodes: 0,
calculatedTargetDeltas: 0,
calculatedProjections: 0
-}, kw = [
+}, jw = [
"",
"X",
"Y",
"Z"
-], Uie = 1e3, Wie = 0;
-function Aw(e, t, n, r) {
+], Mw = 1e3, Nw = 0;
+function Pw(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-function jw(e) {
+function Fw(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = eS(t);
+ let n = uS(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", Ky, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", $y, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && jw(r);
+ r && !r.hasCheckedOptimisedAppear && Fw(r);
}
-function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+function Iw({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
return class {
constructor(e = {}, n = t?.()) {
- this.id = Wie++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Nw++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, nC.value && (Ow.nodes = Ow.calculatedTargetDeltas = Ow.calculatedProjections = 0), this.nodes.forEach(qie), this.nodes.forEach($ie), this.nodes.forEach(eae), this.nodes.forEach(Jie), nC.addProjectionMetrics && nC.addProjectionMetrics(Ow);
+ this.projectionUpdateScheduled = !1, GS.value && (Aw.nodes = Aw.calculatedTargetDeltas = Aw.calculatedProjections = 0), this.nodes.forEach(Uie), this.nodes.forEach(Yie), this.nodes.forEach(Xie), this.nodes.forEach(Wie), GS.addProjectionMetrics && GS.addProjectionMetrics(Aw);
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Bie());
+ this.root === this && (this.nodes = new Tw());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Ty()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new My()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -28115,15 +28115,15 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = YS(t) && !Gre(t), this.instance = t;
+ this.isSVG = RS(t) && !nie(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- Ky.read(() => {
+ $y.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Vie(i, 250), Dw.hasAnimatedSinceResize && (Dw.hasAnimatedSinceResize = !1, this.nodes.forEach(Fw)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Ew(i, 250), kw.hasAnimatedSinceResize && (kw.hasAnimatedSinceResize = !1, this.nodes.forEach(zw)));
});
}
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
@@ -28131,23 +28131,23 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || i.getDefaultTransition() || aae, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !_w(this.targetLayout, r), l = !t && n;
+ let a = this.options.transition || i.getDefaultTransition() || tae, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !lw(this.targetLayout, r), l = !t && n;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...Hx(a, "layout"),
+ ...Qx(a, "layout"),
onPlay: o,
onComplete: s
};
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || Fw(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
+ } else t || zw(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
this.targetLayout = r;
});
}
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), qy(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), eb(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -28162,7 +28162,7 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(tae), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Zie), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -28173,7 +28173,7 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete && this.options.onExitComplete();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && jw(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Fw(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
@@ -28187,39 +28187,39 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Xie), this.nodes.forEach(Nw);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Kie), this.nodes.forEach(Lw);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(Pw);
+ this.nodes.forEach(Rw);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Zie), this.nodes.forEach(Qie), this.nodes.forEach(Gie), this.nodes.forEach(Kie)) : this.nodes.forEach(Pw), this.clearAllSnapshots();
- let e = Qy.now();
- Jy.delta = gy(0, 1e3 / 60, e - Jy.timestamp), Jy.timestamp = e, Jy.isProcessing = !0, Yy.update.process(Jy), Yy.preRender.process(Jy), Yy.render.process(Jy), Jy.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(qie), this.nodes.forEach(Jie), this.nodes.forEach(Vie), this.nodes.forEach(Hie)) : this.nodes.forEach(Rw), this.clearAllSnapshots();
+ let e = ib.now();
+ tb.delta = Cy(0, 1e3 / 60, e - tb.timestamp), tb.timestamp = e, tb.isProcessing = !0, nb.update.process(tb), nb.preRender.process(tb), nb.render.process(tb), tb.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, jS.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, ES.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Yie), this.sharedNodes.forEach(nae);
+ this.nodes.forEach(Gie), this.sharedNodes.forEach(Qie);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Ky.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, $y.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- Ky.postRender(() => {
+ $y.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !iw(this.snapshot.measuredBox.x) && !iw(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !qC(this.snapshot.measuredBox.x) && !qC(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= cC(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= ZS(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
}
@@ -28238,12 +28238,12 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
resetTransform() {
if (!i) return;
- let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !mw(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || EC(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !aw(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || hC(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), oae(n), {
+ return e && (n = this.removeTransform(n)), nae(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -28253,42 +28253,42 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return cC();
+ if (!e) return ZS();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(sae))) {
+ if (!(this.scroll?.wasRoot || this.path.some(rae))) {
let { scroll: e } = this.root;
- e && (FC(t.x, e.offset.x), FC(t.y, e.offset.y));
+ e && (wC(t.x, e.offset.x), wC(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = cC();
- if (nw(t, e), this.scroll?.wasRoot) return t;
+ let t = ZS();
+ if (GC(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && nw(t, e), FC(t.x, i.offset.x), FC(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && GC(t, e), wC(t.x, i.offset.x), wC(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n) {
- let r = n || cC();
- nw(r, e);
+ let r = n || ZS();
+ GC(r, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (FC(r.x, -n.scroll.offset.x), FC(r.y, -n.scroll.offset.y)), EC(n.latestValues) && RC(r, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (wC(r.x, -n.scroll.offset.x), wC(r.y, -n.scroll.offset.y)), hC(n.latestValues) && DC(r, n.latestValues, n.layout?.layoutBox);
}
- return EC(this.latestValues) && RC(r, this.latestValues, this.layout?.layoutBox), r;
+ return hC(this.latestValues) && DC(r, this.latestValues, this.layout?.layoutBox), r;
}
removeTransform(e) {
- let t = cC();
- nw(t, e);
+ let t = ZS();
+ GC(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!EC(n.latestValues)) continue;
+ if (!hC(n.latestValues)) continue;
let r;
- n.instance && (TC(n.latestValues) && n.updateSnapshot(), r = cC(), nw(r, n.measurePageBox())), fw(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (mC(n.latestValues) && n.updateSnapshot(), r = ZS(), GC(r, n.measurePageBox())), rw(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return EC(this.latestValues) && fw(t, this.latestValues), t;
+ return hC(this.latestValues) && rw(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -28304,7 +28304,7 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== Jy.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== tb.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -28313,36 +28313,36 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = Jy.timestamp;
+ this.resolvedRelativeTargetAt = tb.timestamp;
let a = this.getClosestProjectingParent();
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = cC(), this.targetWithTransforms = cC()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Oie(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : nw(this.target, this.layout.layoutBox), MC(this.target, this.targetDelta)) : nw(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), nC.value && Ow.calculatedTargetDeltas++);
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = ZS(), this.targetWithTransforms = ZS()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zie(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : GC(this.target, this.layout.layoutBox), xC(this.target, this.targetDelta)) : GC(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), GS.value && Aw.calculatedTargetDeltas++);
}
getClosestProjectingParent() {
- if (!(!this.parent || TC(this.parent.latestValues) || DC(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || mC(this.parent.latestValues) || gC(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = cC(), this.relativeTargetOrigin = cC(), lw(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), nw(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ZS(), this.relativeTargetOrigin = ZS(), QC(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), GC(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === Jy.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === tb.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- nw(this.layoutCorrected, this.layout.layoutBox);
+ GC(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- rie(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = cC());
+ mie(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = ZS());
let { target: s } = e;
if (!s) {
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
return;
}
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (rw(this.prevProjectionDelta.x, this.projectionDelta.x), rw(this.prevProjectionDelta.y, this.projectionDelta.y)), ow(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !yw(this.projectionDelta.x, this.prevProjectionDelta.x) || !yw(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), nC.value && Ow.calculatedProjections++;
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (KC(this.prevProjectionDelta.x, this.projectionDelta.x), KC(this.prevProjectionDelta.y, this.projectionDelta.y)), YC(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !dw(this.projectionDelta.x, this.prevProjectionDelta.x) || !dw(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), GS.value && Aw.calculatedProjections++;
}
hide() {
this.isVisible = !1;
@@ -28358,22 +28358,22 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = oC(), this.projectionDelta = oC(), this.projectionDeltaWithTransform = oC();
+ this.prevProjectionDelta = YS(), this.projectionDelta = YS(), this.projectionDeltaWithTransform = YS();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = oC();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = YS();
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = cC(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(iae));
+ let s = ZS(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(eae));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- r ? (o.x.translate = r.x, o.x.scale = jb(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = jb(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (Iw(o.x, e.x, n), Iw(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (lw(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), rae(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Mie(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= cC(), nw(f, this.relativeTarget)), c && (this.animationValues = a, Fie(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ r ? (o.x.translate = r.x, o.x.scale = Nb(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = Nb(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (Bw(o.x, e.x, n), Bw(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (QC(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), $ie(this.relativeTarget, this.relativeTargetOrigin, s, n), f && sw(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= ZS(), GC(f, this.relativeTarget)), c && (this.animationValues = a, _w(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (qy(this.pendingAnimation), void 0), this.pendingAnimation = Ky.update(() => {
- Dw.hasAnimatedSinceResize = !0, this.motionValue ||= Bx(0), this.motionValue.jump(0, !1), this.currentAnimation = Rie(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (eb(this.pendingAnimation), void 0), this.pendingAnimation = $y.update(() => {
+ kw.hasAnimatedSinceResize = !0, this.motionValue ||= Xx(0), this.motionValue.jump(0, !1), this.currentAnimation = Sw(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -28392,23 +28392,23 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Uie), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Mw), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
if (!(!t || !n || !r)) {
- if (this !== e && this.layout && r && Vw(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
- n = this.target || cC();
- let t = iw(this.layout.layoutBox.x);
+ if (this !== e && this.layout && r && Gw(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
+ n = this.target || ZS();
+ let t = qC(this.layout.layoutBox.x);
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
- let r = iw(this.layout.layoutBox.y);
+ let r = qC(this.layout.layoutBox.y);
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
}
- nw(t, n), RC(t, i), ow(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
+ GC(t, n), DC(t, i), YC(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Hie()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ow()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n ? n.transition : void 0,
@@ -28445,8 +28445,8 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let t = !1, { latestValues: n } = e;
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
let r = {};
- n.z && Aw("z", e, r, this.animationValues);
- for (let t = 0; t < kw.length; t++) Aw(`rotate${kw[t]}`, e, r, this.animationValues), Aw(`skew${kw[t]}`, e, r, this.animationValues);
+ n.z && Pw("z", e, r, this.animationValues);
+ for (let t = 0; t < jw.length; t++) Pw(`rotate${jw[t]}`, e, r, this.animationValues), Pw(`skew${jw[t]}`, e, r, this.animationValues);
e.render();
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
e.scheduleRender();
@@ -28459,71 +28459,71 @@ function Mw({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let n = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Ew(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Dw(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
return;
}
let r = this.getLead();
if (!this.projectionDelta || !this.layout || !r.target) {
- this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Ew(t?.pointerEvents) || ""), this.hasProjected && !EC(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
+ this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Dw(t?.pointerEvents) || ""), this.hasProjected && !hC(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = r.animationValues || r.latestValues;
this.applyTransformsToTarget();
- let a = Nie(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = pw(this.projectionDeltaWithTransform, this.treeScale, i);
n && (a = n(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = r.animationValues ? r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in WC) {
+ for (let t in NC) {
if (i[t] === void 0) continue;
- let { correct: n, applyTo: o, isCSSVariable: s } = WC[t], c = a === "none" ? i[t] : n(i[t], r);
+ let { correct: n, applyTo: o, isCSSVariable: s } = NC[t], c = a === "none" ? i[t] : n(i[t], r);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = r === this ? Ew(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = r === this ? Dw(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Nw), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Lw), this.root.sharedNodes.clear();
}
};
}
-function Gie(e) {
+function Vie(e) {
e.updateLayout();
}
-function Kie(e) {
+function Hie(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
- if (i === "size") bw((e) => {
- let r = a ? t.measuredBox[e] : t.layoutBox[e], i = iw(r);
+ if (i === "size") fw((e) => {
+ let r = a ? t.measuredBox[e] : t.layoutBox[e], i = qC(r);
r.min = n[e].min, r.max = r.min + i;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- tw(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
- } else Vw(i, t.layoutBox, n) && bw((r) => {
- let i = a ? t.measuredBox[r] : t.layoutBox[r], o = iw(n[r]);
+ WC(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
+ } else Gw(i, t.layoutBox, n) && fw((r) => {
+ let i = a ? t.measuredBox[r] : t.layoutBox[r], o = qC(n[r]);
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
});
- let o = oC();
- ow(o, n, t.layoutBox);
- let s = oC();
- a ? ow(s, e.applyTransform(r, !0), t.measuredBox) : ow(s, n, t.layoutBox);
- let c = !mw(o), l = !1;
+ let o = YS();
+ YC(o, n, t.layoutBox);
+ let s = YS();
+ a ? YC(s, e.applyTransform(r, !0), t.measuredBox) : YC(s, n, t.layoutBox);
+ let c = !aw(o), l = !1;
if (!e.resumeFrom) {
let r = e.getClosestProjectingParent();
if (r && !r.resumeFrom) {
let { snapshot: i, layout: a } = r;
if (i && a) {
- let o = e.options.layoutAnchor || void 0, s = cC();
- lw(s, t.layoutBox, i.layoutBox, o);
- let c = cC();
- lw(c, n, a.layoutBox, o), _w(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
+ let o = e.options.layoutAnchor || void 0, s = ZS();
+ QC(s, t.layoutBox, i.layoutBox, o);
+ let c = ZS();
+ QC(c, n, a.layoutBox, o), lw(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
}
}
}
@@ -28541,59 +28541,59 @@ function Kie(e) {
}
e.options.transition = void 0;
}
-function qie(e) {
- nC.value && Ow.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Uie(e) {
+ GS.value && Aw.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function Jie(e) {
+function Wie(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Yie(e) {
+function Gie(e) {
e.clearSnapshot();
}
-function Nw(e) {
+function Lw(e) {
e.clearMeasurements();
}
-function Xie(e) {
+function Kie(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function Pw(e) {
+function Rw(e) {
e.isLayoutDirty = !1;
}
-function Zie(e) {
+function qie(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
}
-function Qie(e) {
+function Jie(e) {
let { visualElement: t } = e.options;
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function Fw(e) {
+function zw(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function $ie(e) {
+function Yie(e) {
e.resolveTargetDelta();
}
-function eae(e) {
+function Xie(e) {
e.calcProjection();
}
-function tae(e) {
+function Zie(e) {
e.resetSkewAndRotation();
}
-function nae(e) {
+function Qie(e) {
e.removeLeadSnapshot();
}
-function Iw(e, t, n) {
- e.translate = jb(t.translate, 0, n), e.scale = jb(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function Bw(e, t, n) {
+ e.translate = Nb(t.translate, 0, n), e.scale = Nb(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function Lw(e, t, n, r) {
- e.min = jb(t.min, n.min, r), e.max = jb(t.max, n.max, r);
+function Vw(e, t, n, r) {
+ e.min = Nb(t.min, n.min, r), e.max = Nb(t.max, n.max, r);
}
-function rae(e, t, n, r) {
- Lw(e.x, t.x, n.x, r), Lw(e.y, t.y, n.y, r);
+function $ie(e, t, n, r) {
+ Vw(e.x, t.x, n.x, r), Vw(e.y, t.y, n.y, r);
}
-function iae(e) {
+function eae(e) {
return e.animationValues && e.animationValues.opacityExit !== void 0;
}
-var aae = {
+var tae = {
duration: .45,
ease: [
.4,
@@ -28601,39 +28601,39 @@ var aae = {
.1,
1
]
-}, Rw = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), zw = Rw("applewebkit/") && !Rw("chrome/") ? Math.round : Sy;
-function Bw(e) {
- e.min = zw(e.min), e.max = zw(e.max);
+}, Hw = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Uw = Hw("applewebkit/") && !Hw("chrome/") ? Math.round : ky;
+function Ww(e) {
+ e.min = Uw(e.min), e.max = Uw(e.max);
}
-function oae(e) {
- Bw(e.x), Bw(e.y);
+function nae(e) {
+ Ww(e.x), Ww(e.y);
}
-function Vw(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !Die(vw(t), vw(n), .2);
+function Gw(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Rie(uw(t), uw(n), .2);
}
-function sae(e) {
+function rae(e) {
return e !== e.root && e.scroll?.wasRoot;
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var cae = Mw({
- attachResizeListener: (e, t) => Tw(e, "resize", t),
+var iae = Iw({
+ attachResizeListener: (e, t) => Cw(e, "resize", t),
measureScroll: () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
}),
checkIsScrollRoot: () => !0
-}), Hw = { current: void 0 }, Uw = Mw({
+}), Kw = { current: void 0 }, qw = Iw({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!Hw.current) {
- let e = new cae({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), Hw.current = e;
+ if (!Kw.current) {
+ let e = new iae({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), Kw.current = e;
}
- return Hw.current;
+ return Kw.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
@@ -28642,18 +28642,18 @@ var cae = Mw({
});
//#endregion
//#region node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function lae(e, t, n, r) {
+function aae(e, t, n, r) {
if (e == null) return [];
- let i = OS(e, r), a = i.length, o = [];
+ let i = CS(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...Hx(s, e) };
- i.duration &&= /* @__PURE__ */ Ey(i.duration), i.delay &&= /* @__PURE__ */ Ey(i.delay);
- let a = _re(r), c = gre(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...Qx(s, e) };
+ i.duration &&= /* @__PURE__ */ Ny(i.duration), i.delay &&= /* @__PURE__ */ Ny(i.delay);
+ let a = sre(r), c = ore(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -28669,40 +28669,40 @@ function lae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = JS(r, i)), tx(t), DS(t, i), !a && t.length < 2 && t.unshift(JS(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = LS(r, i)), lx(t), Lre(t, i), !a && t.length < 2 && t.unshift(LS(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new kx(r);
+ let { map: t, key: n, options: r } = o[e], i = new zx(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var uae = /*@__PURE__*/ ((e) => {
+var oae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new hre(lae(t, n, r, e));
+ return new are(aae(t, n, r, e));
}
return t;
-})(), Ww = (e, t) => Math.abs(e - t);
-function dae(e, t) {
- let n = Ww(e.x, t.x), r = Ww(e.y, t.y);
+})(), Jw = (e, t) => Math.abs(e - t);
+function sae(e, t) {
+ let n = Jw(e.x, t.x), r = Jw(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
//#endregion
//#region src/react/components/use-moving-surface.ts
-var fae = {
+var cae = {
selection: {
- type: Kb,
+ type: Jb,
duration: .16,
bounce: 0
},
hover: {
- type: Kb,
+ type: Jb,
duration: .08,
bounce: 0
}
};
-function Gw(e) {
+function Yw(e) {
let [t, n] = (0, V.useState)(null);
return (0, V.useLayoutEffect)(() => {
if (!t) return;
@@ -28723,7 +28723,7 @@ function Gw(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = uae(n, { transform: [r, E] }, fae[e]);
+ l = oae(n, { transform: [r, E] }, cae[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -28760,29 +28760,29 @@ function Gw(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function Kw(e) {
- let t = Gw("selection");
- return /* @__PURE__ */ (0, H.jsx)(dy, {
+function Xw(e) {
+ let t = Yw("selection");
+ return /* @__PURE__ */ (0, H.jsx)(vy, {
...e,
ref: t
});
}
-function qw(e) {
- let t = Gw("selection");
- return /* @__PURE__ */ (0, H.jsx)(R_, {
+function Zw(e) {
+ let t = Yw("selection");
+ return /* @__PURE__ */ (0, H.jsx)(I_, {
...e,
ref: t
});
}
-var Jw = "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", Yw = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", pae = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Xw = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", Zw = "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)", mae = (e) => e === "videos", Qw = () => /* @__PURE__ */ (0, H.jsx)("span", {
+var Qw = "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", $w = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", lae = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", eT = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", tT = "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)", uae = (e) => e === "videos", nT = () => /* @__PURE__ */ (0, H.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function hae(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = mae(t), u = (0, V.useRef)(null), d = (0, V.useRef)(null), f = (0, V.useRef)(null), p = (0, V.useRef)(null), m = (0, V.useRef)(null), h = (0, V.useRef)(null), g = (0, V.useRef)(null), _ = pa(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pa(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function dae(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = uae(t), u = (0, V.useRef)(null), d = (0, V.useRef)(null), f = (0, V.useRef)(null), p = (0, V.useRef)(null), m = (0, V.useRef)(null), h = (0, V.useRef)(null), g = (0, V.useRef)(null), _ = pa(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pa(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, V.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)($w, {
+ }, [c]), /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(rT, {
items: o,
hidden: !l,
actions: s
@@ -28806,13 +28806,13 @@ function hae(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [n ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(gae, {
+ top: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [n ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(fae, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, H.jsx)(Qw, {}) : null] }) : null, /* @__PURE__ */ (0, H.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, H.jsx)(nT, {}) : null] }) : null, /* @__PURE__ */ (0, H.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -28832,7 +28832,7 @@ function hae(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, H.jsx)(Qw, {})]
+ }, e.k)), /* @__PURE__ */ (0, H.jsx)(nT, {})]
}), /* @__PURE__ */ (0, H.jsx)("div", {
ref: h,
"data-entity-tags": "",
@@ -28848,10 +28848,10 @@ function hae(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, H.jsx)(_ae, { ...e })
+ bottom: /* @__PURE__ */ (0, H.jsx)(pae, { ...e })
})] });
}
-function gae({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function fae({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -28893,7 +28893,7 @@ function gae({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function $w({ items: e, hidden: t, actions: n }) {
+function rT({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -28913,7 +28913,7 @@ function $w({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function _ae(e) {
+function pae(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, H.jsxs)("button", {
@@ -28925,22 +28925,22 @@ function _ae(e) {
dangerouslySetInnerHTML: { __html: l("chevron-left") }
}), /* @__PURE__ */ (0, H.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, H.jsx)(vae, {
+ /* @__PURE__ */ (0, H.jsx)(mae, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, H.jsx)(yae, {
+ t === "videos" && i ? /* @__PURE__ */ (0, H.jsx)(hae, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, H.jsx)(bae, {
+ t === "photos" && a ? /* @__PURE__ */ (0, H.jsx)(gae, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function vae({ text: e, busy: t }) {
+function mae({ text: e, busy: t }) {
return /* @__PURE__ */ (0, H.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, H.jsx)("span", {
@@ -28950,22 +28950,22 @@ function vae({ text: e, busy: t }) {
}) : e
});
}
-function eT({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, H.jsx)(R_, {
+function iT({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, H.jsx)(I_, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: Xw,
+ className: eT,
children: r.map(([e, t, n]) => {
let r = rr(n);
- return /* @__PURE__ */ (0, H.jsx)(z_, {
+ return /* @__PURE__ */ (0, H.jsx)(L_, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: Zw,
+ className: tT,
children: /* @__PURE__ */ (0, H.jsx)("span", {
title: t,
className: "contents",
@@ -28975,7 +28975,7 @@ function eT({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function tT({ onPress: e, busy: t = !1 }) {
+function aT({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -28989,25 +28989,25 @@ function tT({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Ne("正在换一批") : l("shuffle") }
});
}
-function yae({ head: e, actions: t }) {
+function hae({ head: e, actions: t }) {
return /* @__PURE__ */ (0, H.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(tT, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, H.jsx)(eT, {
+ /* @__PURE__ */ (0, H.jsx)(aT, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, H.jsx)(iT, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, H.jsx)(nT, {
+ /* @__PURE__ */ (0, H.jsx)(oT, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function nT({ sorts: e, onSort: t }) {
+function oT({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: e.map((e) => {
let n = rr(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, H.jsxs)("button", {
@@ -29021,20 +29021,20 @@ function nT({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function bae({ head: e, actions: t, helpers: n }) {
+function gae({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, V.useState)(!1), a = (0, V.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, V.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, H.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, H.jsx)(tT, {
+ e.shuffle ? /* @__PURE__ */ (0, H.jsx)(aT, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, H.jsx)(eT, {
+ /* @__PURE__ */ (0, H.jsx)(iT, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -29050,31 +29050,31 @@ function bae({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var rT = "";
-function xae(e) {
- let t = !e.tiers, n = Oae(e.comboHost);
+var sT = "";
+function _ae(e) {
+ let t = !e.tiers, n = wae(e.comboHost);
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)($w, {
+ n ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(rT, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, H.jsx)(wae, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, H.jsx)(Sae, { ...e })
+ /* @__PURE__ */ (0, H.jsx)(bae, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, H.jsx)(vae, { ...e })
]
});
}
-function Sae(e) {
+function vae(e) {
let { actions: t, helpers: n } = e, r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useRef)(null), c = pa(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, V.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = aT(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = lT(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, V.useLayoutEffect)(() => {
we(o.current, "tagbar");
}, [u]), /* @__PURE__ */ (0, H.jsx)(sa, {
@@ -29120,16 +29120,16 @@ function Sae(e) {
}), /* @__PURE__ */ (0, H.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, H.jsx)(iT, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, H.jsx)(Cae, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, H.jsx)(cT, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, H.jsx)(yae, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, H.jsx)(Eae, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, H.jsx)(Sae, { ...e })
});
}
-function Cae({ tag: e, onPress: t }) {
+function yae({ tag: e, onPress: t }) {
return /* @__PURE__ */ (0, H.jsxs)(la, {
"data-catalog-tag": e.k,
"data-entity-press": "",
@@ -29141,12 +29141,12 @@ function Cae({ tag: e, onPress: t }) {
})]
});
}
-function wae(e) {
+function bae(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useCallback)((e) => () => t.moreTops(e), [t]), c = aT(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = aT(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useCallback)((e) => () => t.moreTops(e), [t]), c = lT(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = lT(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, V.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -29159,7 +29159,7 @@ function wae(e) {
children: [u ? /* @__PURE__ */ (0, H.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, H.jsx)(iT, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, H.jsx)(cT, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -29176,18 +29176,18 @@ function wae(e) {
}) : null, d ? /* @__PURE__ */ (0, H.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, H.jsx)(iT, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, H.jsx)(cT, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, H.jsx)(Tae, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, H.jsx)(xae, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function Tae({ studio: e }) {
+function xae({ studio: e }) {
let [t, n] = (0, V.useState)(!1);
return /* @__PURE__ */ (0, H.jsx)("span", {
"data-tier-mark": "",
@@ -29201,7 +29201,7 @@ function Tae({ studio: e }) {
}) : e.fallback
});
}
-function iT({ kind: e }) {
+function cT({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -29217,32 +29217,32 @@ function iT({ kind: e }) {
children: [/* @__PURE__ */ (0, H.jsx)("span", {}), /* @__PURE__ */ (0, H.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Eae({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function Sae({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, V.useState)(!1);
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Dae, { count: e }), /* @__PURE__ */ (0, H.jsxs)("span", {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Cae, { count: e }), /* @__PURE__ */ (0, H.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(tT, {
+ /* @__PURE__ */ (0, H.jsx)(aT, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, H.jsx)(eT, {
+ n ? /* @__PURE__ */ (0, H.jsx)(iT, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, H.jsx)(nT, {
+ /* @__PURE__ */ (0, H.jsx)(oT, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function Dae({ count: e }) {
+function Cae({ count: e }) {
let t = (0, V.useRef)(null), n = (0, V.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, V.useLayoutEffect)(() => {
if (!e) {
@@ -29250,7 +29250,7 @@ function Dae({ count: e }) {
return;
}
let i = t.current;
- i && (rT && i.dataset.popCount === void 0 && (i.dataset.popCount = rT), rT = r, Te(i, r));
+ i && (sT && i.dataset.popCount === void 0 && (i.dataset.popCount = sT), sT = r, Te(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, H.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -29266,7 +29266,7 @@ function Dae({ count: e }) {
})
}, "skeleton");
}
-function Oae(e) {
+function wae(e) {
let [t, n] = (0, V.useState)(null);
return (0, V.useLayoutEffect)(() => {
if (!e) return;
@@ -29276,7 +29276,7 @@ function Oae(e) {
};
}, [e]), t;
}
-function aT(e, t, n, r, i) {
+function lT(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -29322,15 +29322,15 @@ function aT(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function oT({ value: e }) {
+function uT({ value: e }) {
return /* @__PURE__ */ (0, H.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 kae = "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 sT({ tabs: e, value: t, label: n, onChange: r }) {
+var Tae = "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 dT({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, V.useRef)(null), a = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
let e = i.current;
@@ -29365,7 +29365,7 @@ function sT({ tabs: e, value: t, label: n, onChange: r }) {
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: kae,
+ className: Tae,
onClick: () => {
i || r(e.value);
},
@@ -29381,21 +29381,21 @@ function sT({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/search/search.ts
-var cT = /* @__PURE__ */ new Set([
+var fT = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), lT = /* @__PURE__ */ new Set(["asset"]), uT = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function Aae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+]), pT = /* @__PURE__ */ new Set(["asset"]), mT = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function Eae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
index: s++
};
return c.push(t), t;
- }, u = t.filter((t) => !e || uT(t).includes(uT(e)));
+ }, u = t.filter((t) => !e || mT(t).includes(mT(e)));
if (!e) {
let e = u.length ? {
label: "搜索记录",
@@ -29433,7 +29433,7 @@ function Aae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: e.kind,
item: t
}))
- }), h = p.filter((e) => !lT.has(e.kind)).map(m), g = p.filter((e) => lT.has(e.kind)).map(m);
+ }), h = p.filter((e) => !pT.has(e.kind)).map(m), g = p.filter((e) => pT.has(e.kind)).map(m);
return {
tabs: d && a.length > 1 ? [...a] : null,
recent: f,
@@ -29442,17 +29442,17 @@ function Aae({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function jae(e, t, n = Math.random) {
+function Dae(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => uT(t) === uT(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => mT(t) === mT(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
-var Mae = () => ({
+var Oae = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -29467,7 +29467,7 @@ var Mae = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), dT = (e) => Aae({
+}), hT = (e) => Eae({
query: e.query,
history: e.history,
picks: e.picks,
@@ -29475,18 +29475,18 @@ var Mae = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), Nae = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), fT = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
+}), kae = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), gT = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
});
-function Pae(e) {
+function Aae(e) {
let t = (0, V.useRef)(e);
t.current = e;
let n = (0, V.useRef)(null);
- n.current ??= Mae();
+ n.current ??= Oae();
let r = n.current, i = (0, V.useRef)(null), [, a] = (0, V.useReducer)((e) => e + 1, 0), o = (0, V.useRef)(null);
- o.current ??= Fae(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= jae(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, V.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -29499,7 +29499,7 @@ function Pae(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = dT(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, H.jsx)(Lae, {
+ let c = hT(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, H.jsx)(Nae, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -29519,7 +29519,7 @@ function Pae(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, H.jsx)(Iae, {
+ c.tabs ? /* @__PURE__ */ (0, H.jsx)(Mae, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -29540,7 +29540,7 @@ function Pae(e) {
]
});
}
-function Fae(e, t, n, r) {
+function jae(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -29554,7 +29554,7 @@ function Fae(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => uT(e) !== uT(t))]), B("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => mT(e) !== mT(t))]), B("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -29587,9 +29587,9 @@ function Fae(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : jae(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : Dae(t.pool, o()), t.active = -1;
let a = n();
- a && (Nae(dT(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (kae(hT(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -29601,7 +29601,7 @@ function Fae(e, t, n, r) {
!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {
a() && t.kind === e && m();
}));
- }, _ = () => f() ? dT(t).options : [], v = (e) => {
+ }, _ = () => f() ? hT(t).options : [], v = (e) => {
let n = _();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, y = (t, n) => {
@@ -29614,7 +29614,7 @@ function Fae(e, t, n, r) {
i().blur(), e().actions.openItem(t.item.id);
return;
}
- if (t.type === "suggest" && cT.has(t.kind)) {
+ if (t.type === "suggest" && fT.has(t.kind)) {
b(t.kind, t.value);
return;
}
@@ -29666,12 +29666,12 @@ function Fae(e, t, n, r) {
await B("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => uT(t) !== uT(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => mT(t) !== mT(e))), t.active = -1, r();
},
pickKind: g
};
}
-function Iae({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Mae({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, V.useRef)(null);
(0, V.useLayoutEffect)(() => {
r(i.current);
@@ -29683,7 +29683,7 @@ function Iae({ tabs: e, kind: t, onPick: n, wire: r }) {
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, H.jsx)(oT, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, H.jsx)(uT, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, H.jsxs)("div", {
ref: i,
@@ -29693,8 +29693,8 @@ function Iae({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var pT = (e) => e.preventDefault();
-function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+var _T = (e) => e.preventDefault();
+function Nae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -29706,28 +29706,28 @@ function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, H.jsx)(fT, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, H.jsx)(gT, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, H.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: pT,
+ onMouseDown: _T,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, H.jsx)(fT, { name: "x" })
+ children: /* @__PURE__ */ (0, H.jsx)(gT, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = cT.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = fT.has(c) ? c : void 0;
if (c === "asset") {
let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-search-option": "work",
"data-open-item": s.id,
...o,
- children: [/* @__PURE__ */ (0, H.jsx)(mT, {
+ children: [/* @__PURE__ */ (0, H.jsx)(vT, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, H.jsxs)("span", {
@@ -29753,7 +29753,7 @@ function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- /* @__PURE__ */ (0, H.jsx)(hT, {
+ /* @__PURE__ */ (0, H.jsx)(yT, {
item: s,
kind: c
}),
@@ -29773,11 +29773,11 @@ function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: pT,
+ onMouseDown: _T,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, H.jsx)(mT, {
+ children: /* @__PURE__ */ (0, H.jsx)(vT, {
card: e,
helpers: n
})
@@ -29791,7 +29791,7 @@ function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, H.jsx)(hT, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, H.jsx)(yT, {
item: s,
kind: c
}) : null,
@@ -29804,13 +29804,13 @@ function Lae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function mT({ card: e, helpers: t }) {
+function vT({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, H.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function hT({ item: e, kind: t }) {
+function yT({ item: e, kind: t }) {
let n = {
id: e.entity_id,
has_image: e.has_image,
@@ -29825,8 +29825,8 @@ function hT({ item: e, kind: t }) {
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var gT = (e) => ["feed-new", e ?? "home"], Rae = 8, zae = 1500;
-function Bae(e, t, n) {
+var bT = (e) => ["feed-new", e ?? "home"], Pae = 8, Fae = 1500;
+function Iae(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -29837,32 +29837,32 @@ function Bae(e, t, n) {
setTimeout(e, n);
})]);
}
-async function Vae(e, n, r) {
+async function Lae(e, n, r) {
let i = new URLSearchParams({ limit: "12" });
e && i.set("entity", String(e));
let a = await t(`/api/feeds/discoveries?${i}`).catch(() => null), o = a && !a.error ? a : null, s = o?.items || [], c = n(o);
- return r && s.length && await Bae(c, Rae, zae), {
+ return r && s.length && await Iae(c, Pae, Fae), {
items: s,
html: c
};
}
-var _T = (e, t, n = !1) => ({
- queryKey: gT(e),
- queryFn: () => Vae(e, t, n),
+var xT = (e, t, n = !1) => ({
+ queryKey: bT(e),
+ queryFn: () => Lae(e, t, n),
staleTime: Infinity
-}), vT = (e, n) => t("/api/feeds/discovery", {
+}), ST = (e, n) => t("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: n,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function Hae(e) {
- _.removeQueries({ queryKey: gT(null) }), await _.fetchQuery(_T(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function Rae(e) {
+ _.removeQueries({ queryKey: bT(null) }), await _.fetchQuery(xT(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var Uae = [
+var zae = [
"loc",
"creator",
"tag",
@@ -29872,51 +29872,51 @@ var Uae = [
"orient",
"sort",
"dir"
-], yT = {
+], CT = {
media: "videos",
set: 0
-}, bT = (e, t) => [
+}, wT = (e, t) => [
"entity",
e,
t
-], Wae = (e, t, n, r) => [
+], Bae = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], xT = (e, t, n, r) => [
+], TT = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], ST = (e) => String(e || "").split(",").filter(Boolean), Gae = (e, t) => ST(e).includes(t);
-function CT(e, t, n, r, i = 0) {
+], ET = (e) => String(e || "").split(",").filter(Boolean), Vae = (e, t) => ET(e).includes(t);
+function DT(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of Uae) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of zae) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function wT(e, n, r, i, a, o) {
- return await t(`/api/items?${CT(e, n, r, i, a)}`, o ? { signal: o } : {});
+async function OT(e, n, r, i, a, o) {
+ return await t(`/api/items?${DT(e, n, r, i, a)}`, o ? { signal: o } : {});
}
-var TT = (e) => {
+var kT = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = CT(e.kind, e.name, e.filters, t).toString();
+ }, n = DT(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Wae(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => wT(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: Bae(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => OT(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, ET = (e, n) => ({
- queryKey: bT(e, n),
+}, AT = (e, n) => ({
+ queryKey: wT(e, n),
queryFn: ({ signal: r }) => t(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(n)}`, { signal: r }),
staleTime: Infinity
});
-function Kae(e, t, n, r, i, a) {
+function Hae(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -29925,10 +29925,10 @@ function Kae(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var DT = (e, n, r, i) => ({
- queryKey: xT(e, n, r, i),
+var jT = (e, n, r, i) => ({
+ queryKey: TT(e, n, r, i),
queryFn: async ({ pageParam: a }) => {
- let o = await t(Kae(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
+ let o = await t(Hae(e, n, r, i, a?.offset || 0, a?.seed || "")).catch((e) => {
if (a) throw e;
return { error: String(e) };
});
@@ -29941,8 +29941,8 @@ var DT = (e, n, r, i) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), OT = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function qae(e) {
+}), MT = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function Uae(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -29954,82 +29954,82 @@ async function qae(e) {
n
] });
await Promise.all([
- _.fetchQuery(ET(t, n)).then((t) => !t || t.error || !t.id ? null : (_.removeQueries({ queryKey: gT(Number(t.id)) }), _.fetchQuery(_T(Number(t.id), e.helpers.feedRowHtml, !0)))),
- _.fetchQuery(TT(e)),
- _.fetchInfiniteQuery(DT(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? _.fetchInfiniteQuery(DT(t, n, e.media.set, "")) : null
+ _.fetchQuery(AT(t, n)).then((t) => !t || t.error || !t.id ? null : (_.removeQueries({ queryKey: bT(Number(t.id)) }), _.fetchQuery(xT(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ _.fetchQuery(kT(e)),
+ _.fetchInfiniteQuery(jT(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? _.fetchInfiniteQuery(jT(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/components/card.tsx
-var Jae = "min-w-0", Yae = {
+var Wae = "min-w-0", Gae = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Xae = {
+}, Kae = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Zae = {
+}, qae = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Qae = {
+}, Jae = {
none: "",
default: "p-5"
-}, $ae = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", eoe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function kT(e = {}) {
+}, Yae = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Xae = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function NT(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Jae,
- Yae[t],
- Xae[s],
- Qae[n],
- a ? Zae[a] : "",
- r ? $ae : "",
- i ? eoe : "",
+ Wae,
+ Gae[t],
+ Kae[s],
+ Jae[n],
+ a ? qae[a] : "",
+ r ? Yae : "",
+ i ? Xae : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var toe = "/api/follow/authors", noe = "/api/follow/tags", roe = (e) => [
+var Zae = "/api/follow/authors", Qae = "/api/follow/tags", $ae = (e) => [
"follow",
"authors",
e
-], ioe = (e, t) => [
+], eoe = (e, t) => [
"follow",
"tags",
e,
t
];
-function aoe(e, t, n) {
+function toe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${toe}?${r}`;
+ return e && r.set("q", e), `${Zae}?${r}`;
}
-function ooe(e, t, n, r) {
+function noe(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), `${noe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Qae}?${i}`;
}
-var soe = (e, t, n, r) => z(aoe(e, t, n), r), coe = (e, t, n, r, i) => z(ooe(e, t, n, r), i), loe = "/api/index", AT = {
+var roe = (e, t, n, r) => z(toe(e, t, n), r), ioe = (e, t, n, r, i) => z(noe(e, t, n, r), i), aoe = "/api/index", PT = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, uoe = {
+}, ooe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, jT = [
+}, FT = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -30039,26 +30039,26 @@ var soe = (e, t, n, r) => z(aoe(e, t, n), r), coe = (e, t, n, r, i) => z(ooe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], MT = [
+], IT = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], NT = {
+], LT = {
people: 120,
tags: 180
-}, PT = (e) => e !== "tags", FT = (e) => e === "studios" || e === "agencies";
-function IT(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? MT : jT).some(([t]) => t === e.category);
+}, RT = (e) => e !== "tags", zT = (e) => e === "studios" || e === "agencies";
+function BT(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? IT : FT).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function LT(e) {
+function VT(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -30077,50 +30077,50 @@ function LT(e) {
q: n
};
}
-var RT = (e, t, n = "all") => [
+var HT = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function zT(e, t, n, r, i) {
+function UT(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), `${loe}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${aoe}?${a}`;
}
-function BT(e) {
- let t = e.what === "people" || e.what === "online-authors" ? NT.people : NT.tags, n = {
+function WT(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? LT.people : LT.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: RT(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => z(zT(e.kind, e.q, "all", t, n), r)
+ queryKey: HT(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => z(UT(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: RT("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => z(zT("tags", e.q, e.category, t, n), r)
+ queryKey: HT("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => z(UT("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: roe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => soe(e.q, t, n, r)
+ queryKey: $ae(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => roe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: ioe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => coe(e.q, e.category, t, n, r)
+ queryKey: eoe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => ioe(e.q, e.category, t, n, r)
};
}
}
-async function doe(e, t) {
- let n = BT(LT(IT(e)));
+async function soe(e, t) {
+ let n = WT(VT(BT(e)));
_.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -30134,13 +30134,13 @@ async function doe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var foe = (e) => e ? e.pages.flatMap((e) => e.items) : [], poe = (e, t) => `${e}${t ? "+" : ""} 项`, VT = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", moe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), hoe = {
+var coe = (e) => e ? e.pages.flatMap((e) => e.items) : [], loe = (e, t) => `${e}${t ? "+" : ""} 项`, GT = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", uoe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), doe = {
numeric: !0,
sensitivity: "base"
};
-function goe(e, t) {
+function foe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", hoe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", doe))) {
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]);
}
@@ -30148,7 +30148,7 @@ function goe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function HT({ html: e, face: t, company: n, big: r }) {
+function KT({ html: e, face: t, company: n, big: r }) {
let i = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -30160,18 +30160,18 @@ function HT({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var _oe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function UT({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var poe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function qT({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: kT({
+ className: NT({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${_oe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${poe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -30188,8 +30188,8 @@ function UT({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function WT({ kind: e, items: t, layout: n, props: r }) {
- let i = uoe[e], a = FT(e), o = n === "big";
+function JT({ kind: e, items: t, layout: n, props: r }) {
+ let i = ooe[e], a = zT(e), o = n === "big";
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -30197,14 +30197,14 @@ function WT({ 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, H.jsx)(UT, {
+ return /* @__PURE__ */ (0, H.jsx)(qT, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: moe(e, t),
+ readout: uoe(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, H.jsx)(HT, {
+ children: /* @__PURE__ */ (0, H.jsx)(KT, {
html: n.html,
face: n.face,
company: a,
@@ -30214,21 +30214,21 @@ function WT({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function voe({ items: e, layout: t, props: n }) {
+function moe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(UT, {
+ children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(qT, {
"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, H.jsx)(HT, {
+ children: /* @__PURE__ */ (0, H.jsx)(KT, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -30238,14 +30238,14 @@ function voe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function yoe(e) {
+function hoe(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var GT = "/vendor/swiper/14.2.0/", KT = null, boe = () => KT ??= Promise.all([new Promise((e, t) => {
- let n = `${GT}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var YT = "/vendor/swiper/14.2.0/", XT = null, goe = () => XT ??= Promise.all([new Promise((e, t) => {
+ let n = `${YT}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -30259,11 +30259,11 @@ var GT = "/vendor/swiper/14.2.0/", KT = null, boe = () => KT ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${GT}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${YT}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw KT = null, e;
+ throw XT = null, e;
});
-function xoe(e, t, n) {
+function _oe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -30284,48 +30284,48 @@ function xoe(e, t, n) {
}
};
}
-var qT = (e) => {
+var ZT = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : s(t)).replace(" ", "\xA0") : "大小未知";
-}, Soe = (e) => e.asset?.name || e.name || "未命名图片";
-function Coe(t, n) {
+}, voe = (e) => e.asset?.name || e.name || "未命名图片";
+function yoe(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", qT(r.size)].join(" · ");
+ if (r) return [e[r.location ?? ""] || r.location || "来源未知", ZT(r.size)].join(" · ");
let i = (t.total ?? 0) > 1 ? `第 ${t.position} / ${t.total} 张` : "", a = n?.[0] && n[1] ? `${n[0]} × ${n[1]}` : "";
return [
t.source || "在线图片",
i,
a,
- t.size ? qT(t.size) : ""
+ t.size ? ZT(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var JT = null, YT = null, woe = 0;
-function Toe() {
- return (!YT || !JT?.isConnected) && (YT?.unmount(), JT = document.createElement("div"), JT.className = "peach-react", JT.dataset.photoLightboxHost = "", document.body.append(JT), YT = (0, At.createRoot)(JT)), YT;
+var QT = null, $T = null, boe = 0;
+function xoe() {
+ return (!$T || !QT?.isConnected) && ($T?.unmount(), QT = document.createElement("div"), QT.className = "peach-react", QT.dataset.photoLightboxHost = "", document.body.append(QT), $T = (0, At.createRoot)(QT)), $T;
}
-async function XT(e, t, n) {
+async function eE(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await boe();
+ r = await goe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = Toe();
- (0, kt.flushSync)(() => i.render(/* @__PURE__ */ (0, H.jsx)(Eoe, {
+ let i = xoe();
+ (0, kt.flushSync)(() => i.render(/* @__PURE__ */ (0, H.jsx)(Soe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++woe)));
+ }, ++boe)));
}
-function ZT() {
- YT && (0, kt.flushSync)(() => YT.render(null));
+function tE() {
+ $T && (0, kt.flushSync)(() => $T.render(null));
}
-function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
+function Soe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, V.useId)(), o = (0, V.useRef)(null), s = (0, V.useRef)(null), c = (0, V.useRef)(null), u = (0, V.useRef)(null), d = (0, V.useRef)(null), f = (0, V.useRef)(null), p = (0, V.useRef)(null), m = (0, V.useRef)(null), h = (0, V.useRef)(null), g = (0, V.useRef)(null), _ = (0, V.useRef)(null), [v, y] = (0, V.useState)(t), [b, x] = (0, V.useState)(100), [S, C] = (0, V.useState)({}), [w, T] = (0, V.useState)(() => /* @__PURE__ */ new Set()), [E, D] = (0, V.useState)(!1), [O, k] = (0, V.useState)({
at: t,
text: ""
@@ -30368,7 +30368,7 @@ function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = xoe(e, a, x);
+ i(t, 0), g.current = _oe(e, a, x);
let l = Ie(e, p.current, m.current), h = (e = !1) => {
l.hide(), p.current?.setAttribute("aria-expanded", "false"), e && p.current && document.contains(p.current) && p.current.focus();
};
@@ -30385,13 +30385,13 @@ function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : ZT());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : tE());
};
return document.addEventListener("keydown", b, !0), () => {
document.removeEventListener("keydown", b, !0), h(), v.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), g.current = null, _.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, V.useLayoutEffect)(() => {
- h.current && yoe(h.current);
+ h.current && hoe(h.current);
}, [b]);
let A = e[v], j = A.asset ?? null, M = async (e) => {
if (!j || !r || e.getAttribute("aria-busy") === "true") return;
@@ -30422,18 +30422,18 @@ function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), ZT();
+ e.preventDefault(), tE();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && ZT();
+ _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && tE();
},
children: [
/* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: ZT,
+ onClick: tE,
dangerouslySetInnerHTML: { __html: l("x") }
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -30566,10 +30566,10 @@ function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Soe(A)
+ children: voe(A)
}, v), /* @__PURE__ */ (0, H.jsx)("span", {
"data-photo-detail-meta": "",
- children: Coe(A, S[v])
+ children: yoe(A, S[v])
})]
}),
/* @__PURE__ */ (0, H.jsx)("button", {
@@ -30608,28 +30608,28 @@ function Eoe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Doe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, H.jsx)(Ooe, {
+function Coe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, H.jsx)(woe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, H.jsx)(koe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, H.jsx)(Moe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, H.jsx)(Toe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, H.jsx)(Ooe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function Ooe({ roster: e, props: t }) {
+function woe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, V.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, H.jsx)(WT, {
+ return /* @__PURE__ */ (0, H.jsx)(JT, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function koe(e) {
+function Toe(e) {
let t = Bn(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-entity-grid": "",
@@ -30653,16 +30653,16 @@ function koe(e) {
}) : null]
});
}
-var Aoe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var Eoe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), QT = (e) => e.sample === !0, $T = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, eE = (e) => QT(e) ? `/sample-thumb?${$T(e)}` : `/photo-thumb?id=${e.id}`, joe = (e) => QT(e) ? {
- src: `/sample-image?${$T(e)}`,
- thumb: eE(e),
+})), nE = (e) => e.sample === !0, rE = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, iE = (e) => nE(e) ? `/sample-thumb?${rE(e)}` : `/photo-thumb?id=${e.id}`, Doe = (e) => nE(e) ? {
+ src: `/sample-image?${rE(e)}`,
+ thumb: iE(e),
name: e.name,
asset: null,
source: e.source,
@@ -30670,18 +30670,18 @@ var Aoe = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: eE(e),
+ thumb: iE(e),
name: e.name || "",
asset: e
};
-function Moe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, V.useMemo)(() => [...e.codeSets.flatMap(Aoe), ...e.items], [e]), [s, c] = (0, V.useState)(() => /* @__PURE__ */ new Set()), l = (0, V.useCallback)((e) => c((t) => {
+function Ooe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, V.useMemo)(() => [...e.codeSets.flatMap(Eoe), ...e.items], [e]), [s, c] = (0, V.useState)(() => /* @__PURE__ */ new Set()), l = (0, V.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, V.useCallback)((e) => {
- XT(e, o.map(joe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, H.jsx)(Noe, {
+ eE(e, o.map(Doe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, H.jsx)(koe, {
item: e,
index: t,
lost: s.has(t),
@@ -30699,7 +30699,7 @@ function Moe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, H.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(tE, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, H.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(aE, {
label: e.code,
title: e.name,
meta: [
@@ -30711,7 +30711,7 @@ function Moe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, H.jsx)(tE, {
+ m.length && e.total ? /* @__PURE__ */ (0, H.jsx)(aE, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -30727,7 +30727,7 @@ function Moe({ photos: e, props: t }) {
}, e.items.length) : null
] });
}
-function tE({ label: e, title: t, meta: n }) {
+function aE({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -30744,7 +30744,7 @@ function tE({ label: e, title: t, meta: n }) {
]
});
}
-function Noe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function koe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
@@ -30753,7 +30753,7 @@ function Noe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, H.jsx)("img", {
- src: eE(e),
+ src: iE(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -30764,7 +30764,7 @@ function Noe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+var Aoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30772,7 +30772,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Foe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), joe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30780,7 +30780,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), nE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), oE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30788,7 +30788,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), rE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), sE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30796,7 +30796,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), iE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), cE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30804,7 +30804,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Ioe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Moe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30812,7 +30812,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), aE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), lE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30820,7 +30820,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), oE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), uE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30828,7 +30828,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Loe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), Noe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30836,7 +30836,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), sE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), dE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30844,7 +30844,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), cE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), fE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30852,7 +30852,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), lE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), pE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30860,7 +30860,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), uE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), mE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30868,7 +30868,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Roe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30876,7 +30876,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), dE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), hE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30884,7 +30884,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), fE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), gE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30892,7 +30892,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), zoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Foe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30900,7 +30900,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Boe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Ioe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30908,7 +30908,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), pE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), _E = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30916,7 +30916,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), mE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), vE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30924,7 +30924,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Voe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Loe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30932,7 +30932,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Hoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Roe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30940,7 +30940,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Uoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), zoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30948,7 +30948,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Woe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Boe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30956,7 +30956,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Goe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), Voe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30964,7 +30964,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Koe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Hoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30972,7 +30972,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), hE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), yE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30980,7 +30980,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), gE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), bE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30988,7 +30988,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), _E = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), xE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -30996,7 +30996,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), vE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), SE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31004,7 +31004,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), qoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), Uoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31012,7 +31012,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), Joe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), Woe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31020,7 +31020,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Yoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Goe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31028,7 +31028,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Xoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Koe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31036,7 +31036,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), yE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), CE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31044,7 +31044,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), bE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), wE = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31052,7 +31052,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Zoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), qoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31060,7 +31060,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Qoe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
+}, V.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Joe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -31068,7 +31068,7 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
fill: e,
...r,
className: "remixicon " + (n || "")
-}, V.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), xE = ia({
+}, V.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), TE = ia({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -31087,16 +31087,16 @@ var Poe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => V
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function SE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function EE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, H.jsx)("span", {
ref: r,
- className: ra(xE.base, xE.variant[e], xE.color[t], n),
+ className: ra(TE.base, TE.variant[e], TE.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var CE = ia({
+var DE = ia({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -31155,40 +31155,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, H.jsxs)("button", {
ref: c,
type: s,
- className: ra(CE.base, CE.size[t], CE.variant[e], n && CE.iconOnlySize[t], o),
+ className: ra(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, H.jsx)(r, {
- className: CE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, H.jsx)("span", {
- className: CE.label[t],
+ className: DE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, H.jsx)(i, {
- className: CE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function wE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function OE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, H.jsxs)("a", {
ref: s,
- className: ra(CE.base, CE.size[t], CE.variant[e], n && CE.iconOnlySize[t], o),
+ className: ra(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, H.jsx)(r, {
- className: CE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, H.jsx)("span", {
- className: CE.label[t],
+ className: DE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, H.jsx)(i, {
- className: CE.icon[t],
+ className: DE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -31196,7 +31196,7 @@ function wE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var TE = ia({
+var kE = ia({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -31217,21 +31217,21 @@ var TE = ia({
small: "size-4 shrink-0"
}
});
-function EE({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function AE({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, H.jsx)("button", {
ref: i,
type: r,
- className: ra(TE.base, TE.size[t], n),
+ className: ra(kE.base, kE.size[t], n),
...a,
children: /* @__PURE__ */ (0, H.jsx)(e, {
- className: TE.icon[t],
+ className: kE.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function $oe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+function Yoe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
return /* @__PURE__ */ (0, H.jsxs)(uu, {
"data-label": "true",
...a,
@@ -31243,7 +31243,7 @@ function $oe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, H.jsx)(Hoe, {
+ n && /* @__PURE__ */ (0, H.jsx)(Roe, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -31252,7 +31252,7 @@ function $oe({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function ese({ isInvalid: e = !1, className: t, ...n }) {
+function Xoe({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, H.jsx)(Eu, {
slot: e ? "errorMessage" : "description",
...n,
@@ -31261,15 +31261,15 @@ function ese({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var DE = (0, V.createContext)({});
-function OE({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, H.jsx)(DE.Provider, {
+var jE = (0, V.createContext)({});
+function ME({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, H.jsx)(jE.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, H.jsx)(Yte, {
+ children: /* @__PURE__ */ (0, H.jsx)(Hte, {
...a,
"data-input-size": e,
className: ra("group flex h-max w-full flex-col items-start gap-1", r),
@@ -31277,8 +31277,8 @@ function OE({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-OE.displayName = "TextField";
-var kE = ia({
+ME.displayName = "TextField";
+var NE = ia({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -31307,44 +31307,44 @@ var kE = ia({
].join(" "),
icon: "size-5 shrink-0"
});
-function AE({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, V.useContext)(DE), u = e ?? l.size ?? "medium", d = r != null;
+function PE({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, V.useContext)(jE), u = e ?? l.size ?? "medium", d = r != null;
return /* @__PURE__ */ (0, H.jsx)(bd, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => ra(kE.field, d ? kE.fieldWithAddonSize[u] : kE.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => ra(NE.field, d ? NE.fieldWithAddonSize[u] : NE.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kE.content,
+ className: NE.content,
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: kE.leftSection,
+ className: NE.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, H.jsx)(t, {
- className: kE.icon,
+ className: NE.icon,
"aria-hidden": !0
}) : null, /* @__PURE__ */ (0, H.jsx)(Cd, {
ref: o,
...c,
- className: ra(kE.input, l.inputClassName, a)
+ className: ra(NE.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, H.jsx)(n, {
- className: kE.icon,
+ className: NE.icon,
"aria-hidden": !0
}) : null]
})
});
}
-AE.displayName = "InputBase";
-function jE({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, H.jsx)(OE, {
+PE.displayName = "InputBase";
+function FE({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, H.jsx)(ME, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- e && /* @__PURE__ */ (0, H.jsx)($oe, {
+ e && /* @__PURE__ */ (0, H.jsx)(Yoe, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, H.jsx)(AE, {
+ /* @__PURE__ */ (0, H.jsx)(PE, {
ref: c,
groupRef: l,
placeholder: r,
@@ -31353,15 +31353,15 @@ function jE({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, H.jsx)(ese, {
+ t && /* @__PURE__ */ (0, H.jsx)(Xoe, {
isInvalid: d,
children: t
})
] })
});
}
-jE.displayName = "Input";
-function ME(e) {
+FE.displayName = "Input";
+function IE(e) {
return {
x0: 0,
y0: 0,
@@ -31369,7 +31369,7 @@ function ME(e) {
y1: e.height
};
}
-function NE(e) {
+function LE(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -31377,40 +31377,40 @@ function NE(e) {
y1: Math.round(e.y1)
};
}
-function PE(e) {
+function RE(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function FE(e, t) {
- if (!PE(e)) return {
+function zE(e, t) {
+ if (!RE(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return ME(e);
+ if (t == null || !(t > 0)) return IE(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return NE({
+ return LE({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function tse(e, t) {
- if (!PE(e) || !(t > 0)) return ME(e);
+function Zoe(e, t) {
+ if (!RE(e) || !(t > 0)) return IE(e);
let n = Math.min(e.width, e.height * t);
- return NE({
+ return LE({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function nse(e, t, n) {
- if (!PE(t) || !(n > 0)) return ME(t);
- let r = IE(e, t), i = FE({
+function Qoe(e, t, n) {
+ if (!RE(t) || !(n > 0)) return IE(t);
+ let r = BE(e, t), i = zE({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -31421,8 +31421,8 @@ function nse(e, t, n) {
y1: r.y0 + i.y1
};
}
-function IE(e, t, n = null, r = "width") {
- if (!PE(t)) return {
+function BE(e, t, n = null, r = "width") {
+ if (!RE(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -31431,43 +31431,43 @@ function IE(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return NE({
+ return LE({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function LE(e, t, n, r) {
+function VE(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return NE({
+ return LE({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function RE(e, t, n, r = null) {
- if (!PE(n) || !(t > 0)) return e;
+function HE(e, t, n, r = null) {
+ if (!RE(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return IE({
+ return BE({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function rse(e, t, n, r, i = null) {
+function $oe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return IE(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return BE(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function ise(e, t) {
- return PE(t) ? {
+function ese(e, t) {
+ return RE(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -31479,8 +31479,8 @@ function ise(e, t) {
height: 0
};
}
-function ase(e, t) {
- if (!PE(t)) return {
+function tse(e, t) {
+ if (!RE(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -31490,7 +31490,7 @@ function ase(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function ose(e, t) {
+function nse(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -31499,29 +31499,29 @@ function ose(e, t) {
height: `${t.height / r * 100}%`
};
}
-function zE(e, t, n) {
+function UE(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var sse = {
+var rse = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function BE({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function WE({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = ks();
- return /* @__PURE__ */ (0, H.jsx)(P_, {
+ return /* @__PURE__ */ (0, H.jsx)(M_, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, H.jsx)(Cee, {
+ children: /* @__PURE__ */ (0, H.jsx)(Tee, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${sse[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, H.jsx)(Kg, {
+ className: `flex max-h-full w-full ${rse[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, H.jsx)(Ug, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -31529,7 +31529,7 @@ function BE({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function VE({ children: e }) {
+function GE({ children: e }) {
return /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -31582,7 +31582,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function HE() {
+function KE() {
let e = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
L(e.current);
@@ -31590,8 +31590,8 @@ function HE() {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var cse = .02, UE = 1.08;
-function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var ise = .02, qE = 1.08;
+function JE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, V.useRef)(null), c = (0, V.useRef)(null), [l, u] = (0, V.useState)(!1);
(0, V.useEffect)(() => {
u(!1);
@@ -31602,8 +31602,8 @@ function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: zE(e, n.clientWidth, r.width),
- dy: zE(t, n.clientHeight, r.height)
+ dx: UE(e, n.clientWidth, r.width),
+ dy: UE(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -31621,29 +31621,29 @@ function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(LE(n.box, o.dx, o.dy, r));
+ i(VE(n.box, o.dx, o.dy, r));
return;
}
- i(rse(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i($oe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * cse), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * ise), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(LE(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(VE(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(RE(n, e.key === "-" ? 1 / UE : UE, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(HE(n, e.key === "-" ? 1 / qE : qE, r, t)));
}
- let g = n && r ? ise(IE(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? ese(BE(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -31662,7 +31662,7 @@ function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- PE({
+ RE({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -31701,7 +31701,7 @@ function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(RE(n, e.deltaY > 0 ? UE : 1 / UE, r, t));
+ !n || !r || i(HE(n, e.deltaY > 0 ? qE : 1 / qE, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, H.jsx)("span", {
@@ -31723,7 +31723,7 @@ function WE({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/settings/use-action.ts
-function GE(e = "") {
+function YE(e = "") {
let t = (0, V.useRef)(null), [n, r] = (0, V.useState)(""), [i, a] = (0, V.useState)(e);
(0, V.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -31755,29 +31755,29 @@ function X(e) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var lse = "/api/avatar-choices", KE = "/api/avatar-pick", use = "/api/avatar-code-cover", dse = "/avatar-choice", qE = (e, t) => [
+var ase = "/api/avatar-choices", XE = "/api/avatar-pick", ose = "/api/avatar-code-cover", sse = "/avatar-choice", ZE = (e, t) => [
"avatar-choices",
e,
t
-], JE = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, YE = (e, t, n, r = "") => `${dse}${JE(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), XE = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", fse = (e, t, n) => z(lse + JE(e, t), n), pse = (e) => B(use, { code: e });
-function ZE(e, t, n) {
+], QE = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, $E = (e, t, n, r = "") => `${sse}${QE(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), eD = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", cse = (e, t, n) => z(ase + QE(e, t), n), lse = (e) => B(ose, { code: e });
+function tD(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? nse(e.focus, t, n) : FE(t, n);
+ return e.focus && r ? Qoe(e.focus, t, n) : zE(t, n);
}
-var mse = (e) => e.crop && PE({
+var use = (e) => e.crop && RE({
width: e.width,
height: e.height
});
-async function hse(e, t, n) {
+async function dse(e, t, n) {
if (!("file" in n)) {
- await B(KE, {
+ await B(XE, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${KE}${JE(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${XE}${QE(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -31786,30 +31786,30 @@ async function hse(e, t, n) {
let a = await i.json().catch(() => null);
throw new jt(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function gse(e, t) {
+function fse(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 _se = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function vse(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${_se(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var pse = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function mse(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${pse(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var QE = (e) => e.cast > 1, yse = (e) => QE(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, bse = {
+var nD = (e) => e.cast > 1, hse = (e) => nD(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, gse = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function xse(e) {
+function _se(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 Sse = (e) => `${bse[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (QE(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Cse = 8, wse = 3 / 4;
-function Tse({ kind: e, entityId: t, name: n, onPicked: r }) {
+var vse = (e) => `${gse[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (nD(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), yse = 8, bse = 3 / 4;
+function xse({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, V.useState)(!1);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -31819,17 +31819,17 @@ function Tse({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, H.jsx)(Poe, {
+ children: /* @__PURE__ */ (0, H.jsx)(Aoe, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, H.jsx)(BE, {
+ }), /* @__PURE__ */ (0, H.jsx)(WE, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, H.jsx)(Ese, {
+ children: /* @__PURE__ */ (0, H.jsx)(Sse, {
kind: e,
entityId: t,
name: n,
@@ -31838,33 +31838,33 @@ function Tse({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, V.useRef)(null), o = HE(), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(null), h = qE(e, t), g = (0, V.useRef)(!1), v = Cn({
+function Sse({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, V.useRef)(null), o = KE(), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(null), h = ZE(e, t), g = (0, V.useRef)(!1), v = Cn({
queryKey: h,
- queryFn: ({ signal: n }) => fse(e, t, n),
+ queryFn: ({ signal: n }) => cse(e, t, n),
retryOnMount: !0
});
(0, V.useEffect)(() => () => {
- g.current && _.removeQueries({ queryKey: qE(e, t) });
+ g.current && _.removeQueries({ queryKey: ZE(e, t) });
}, [e, t]);
let y = Fn({
- mutationFn: (n) => hse(e, t, n),
+ mutationFn: (n) => dse(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), b = Fn({
- mutationFn: (e) => pse(e),
+ mutationFn: (e) => lse(e),
onSuccess: (e) => m(e)
});
function x(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && y.mutate({ file: n });
}
- let S = v.data, C = S?.choices ?? [], w = d || (y.error ? R(y.error) : "") || (!p && b.error ? R(b.error) : "") || (v.error ? R(v.error) : ""), T = y.isPending || b.isPending, E = p ? "" : vse(S);
+ let S = v.data, C = S?.choices ?? [], w = d || (y.error ? R(y.error) : "") || (!p && b.error ? R(b.error) : "") || (v.error ? R(v.error) : ""), T = y.isPending || b.isPending, E = p ? "" : mse(S);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, H.jsx)(VE, { children: /* @__PURE__ */ (0, H.jsx)(bE, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, H.jsx)(GE, { children: /* @__PURE__ */ (0, H.jsx)(wE, { className: "size-6" }) }),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -31874,14 +31874,14 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && C.length ? /* @__PURE__ */ (0, H.jsxs)(SE, {
+ }), !p && C.length ? /* @__PURE__ */ (0, H.jsxs)(EE, {
color: "soft",
children: [C.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? yse(p) : gse(n, S)
+ children: p ? hse(p) : fse(n, S)
}),
E ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "neutral",
@@ -31893,14 +31893,14 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: sE,
+ /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: dE,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, H.jsx)(Ose, {
+ }), p ? /* @__PURE__ */ (0, H.jsx)(wse, {
kind: e,
entityId: t,
choice: p,
@@ -31924,7 +31924,7 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": v.isPending || void 0,
"data-skeleton": v.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: v.isPending ? Array.from({ length: Cse }, (e, t) => /* @__PURE__ */ (0, H.jsxs)("span", {
+ children: v.isPending ? Array.from({ length: yse }, (e, t) => /* @__PURE__ */ (0, H.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",
@@ -31937,15 +31937,15 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Sse(n),
+ title: vse(n),
...X(T),
onClick: () => {
T || (n.crop ? m(n) : y.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, H.jsx)(Dse, {
- src: YE(e, t, n.ref, XE(n, n.ref)),
+ /* @__PURE__ */ (0, H.jsx)(Cse, {
+ src: $E(e, t, n.ref, eD(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, H.jsx)("span", {
@@ -31954,15 +31954,15 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, H.jsx)(SE, {
+ children: /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- QE(n) ? /* @__PURE__ */ (0, H.jsx)("span", {
+ nD(n) ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, H.jsxs)(SE, {
+ children: /* @__PURE__ */ (0, H.jsxs)(EE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -31981,7 +31981,7 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -32016,7 +32016,7 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -32036,7 +32036,7 @@ function Ese({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Dse({ src: e, choice: t }) {
+function Cse({ src: e, choice: t }) {
let n = (0, V.useRef)(null), [r, i] = (0, V.useState)(!1);
(0, V.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -32044,7 +32044,7 @@ function Dse({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = mse(t) ? ose(ZE(t, a, wse), a) : null, s = r ? !0 : void 0;
+ }, o = use(t) ? nse(tD(t, a, bse), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, H.jsx)("img", {
@@ -32069,23 +32069,23 @@ function Dse({ 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, V.useState)(o[0]), [l, u] = (0, V.useState)(null), [d, f] = (0, V.useState)(null), p = XE(n, s), m = YE(e, t, s, p), h = HE();
+function wse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, V.useState)(o[0]), [l, u] = (0, V.useState)(null), [d, f] = (0, V.useState)(null), p = eD(n, s), m = $E(e, t, s, p), h = KE();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? ase(d, l) : null;
+ let _ = d && l ? tse(d, l) : null;
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, H.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, H.jsx)(JE, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), PE(e) && f(s === n.ref ? ZE(n, e, 1) : FE(e, 1));
+ u(e), RE(e) && f(s === n.ref ? tD(n, e, 1) : zE(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, H.jsx)("div", {
@@ -32099,7 +32099,7 @@ function Ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: xse(e)
+ children: _se(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -32133,7 +32133,7 @@ function Ose({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
-function $E({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+function rD({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
let a = (0, V.useRef)(null), o = e?.items.length ? e.html : "";
(0, V.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);
@@ -32167,12 +32167,12 @@ function $E({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var kse = {
+var Tse = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function eD({ name: e }) {
- let t = kse[e];
+function iD({ name: e }) {
+ let t = Tse[e];
return /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -32182,19 +32182,19 @@ function eD({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function tD(e, t) {
+function aD(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 nD = (e) => !!e?.isConnected && e.matches(":popover-open");
-function rD(e, t, n, r) {
+var oD = (e) => !!e?.isConnected && e.matches(":popover-open");
+function sD(e, t, n, r) {
let i = (0, V.useRef)(r);
i.current = r, (0, V.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && nD(n.current) ? tD(t.current, n.current) : i.current();
+ t.current && oD(n.current) ? aD(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -32208,17 +32208,17 @@ function rD(e, t, n, r) {
n
]);
}
-function iD({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function cD({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, V.useRef)(null), s = (0, V.useRef)(null), [c, l] = (0, V.useState)(!1), u = (0, V.useRef)(!1), d = (0, V.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, nD(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, oD(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || nD(s.current)) && (s.current.showPopover(), tD(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || oD(s.current)) && (s.current.showPopover(), aD(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 rD(c, o, s, f), (0, V.useEffect)(() => {
+ return sD(c, o, s, f), (0, V.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -32244,7 +32244,7 @@ function iD({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && nD(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && oD(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -32262,16 +32262,16 @@ function iD({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Ase({ following: e, busy: t, onToggle: n, tip: r }) {
+function Ese({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(null), [s, c] = (0, V.useState)(!1), l = (0, V.useRef)(!1), u = () => {
- nD(o.current) && o.current.hidePopover(), c(!1);
+ oD(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || nD(o.current) || (o.current.showPopover(), tD(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || oD(o.current) || (o.current.showPopover(), aD(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return rD(s, i, o, () => c(!1)), (0, V.useEffect)(() => {
- i.current && nD(o.current) && tD(i.current, o.current);
+ return sD(s, i, o, () => c(!1)), (0, V.useEffect)(() => {
+ i.current && oD(o.current) && aD(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, H.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -32280,7 +32280,7 @@ function Ase({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, H.jsx)(eD, { name: "rss" }),
+ /* @__PURE__ */ (0, H.jsx)(iD, { name: "rss" }),
/* @__PURE__ */ (0, H.jsx)("input", {
ref: a,
type: "checkbox",
@@ -32315,7 +32315,7 @@ function Ase({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var aD = [
+var lD = [
"max-w-[calc(100vw-32px)] overflow-y-auto",
"rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",
"transition duration-150 ease-out",
@@ -32323,10 +32323,10 @@ var aD = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), jse = "w-[266px]", Mse = "flex w-full flex-col gap-1 outline-none", oD = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), sD = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), Dse = "w-[266px]", Ose = "flex w-full flex-col gap-1 outline-none", uD = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), dD = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function Nse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function kse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, V.useState)(!1), o = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
@@ -32337,18 +32337,18 @@ function Nse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, H.jsx)(eD, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, H.jsx)(iD, { name: "chevron-down" })
}), /* @__PURE__ */ (0, H.jsx)(qh, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: aD,
+ className: lD,
"data-namepick-menu": "",
children: /* @__PURE__ */ (0, H.jsxs)(fee, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(Bg, {
+ /* @__PURE__ */ (0, H.jsx)(zg, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -32356,31 +32356,31 @@ function Nse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, H.jsxs)(Hg, {
+ children: t.map((e) => /* @__PURE__ */ (0, H.jsxs)(Vg, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, H.jsx)(eD, { name: "check" }), /* @__PURE__ */ (0, H.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, H.jsx)(iD, { name: "check" }), /* @__PURE__ */ (0, H.jsx)("span", { children: e })]
}, e))
}),
/* @__PURE__ */ (0, H.jsx)(vf, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, H.jsx)(Bg, { children: /* @__PURE__ */ (0, H.jsxs)(Hg, {
+ /* @__PURE__ */ (0, H.jsx)(zg, { children: /* @__PURE__ */ (0, H.jsxs)(Vg, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, H.jsx)(eD, { name: "plus" }), /* @__PURE__ */ (0, H.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, H.jsx)(iD, { name: "plus" }), /* @__PURE__ */ (0, H.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var Pse = (e) => e === "studio" || e === "agency", Fse = (e) => e === "performer" || e === "creator", Ise = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function Lse(e) {
+var Ase = (e) => e === "studio" || e === "agency", jse = (e) => e === "performer" || e === "creator", Mse = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function Nse(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function cD(e) {
+function fD(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -32391,13 +32391,13 @@ function cD(e) {
linked: !1
} : null;
}
-function lD(e, t) {
+function pD(e, t) {
let n = f(e, "performer"), r = c(t);
return r && [e.label, n].map(c).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var uD = (e) => ({ site: u(e) });
-function Rse(e, t) {
- let r = cD(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var mD = (e) => ({ site: u(e) });
+function Pse(e, t) {
+ let r = fD(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -32407,7 +32407,7 @@ function Rse(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${lD(e, r)} · ${t}`
+ title: `${pD(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -32418,8 +32418,8 @@ function Rse(e, t) {
if (t === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: lD(e, r),
- mark: uD(e)
+ title: pD(e, r),
+ mark: mD(e)
};
if (e.link_kind === "social") {
let t = n(i);
@@ -32427,7 +32427,7 @@ function Rse(e, t) {
type: "icon",
url: i,
title: e.label || "",
- mark: t ? { brand: t } : uD(e)
+ mark: t ? { brand: t } : mD(e)
};
}
return {
@@ -32435,13 +32435,13 @@ function Rse(e, t) {
url: i,
title: e.label || "",
text: f(e, t, a),
- mark: uD(e)
+ mark: mD(e)
};
});
return [...i, ...o];
}
-var dD = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function zse(e) {
+var hD = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Fse(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -32498,14 +32498,14 @@ function zse(e) {
tags: e.tags
}), t;
}
-function Bse(e) {
+function Ise(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function Vse(e) {
+function Lse(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 ? {
@@ -32516,7 +32516,7 @@ function Vse(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Hse(e) {
+function Rse(e) {
return N({
id: e.id,
hasImage: e.has_image,
@@ -32526,8 +32526,8 @@ function Hse(e) {
focus: e.avatar_focus
});
}
-function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
- let c = Fse(e), l = Pse(e), u = e === "performer" ? zse(n.profile) : [], d = Rse(n, e), f = dD(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, V.useRef)(null), h = (0, V.useRef)(null);
+function zse({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o, helpers: s }) {
+ let c = jse(e), l = Ase(e), u = e === "performer" ? Fse(n.profile) : [], d = Pse(n, e), f = hD(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, V.useRef)(null), h = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, V.useEffect)(() => {
@@ -32540,7 +32540,7 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, H.jsx)(Wse, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Bse, {
kind: e,
name: t,
helpers: s,
@@ -32548,7 +32548,7 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, H.jsx)(Tse, {
+ children: /* @__PURE__ */ (0, H.jsx)(xse, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -32561,14 +32561,14 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, H.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, H.jsx)(Nse, {
+ children: [/* @__PURE__ */ (0, H.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, H.jsx)(kse, {
current: n.canonical_name,
- choices: Lse(n),
+ choices: Nse(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, H.jsx)(Gse, {
+ /* @__PURE__ */ (0, H.jsx)(Vse, {
kind: e,
entity: n,
actions: o
@@ -32576,9 +32576,9 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, H.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, H.jsx)(Yse, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, H.jsx)(Gse, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, H.jsx)(Xse, {
+ f.length || n.feed ? /* @__PURE__ */ (0, H.jsx)(Kse, {
entity: n,
actions: o,
helpers: s
@@ -32587,11 +32587,11 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, H.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, H.jsx)(qse, {
+ children: u.map((e) => /* @__PURE__ */ (0, H.jsx)(Use, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, H.jsx)(Jse, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, H.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, H.jsx)(Wse, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, H.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -32610,7 +32610,7 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
onClick: () => o.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, H.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${i(e.k.slice(0, 1))}</span>${Hse(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${i(e.k.slice(0, 1))}</span>${Rse(e)}` }
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -32618,14 +32618,14 @@ function Use({ kind: e, name: t, entity: n, feedNew: r, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)($E, {
+ }), a ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(rD, {
feedNew: r,
host: a,
wire: s.wireFeedRow,
act: (e, t) => o.feedAction(e, t)
}), a) : null] });
}
-function Wse({ kind: e, name: t, helpers: n, people: r, company: a }) {
+function Bse({ kind: e, name: t, helpers: n, people: r, company: a }) {
let [o] = (0, V.useState)(() => `${n.portraitImg()}<span>${i(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -32634,8 +32634,8 @@ function Wse({ kind: e, name: t, helpers: n, people: r, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function Gse({ kind: e, entity: t, actions: n }) {
- let i = cD(t), a = (e, t) => (r) => {
+function Vse({ kind: e, entity: t, actions: n }) {
+ let i = fD(t), a = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, H.jsx)("a", {
href: r("agency", i.name),
@@ -32644,36 +32644,36 @@ function Gse({ kind: e, entity: t, actions: n }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = Vse(t.name_groups);
+ let e = Lse(t.name_groups);
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, H.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, H.jsx)(eD, { name: "film" }), /* @__PURE__ */ (0, H.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, H.jsx)(iD, { name: "film" }), /* @__PURE__ */ (0, H.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, H.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, H.jsx)(eD, { name: "briefcase" }), /* @__PURE__ */ (0, H.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, H.jsx)(iD, { name: "briefcase" }), /* @__PURE__ */ (0, H.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, H.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, H.jsx)(eD, { name: "id-card" }),
+ /* @__PURE__ */ (0, H.jsx)(iD, { name: "id-card" }),
/* @__PURE__ */ (0, H.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, H.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, H.jsx)(iD, {
+ e.rest > 0 ? /* @__PURE__ */ (0, H.jsx)(cD, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, H.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, H.jsx)(Kse, {
+ children: /* @__PURE__ */ (0, H.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, H.jsx)(Hse, {
label: e.label,
names: e.names
}, t)) })
@@ -32708,25 +32708,25 @@ function Gse({ kind: e, entity: t, actions: n }) {
]
});
}
-function Kse({ label: e, names: t }) {
+function Hse({ label: e, names: t }) {
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [e ? /* @__PURE__ */ (0, H.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, H.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, H.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, H.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function qse({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("dt", { children: [/* @__PURE__ */ (0, H.jsx)(eD, { name: e }), t] }), /* @__PURE__ */ (0, H.jsx)("dd", {
+function Use({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("dt", { children: [/* @__PURE__ */ (0, H.jsx)(iD, { name: e }), t] }), /* @__PURE__ */ (0, H.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function Jse({ tags: e }) {
- let { shown: t, rest: n } = Bse(e);
+function Wse({ tags: e }) {
+ let { shown: t, rest: n } = Ise(e);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, H.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, H.jsx)(iD, {
+ }, e)), n ? /* @__PURE__ */ (0, H.jsx)(cD, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -32741,10 +32741,10 @@ function Jse({ tags: e }) {
})
}) : null] });
}
-function fD({ mark: e }) {
+function gD({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, H.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, H.jsx)(eD, { name: e.brand })
+ children: /* @__PURE__ */ (0, H.jsx)(iD, { name: e.brand })
});
let t = l("globe") + ("site" in e ? `<img src="${i(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, H.jsx)("span", {
@@ -32752,7 +32752,7 @@ function fD({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Yse({ link: e }) {
+function Gse({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, H.jsx)("a", {
"data-link": "icon",
@@ -32761,19 +32761,19 @@ function Yse({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, H.jsx)(fD, { mark: e.mark })
+ children: /* @__PURE__ */ (0, H.jsx)(gD, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, H.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, H.jsx)(fD, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, H.jsx)(gD, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, H.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, H.jsx)(fD, { mark: { globe: !0 } }), /* @__PURE__ */ (0, H.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, H.jsx)(gD, { mark: { globe: !0 } }), /* @__PURE__ */ (0, H.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -32784,14 +32784,14 @@ function Yse({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, H.jsx)(fD, { mark: e.mark }), /* @__PURE__ */ (0, H.jsx)("span", {
+ children: [/* @__PURE__ */ (0, H.jsx)(gD, { mark: e.mark }), /* @__PURE__ */ (0, H.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Xse({ entity: e, actions: t, helpers: n }) {
+function Kse({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, V.useState)(!!e.feed?.following), [a, o] = (0, V.useState)(!1), s = (0, V.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -32809,34 +32809,34 @@ function Xse({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-entry-marks": "",
- children: [dD(e).map((e, t) => /* @__PURE__ */ (0, H.jsxs)("a", {
+ children: [hD(e).map((e, t) => /* @__PURE__ */ (0, H.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, H.jsx)(eD, { name: e.mark }) : /* @__PURE__ */ (0, H.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, H.jsx)(iD, { name: e.mark }) : /* @__PURE__ */ (0, H.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, H.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, H.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, H.jsx)(Ase, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, H.jsx)(Ese, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Ise(r)
+ tip: Mse(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function Zse(e) {
- let { kind: t, name: n } = e, r = Cn(ET(t, n)), i = !!r.data?.error, { actions: a } = e;
+function qse(e) {
+ let { kind: t, name: n } = e, r = Cn(AT(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, V.useLayoutEffect)(() => {
i && a.missing();
}, [a, i]), r.isError ? /* @__PURE__ */ (0, H.jsx)(Vn, {
@@ -32844,12 +32844,12 @@ function Zse(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i ? null : /* @__PURE__ */ (0, H.jsx)(ece, {
+ }) : !r.data || i ? null : /* @__PURE__ */ (0, H.jsx)(Xse, {
...e,
entity: r.data
});
}
-function pD(e) {
+function _D(e) {
let [t, n] = (0, V.useState)({
key: e,
n: 1
@@ -32861,14 +32861,14 @@ function pD(e) {
};
return n(r), r.n;
}
-var Qse = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function $se(e, t) {
+var Jse = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function Yse(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function ece(e) {
- let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = Ln(DT(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || OT(m).length > 0, v = o.media === "photos" && g ? o : yT, [y, b] = (0, V.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, V.useState)(x);
+function Xse(e) {
+ let { kind: n, name: r, entity: i, filters: a, media: o, helpers: s, actions: c, hosts: l } = e, u = n === "agency" || n === "studio", d = n === "agency" ? i.related_performers || [] : n === "studio" && i.labels || [], f = Number(i.id) || 0, p = Ln(jT(n, r, 0, "")).data?.pages[0], m = p && !p.error ? p : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || MT(m).length > 0, v = o.media === "photos" && g ? o : CT, [y, b] = (0, V.useState)("people"), x = new URLSearchParams(Object.entries(a).filter(([, e]) => e)).toString(), [S, C] = (0, V.useState)(x);
S !== x && (C(x), b("videos"));
- let w = u && y === "people" && d.length ? "people" : v.media, [T, E] = (0, V.useState)(0), D = TT(e), O = Cn(D), k = pD(JSON.stringify([D.queryKey, T])), [A] = (0, V.useState)(() => (n === "performer" || n === "studio") && (e.jav || (O.data?.items || []).some((e) => e.is_jav)));
+ let w = u && y === "people" && d.length ? "people" : v.media, [T, E] = (0, V.useState)(0), D = kT(e), O = Cn(D), k = _D(JSON.stringify([D.queryKey, T])), [A] = (0, V.useState)(() => (n === "performer" || n === "studio") && (e.jav || (O.data?.items || []).some((e) => e.is_jav)));
(0, V.useLayoutEffect)(() => {
c.javContext(A);
}, [c, A]);
@@ -32878,26 +32878,26 @@ function ece(e) {
}, [e.layout, A]), M = {
jav: e.jav,
seed: e.seed
- }, N = (0, V.useCallback)((e, t) => wT(n, r, a, M, e, t), [k]), [P, ee] = (0, V.useState)({}), F = v.set, I = P[F] || "", te = Ln({
- ...DT(n, r, F, I),
+ }, N = (0, V.useCallback)((e, t) => OT(n, r, a, M, e, t), [k]), [P, ee] = (0, V.useState)({}), F = v.set, I = P[F] || "", te = Ln({
+ ...jT(n, r, F, I),
enabled: w === "photos"
- }), ne = te.data?.pages[0], re = pD(JSON.stringify(xT(n, r, F, I))), ie = (0, V.useMemo)(() => {
+ }), ne = te.data?.pages[0], re = _D(JSON.stringify(TT(n, r, F, I))), ie = (0, V.useMemo)(() => {
let e = te.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: re,
- codeSets: t.id ? [] : OT(t),
+ codeSets: t.id ? [] : MT(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [te.data, re]), ae = te.refetch, oe = te.fetchNextPage, se = Cn({
- ..._T(f, s.feedRowHtml),
+ ...xT(f, s.feedRowHtml),
enabled: !!f
}), ce = (0, V.useRef)(e.feedRevision);
(0, V.useEffect)(() => {
- ce.current !== e.feedRevision && (ce.current = e.feedRevision, _.invalidateQueries({ queryKey: gT(f) }));
+ ce.current !== e.feedRevision && (ce.current = e.feedRevision, _.invalidateQueries({ queryKey: bT(f) }));
}, [f, e.feedRevision]);
let le = !!O.data;
(0, V.useEffect)(() => {
@@ -32914,7 +32914,7 @@ function ece(e) {
ue.current = !1;
}, []);
let L = (0, V.useCallback)(async () => {
- await _.invalidateQueries({ queryKey: bT(n, r) }), await _.invalidateQueries({ queryKey: [
+ await _.invalidateQueries({ queryKey: wT(n, r) }), await _.invalidateQueries({ queryKey: [
"entity-items",
n,
r
@@ -32945,7 +32945,7 @@ function ece(e) {
enabled: e
})
}),
- onSuccess: (e, t) => _.setQueryData(bT(n, r), (e) => e && {
+ onSuccess: (e, t) => _.setQueryData(wT(n, r), (e) => e && {
...e,
feed: {
...e.feed,
@@ -32993,10 +32993,10 @@ function ece(e) {
let e = await t("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ue.current && await _.invalidateQueries({ queryKey: gT(f) });
+ ue.current && await _.invalidateQueries({ queryKey: bT(f) });
})();
},
- feedAction: vT,
+ feedAction: ST,
avatarPicked: () => {
c.avatarChanged(), L().then(() => {
ue.current && E((e) => e + 1);
@@ -33027,19 +33027,19 @@ function ece(e) {
e === w && !v.set || (b(e === "people" ? "people" : "videos"), c.route(a, e === "photos" ? {
media: "photos",
set: 0
- } : yT));
+ } : CT));
},
setState: (e) => c.route({
...a,
state: e
- }, yT),
+ }, CT),
toggleTag: c.toggleTag,
clearFilter: c.clearFilter,
clearAll: c.clearAll,
setSort: c.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let t = c.reshuffleVideos(), i = TT({
+ let t = c.reshuffleVideos(), i = kT({
kind: n,
name: r,
filters: {
@@ -33053,7 +33053,7 @@ function ece(e) {
await _.fetchQuery(i).catch(() => null);
return;
}
- let t = Qse(), i = await _.fetchInfiniteQuery(DT(n, r, F, t)).catch(() => null);
+ let t = Jse(), i = await _.fetchInfiniteQuery(jT(n, r, F, t)).catch(() => null);
!ue.current || !i?.pages[0] || i.pages[0].error || ee((e) => ({
...e,
[F]: t
@@ -33086,7 +33086,7 @@ function ece(e) {
k: e.k,
label: s.tagLabel(e.k),
n: e.n,
- selected: Gae(a.tag, e.k)
+ selected: Vae(a.tag, e.k)
})), be = h || d.length ? {
label: d.length ? "页面视图" : "媒体类型",
people: d.length ? {
@@ -33112,9 +33112,9 @@ function ece(e) {
if (w === "people") we = `${n === "studio" ? "厂牌" : "艺人"} · ${d.length.toLocaleString()}`;
else if (w === "videos") {
Te = !O.data;
- let e = ST(a.tag).map(s.tagLabel);
+ let e = ET(a.tag).map(s.tagLabel);
we = `视频 · ${(O.data?.total || 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else ne && !ne.error ? we = Se ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : $se(ne, OT(ne).length) : Te = te.isPending;
+ } else ne && !ne.error ? we = Se ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : Yse(ne, MT(ne).length) : Te = te.isPending;
let Ee = (0, V.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -33131,7 +33131,7 @@ function ece(e) {
d
]);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(Use, {
+ /* @__PURE__ */ (0, H.jsx)(zse, {
kind: n,
name: r,
entity: i,
@@ -33141,7 +33141,7 @@ function ece(e) {
actions: he,
helpers: ge
}, T),
- (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(hae, {
+ (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(dae, {
kind: n,
name: r,
view: w,
@@ -33162,7 +33162,7 @@ function ece(e) {
onRetry: () => {
O.refetch();
}
- }) : /* @__PURE__ */ (0, H.jsx)(Doe, {
+ }) : /* @__PURE__ */ (0, H.jsx)(Coe, {
kind: n,
name: r,
view: w,
@@ -33188,21 +33188,21 @@ function ece(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function tce({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Cn(_T(null, n.feedRowHtml)), a = (0, V.useRef)(t);
+function Zse({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Cn(xT(null, n.feedRowHtml)), a = (0, V.useRef)(t);
return (0, V.useEffect)(() => {
- a.current !== t && (a.current = t, _.invalidateQueries({ queryKey: gT(null) }));
- }, [t]), (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)($E, {
+ a.current !== t && (a.current = t, _.invalidateQueries({ queryKey: bT(null) }));
+ }, [t]), (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(rD, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: vT,
+ act: ST,
settled: r.settled
}), e);
}
//#endregion
//#region src/follow-sort.ts
-var mD = [
+var vD = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -33210,7 +33210,7 @@ var mD = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], nce = "checked", hD = {
+], Qse = "checked", yD = {
checked: "desc",
added: "desc",
name: "asc",
@@ -33218,15 +33218,15 @@ var mD = [
source: "asc",
provider: "asc",
status: "asc"
-}, rce = (e) => mD.some(([t]) => t === e);
-function gD(e, t) {
- let n = rce(e) ? e : nce;
+}, $se = (e) => vD.some(([t]) => t === e);
+function bD(e, t) {
+ let n = $se(e) ? e : Qse;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : hD[n]
+ dir: t === "asc" || t === "desc" ? t : yD[n]
};
}
-function _D(e, t, n = 1) {
+function xD(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -33246,15 +33246,15 @@ function _D(e, t, n = 1) {
t
];
}
-function vD(e, t) {
+function SD(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function yD(e, t) {
+function CD(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/react/time.ts
-function bD(e) {
+function wD(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -33263,22 +33263,22 @@ function bD(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var xD = "/api/follow", SD = "/api/follow/credentials", CD = "/api/follow/check", wD = "/api/follow/source", TD = "/api/follow/resolve", ice = "/api/follow/suggest", ED = "/api/follow/author-alias", ace = "/api/follow/credential", DD = "/api/follow/status", oce = "/api/feeds", OD = "/api/feeds/source", sce = "/api/feeds/check", cce = "/api/feeds/lookup", kD = ["follow-manage"], AD = ["follow-manage", "credentials"], lce = ["follow-manage", "check"], uce = ["follow-manage", "resolve"], jD = ["follow-manage", "feeds"], dce = (e) => [
+var TD = "/api/follow", ED = "/api/follow/credentials", DD = "/api/follow/check", OD = "/api/follow/source", kD = "/api/follow/resolve", ece = "/api/follow/suggest", AD = "/api/follow/author-alias", tce = "/api/follow/credential", jD = "/api/follow/status", nce = "/api/feeds", MD = "/api/feeds/source", rce = "/api/feeds/check", ice = "/api/feeds/lookup", ND = ["follow-manage"], PD = ["follow-manage", "credentials"], ace = ["follow-manage", "check"], oce = ["follow-manage", "resolve"], FD = ["follow-manage", "feeds"], sce = (e) => [
"follow-manage",
"suggest",
e
-], MD = [["default", "默认视图"], ["table", "表格视图"]], ND = [
+], ID = [["default", "默认视图"], ["table", "表格视图"]], LD = [
10,
20,
50,
100
-], fce = Object.fromEntries(mD), PD = {
+], cce = Object.fromEntries(vD), RD = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, pce = (e) => MD.some(([t]) => t === e), mce = (e) => ND.includes(Number(e)) ? Number(e) : 20, hce = {
+}, lce = (e) => ID.some(([t]) => t === e), uce = (e) => LD.includes(Number(e)) ? Number(e) : 20, dce = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -33286,25 +33286,25 @@ var xD = "/api/follow", SD = "/api/follow/credentials", CD = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, gce = (e, t) => `按${fce[e]}${hce[e][t === "asc" ? 0 : 1]}排序`;
-function FD(e) {
+}, fce = (e, t) => `按${cce[e]}${dce[e][t === "asc" ? 0 : 1]}排序`;
+function zD(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function _ce(e) {
+function pce(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var ID = (e) => e.last_status === "error" || e.last_status === "unauthorized", LD = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), RD = {
- source: LD,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || LD(e, t),
- status: (e, t) => FD(e) - FD(t) || LD(e, t)
-}, zD = (e) => Date.parse(e || "") || 0, BD = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function VD(e, t = []) {
+var BD = (e) => e.last_status === "error" || e.last_status === "unauthorized", VD = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), HD = {
+ source: VD,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || VD(e, t),
+ status: (e, t) => zD(e) - zD(t) || VD(e, t)
+}, UD = (e) => Date.parse(e || "") || 0, WD = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function GD(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || BD(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || WD(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 BD(i.canonical_name);
+ if (i) return WD(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);
@@ -33312,18 +33312,18 @@ function VD(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 HD(e) {
+function KD(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function UD(e) {
+function qD(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 WD(e) {
+function JD(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -33331,32 +33331,32 @@ function WD(e) {
}
return t.map((e) => n.get(e));
}
-function vce(e, t, n, r = []) {
- let i = WD(e), a = n === hD[t] ? 1 : -1, o = (e) => VD(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = RD[t];
+function mce(e, t, n, r = []) {
+ let i = JD(e), a = n === yD[t] ? 1 : -1, o = (e) => GD(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = HD[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) => zD(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => zD(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => UD(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => UD(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 yce(e, t, n, r = []) {
+function hce(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = VD(e, r);
+ let t = GD(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = RD[t];
+ }), a = HD[t];
if (a) {
- let e = n === hD[t] ? 1 : -1;
+ let e = n === yD[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function GD(e, t, n) {
- let r = vD(e, t), i = yD(n, r), a = (i - 1) * t;
+function YD(e, t, n) {
+ let r = SD(e, t), i = CD(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -33365,91 +33365,91 @@ function GD(e, t, n) {
end: Math.min(a + t, e)
};
}
-function bce(e, t) {
+function gce(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function KD(e, t) {
+function XD(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 qD(e, t, n) {
+function ZD(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var JD = (e) => z(`${xD}?summary=1`, e), YD = (e) => z(SD, e), xce = (e) => z(CD, e), Sce = (e) => z(TD, e), Cce = (e, t) => z(`${ice}?q=${encodeURIComponent(e)}`, t), XD = (e) => B(CD, {
+var QD = (e) => z(`${TD}?summary=1`, e), $D = (e) => z(ED, e), _ce = (e) => z(DD, e), vce = (e) => z(kD, e), yce = (e, t) => z(`${ece}?q=${encodeURIComponent(e)}`, t), eO = (e) => B(DD, {
...e?.length ? { sources: e } : {},
background: !0
-}), wce = (e) => B(TD, {
+}), bce = (e) => B(kD, {
lines: e,
background: !0
-}), ZD = (e, t) => B(wD, {
+}), tO = (e, t) => B(OD, {
action: "enabled",
id: e,
enabled: t
-}), QD = (e) => B(wD, {
+}), nO = (e) => B(OD, {
action: "remove",
id: e
-}), Tce = (e) => B(wD, {
+}), xce = (e) => B(OD, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), $D = (e, t) => B(ED, {
+}), rO = (e, t) => B(AD, {
action: "add",
canonical: e,
alias: t
-}), Ece = (e) => B(ED, {
+}), Sce = (e) => B(AD, {
action: "remove",
alias: e
-}), Dce = (e, t) => B(ace, {
+}), Cce = (e, t) => B(tce, {
provider: e,
values: t
-}), Oce = (e, t) => B(DD, {
+}), wce = (e, t) => B(jD, {
item: e,
to: t
-}), kce = () => z(`${xD}?status=new&limit=1000`);
-async function eO(e) {
- let t = await z(oce, e);
+}), Tce = () => z(`${TD}?status=new&limit=1000`);
+async function iO(e) {
+ let t = await z(nce, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var tO = (e, t, n) => B(OD, {
+var aO = (e, t, n) => B(MD, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), nO = (e, t) => B(OD, {
+}, "POST", n), oO = (e, t) => B(MD, {
action: "remove",
id: e
-}, "POST", t), rO = (e, t) => B(sce, t?.length ? { sources: t } : { all: !0 }, "POST", e), Ace = (e, t) => z(`${cce}?q=${encodeURIComponent(e)}`, t), jce = (e, t, n) => B(OD, {
+}, "POST", t), sO = (e, t) => B(rce, t?.length ? { sources: t } : { all: !0 }, "POST", e), Ece = (e, t) => z(`${ice}?q=${encodeURIComponent(e)}`, t), Dce = (e, t, n) => B(MD, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Mce(e, t = "") {
+async function Oce(e, t = "") {
await Promise.all([
_.fetchQuery({
- queryKey: kD,
- queryFn: () => JD(e)
+ queryKey: ND,
+ queryFn: () => QD(e)
}),
_.fetchQuery({
- queryKey: AD,
- queryFn: () => YD(e)
+ queryKey: PD,
+ queryFn: () => $D(e)
}),
t === "feeds" ? _.fetchQuery({
- queryKey: jD,
- queryFn: () => eO(e)
+ queryKey: FD,
+ queryFn: () => iO(e)
}) : null
]);
}
-function iO(e, t) {
- _.setQueryData(kD, (n) => n && {
+function cO(e, t) {
+ _.setQueryData(ND, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -33457,24 +33457,24 @@ function iO(e, t) {
} : n)
});
}
-function aO(e) {
+function lO(e) {
let t = new Set(e);
- _.setQueryData(kD, (e) => e && {
+ _.setQueryData(ND, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var oO = () => _.invalidateQueries({
- queryKey: kD,
+var uO = () => _.invalidateQueries({
+ queryKey: ND,
exact: !0
});
-function Nce(e) {
+function kce(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 Pce = (e) => (e?.results || []).filter((e) => !e.ok), Fce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", sO = (e) => e.last_checked_at ? bD(e.last_checked_at) : "未检查", Ice = /* @__PURE__ */ new Set([
+var Ace = (e) => (e?.results || []).filter((e) => !e.ok), jce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", dO = (e) => e.last_checked_at ? wD(e.last_checked_at) : "未检查", Mce = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -33487,50 +33487,50 @@ var Pce = (e) => (e?.results || []).filter((e) => !e.ok), Fce = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), cO = (e) => Ice.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Lce = {
+]), fO = (e) => Mce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Nce = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, lO = (e) => !!e.present && !e.missing.length, Rce = [
+}, pO = (e) => !!e.present && !e.missing.length, Pce = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], zce = [
+], Fce = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], uO = {
+], mO = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function dO(e, t) {
+function hO(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-function fO(e, t) {
+function gO(e, t) {
return {
queryKey: [
"follow-feed",
- dO(e, 0),
+ hO(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => z(dO(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => z(hO(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: Rn.keepPreviousData
};
}
-var pO = ["follow-feed", "credentials"], mO = (e) => z(SD, e).catch(() => ({ providers: [] }));
-async function Bce(e, t) {
- let n = fO(e.view, e.revision);
+var _O = ["follow-feed", "credentials"], vO = (e) => z(ED, e).catch(() => ({ providers: [] }));
+async function Ice(e, t) {
+ let n = gO(e.view, e.revision);
_.removeQueries({
queryKey: n.queryKey,
exact: !0
}), _.removeQueries({
- queryKey: pO,
+ queryKey: _O,
exact: !0
}), await Promise.all([_.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -33541,11 +33541,11 @@ async function Bce(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), _.fetchQuery({
- queryKey: pO,
- queryFn: () => mO(t)
+ queryKey: _O,
+ queryFn: () => vO(t)
})]);
}
-function hO(e) {
+function yO(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -33554,10 +33554,10 @@ function hO(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function gO(e, t, n) {
+function bO(e, t, n) {
return [...e].sort((e, r) => h(n, t(e)) - h(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function _O(e) {
+function xO(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -33565,14 +33565,14 @@ function _O(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function Vce(e) {
+function Lce(e) {
let t = _.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = _O(t).find((t) => t.id === e);
+ let n = xO(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -33583,7 +33583,7 @@ function Vce(e) {
}
return null;
}
-function Hce(e) {
+function Rce(e) {
_.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -33593,7 +33593,7 @@ function Hce(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return _O(t).some((t) => t.id === e.id) ? {
+ return xO(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -33603,39 +33603,39 @@ function Hce(e) {
}))
});
}
-function Uce(e, t) {
+function zce(e, t) {
_.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && TO(n, null, e, t));
+ }, (n) => n && kO(n, null, e, t));
}
-function vO(e) {
- return _O(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function SO(e) {
+ return xO(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function yO(e) {
+function CO(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function bO(e) {
+function wO(e) {
let t = /* @__PURE__ */ new Set();
- return _O(e).forEach((e) => yO(e).forEach((e) => t.add(e))), t;
+ return xO(e).forEach((e) => CO(e).forEach((e) => t.add(e))), t;
}
-function xO(e, t) {
+function TO(e, t) {
let n = t === "images" ? "image" : "video";
- return vO(e).find((e) => yO(e).has(n)) || e.primary;
+ return SO(e).find((e) => CO(e).has(n)) || e.primary;
}
-function SO(e) {
- return vO(e).filter((e) => e.playable && e.media_kind === "video");
+function EO(e) {
+ return SO(e).filter((e) => e.playable && e.media_kind === "video");
}
-var CO = {
+var DO = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function Wce({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${CO[s] || CO.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function Bce({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${DO[s] || DO.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -33644,14 +33644,14 @@ function Wce({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function Gce(e) {
+function Vce(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function wO(e, t, n) {
- return e === t ? uO[e] ? {
+function OO(e, t, n) {
+ return e === t ? mO[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -33659,13 +33659,13 @@ function wO(e, t, n) {
dir: "desc"
};
}
-function Kce(e, t, n, r) {
- let i = wO(e, n, r);
+function Hce(e, t, n, r) {
+ let i = OO(e, n, r);
if (!i) return "";
- let a = uO[i.sort];
+ let a = mO[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function TO(e, t, n, r) {
+function kO(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -33695,7 +33695,7 @@ function TO(e, t, n, r) {
})
};
}
-function qce(e, t) {
+function Uce(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -33715,7 +33715,7 @@ function qce(e, t) {
label: e
})), n;
}
-function Jce(e, t) {
+function Wce(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -33730,7 +33730,7 @@ function Jce(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function Yce(e, t) {
+function Gce(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -33739,7 +33739,7 @@ function Yce(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var Xce = [
+var Kce = [
"",
"follow",
"jav",
@@ -33748,7 +33748,7 @@ var Xce = [
"studios",
"flagged",
"manage"
-], Zce = [
+], qce = [
"playlists",
"immerse",
"stats",
@@ -33758,77 +33758,77 @@ var Xce = [
"follow-manage",
"quality"
];
-[...Xce, ...Zce];
-function Qce(e) {
+[...Kce, ...qce];
+function Jce(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
-var EO = (e) => typeof e == "string" ? e : "", DO = (e) => e.aliases;
-function OO(e, t = "") {
- let n = cO(e);
+var AO = (e) => typeof e == "string" ? e : "", jO = (e) => e.aliases;
+function MO(e, t = "") {
+ let n = fO(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${i(t)}"${t ? ` title="${i(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-var kO = (e, t) => VD(e, DO(t));
-function AO(e, t) {
- let { src: n, fallback: r } = UD(e), a = HD(t);
+var NO = (e, t) => GD(e, jO(t));
+function PO(e, t) {
+ let { src: n, fallback: r } = qD(e), a = KD(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${i(a)}</span>`;
let o = r ? ` data-fallbacks="${i(r)}"` : "";
return `<img class="favatar" src="${i(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${o} data-initial="${i(a)}" data-drop-class="favatar none">`;
}
-function jO(e, t, n) {
- let r = DO(n), i = e.credit, a = i?.poster;
+function FO(e, t, n) {
+ let r = jO(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = VD(t, r);
+ let n = GD(t, r);
return {
- author: n || EO(e.author) || EO(e.source_label) || "创作者未取得",
- avatar: AO(t, n),
+ author: n || AO(e.author) || AO(e.source_label) || "创作者未取得",
+ avatar: PO(t, n),
credited: ""
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && VD(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && GD(c, r) || a;
return {
author: l,
- avatar: AO(c, l),
+ avatar: PO(c, l),
credited: i.credited || ""
};
}
-function MO(e, t = e.primary) {
+function IO(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let a = EO(e.primary.version);
+ let a = AO(e.primary.version);
a && n.push(r("version", i(a)));
- let o = EO(t.audio), s = o === "voiced" ? "配音版" : o === "silent" ? "无声版" : "";
+ let o = AO(t.audio), s = o === "voiced" ? "配音版" : o === "silent" ? "无声版" : "";
return s && n.push(r(o, s)), n.join("");
}
-function NO(e, t = e.primary) {
+function LO(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => OO(e, t) || `<span>${i(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => MO(e, t) || `<span>${i(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${i([...n.values()].join("、"))}">另见 ${r}</span>`;
}
-function PO(e, t) {
- let n = EO(e.media_error);
+function RO(e, t) {
+ let n = AO(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var FO = (e) => e.published_at ? bD(e.published_at) : "时间未取得", IO = /* @__PURE__ */ new Set(), LO = [], RO = null;
-function zO() {
- if (RO = null, !LO.length) return;
- let e = LO.splice(0, 200);
+var zO = (e) => e.published_at ? wD(e.published_at) : "时间未取得", BO = /* @__PURE__ */ new Set(), VO = [], HO = null;
+function UO() {
+ if (HO = null, !VO.length) return;
+ let e = VO.splice(0, 200);
t("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), LO.length && (RO = setTimeout(zO, 800));
+ }).catch(() => {}), VO.length && (HO = setTimeout(UO, 800));
}
-function $ce(e, t, n, r) {
+function Yce(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- IO.has(i) || (IO.add(i), LO.push(t === null ? {
+ BO.has(i) || (BO.add(i), VO.push(t === null ? {
item: e,
width: n,
height: r
@@ -33837,15 +33837,15 @@ function $ce(e, t, n, r) {
width: n,
height: r,
media: t
- }), RO ||= setTimeout(zO, 800));
+ }), HO ||= setTimeout(UO, 800));
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var ele = (e) => Number(e) > 0;
-function tle(e) {
+var Xce = (e) => Number(e) > 0;
+function Zce(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function nle({ src: e, width: t, height: n, onLearn: r }) {
+function Qce({ src: e, width: t, height: n, onLearn: r }) {
let [i, a] = (0, V.useState)(!1);
return i ? null : /* @__PURE__ */ (0, H.jsx)("img", {
src: e,
@@ -33861,8 +33861,8 @@ function nle({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function rle(e) {
- let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = xO(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => $ce(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? SO(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = Wce({
+function $ce(e) {
+ let { group: t, authorSources: n, media: r, context: a, selected: s, selectMode: c, busy: u, failure: d, helpers: f, actions: p } = e, m = TO(t, r), h = r === "images", g = h ? (m.media_items || []).find((e) => e.media_kind === "image") : void 0, _ = g?.thumb_url || m.thumb_url || "", v = g && g.thumb_url === _ ? g : null, y = !v || _ === m.thumb_url, b = h ? [v, y ? m : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, x = h && !b && _ ? (e, t) => Yce(m.id, v ? v.index : null, e, t) : void 0, S = r === "videos" ? EO(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = Bce({
cover: _,
coverFace: (g?.thumb_url ? g : m).face,
stack: t.stack,
@@ -33878,7 +33878,7 @@ function rle(e) {
D.current = E.onPointerLeave;
let O = (0, V.useCallback)((e) => {
e && (e._stopHover = () => D.current());
- }, []), k = jO(m, n, a), A = FO(m), j = (m.tags || []).slice(0, 3), M = PO(m, a), N = NO(t, m), P = m.status === "saved", ee = (e) => {
+ }, []), k = FO(m, n, a), A = zO(m), j = (m.tags || []).slice(0, 3), M = RO(m, a), N = LO(t, m), P = m.status === "saved", ee = (e) => {
if (!e.target.closest("[data-media-tag]")) {
if (c || e.shiftKey || e.ctrlKey || e.metaKey) {
e.preventDefault(), p.toggleSelection(m.id, e.shiftKey);
@@ -33912,14 +33912,14 @@ function rle(e) {
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, H.jsx)(nle, {
+ _ ? /* @__PURE__ */ (0, H.jsx)(Qce, {
src: _,
width: b?.width,
height: b?.height,
onLearn: x
}, _) : /* @__PURE__ */ (0, H.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: OO(m.resource_provider || m.provider) }
+ dangerouslySetInnerHTML: { __html: MO(m.resource_provider || m.provider) }
}),
w.faces.length > 1 ? /* @__PURE__ */ (0, H.jsx)("div", {
"data-mix-faces": "",
@@ -33938,7 +33938,7 @@ function rle(e) {
"data-media-badge": "",
title: m.provider_label,
"aria-label": `来源:${m.provider_label || ""}`,
- dangerouslySetInnerHTML: { __html: OO(m.provider) }
+ dangerouslySetInnerHTML: { __html: MO(m.provider) }
}),
/* @__PURE__ */ (0, H.jsx)("span", {
"data-media-check": "",
@@ -33947,7 +33947,7 @@ function rle(e) {
},
dangerouslySetInnerHTML: { __html: l("check") }
}),
- ele(m.duration) ? /* @__PURE__ */ (0, H.jsx)("span", {
+ Xce(m.duration) ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-media-duration": "",
children: o(m.duration)
}) : null,
@@ -34029,7 +34029,7 @@ function rle(e) {
/* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: MO(t, m) + i(m.title) }
+ dangerouslySetInnerHTML: { __html: IO(t, m) + i(m.title) }
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
"data-follow-byline": "",
@@ -34040,7 +34040,7 @@ function rle(e) {
}), /* @__PURE__ */ (0, H.jsx)("time", {
dateTime: m.published_at || "",
title: A,
- children: tle(A)
+ children: Zce(A)
})]
}),
k.credited ? /* @__PURE__ */ (0, H.jsx)("div", {
@@ -34076,10 +34076,10 @@ function rle(e) {
]
});
}
-var ile = (0, V.memo)(rle), BO = () => /* @__PURE__ */ (0, H.jsx)("span", {
+var ele = (0, V.memo)($ce), WO = () => /* @__PURE__ */ (0, H.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), VO = rr("settings"), ale = rr("chevron-down"), ole = rr("history"), sle = [[
+}), tle = rr("settings"), nle = rr("chevron-down"), rle = rr("history"), ile = [[
"fixed",
"固定比例",
"layout-grid"
@@ -34088,19 +34088,19 @@ var ile = (0, V.memo)(rle), BO = () => /* @__PURE__ */ (0, H.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function cle(e, t, n) {
+function ale(e, t, n) {
return (0, V.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = gO([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = gO(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = bO([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = bO(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = gO([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = bO([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -34108,7 +34108,7 @@ function cle(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => bO(e).forEach((e) => {
+ r.forEach((e) => wO(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -34123,7 +34123,7 @@ function cle(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => bO(e).has(_)),
+ visible: r.filter((e) => wO(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -34136,15 +34136,15 @@ function cle(e, t, n) {
n
]);
}
-function lle(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = fO(t, r), o = Ln(a), s = Cn({
- queryKey: pO,
- queryFn: ({ signal: e }) => mO(e)
- }), c = (0, V.useMemo)(() => hO(o.data), [o.data]), l = (0, V.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, V.useMemo)(() => ({
+function ole(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = gO(t, r), o = Ln(a), s = Cn({
+ queryKey: _O,
+ queryFn: ({ signal: e }) => vO(e)
+ }), c = (0, V.useMemo)(() => yO(o.data), [o.data]), l = (0, V.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, V.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = cle(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, h = (0, V.useMemo)(() => Qce(d.visible.flatMap(_O).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = ale(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, h = (0, V.useMemo)(() => Jce(d.visible.flatMap(xO).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
(0, V.useEffect)(() => {
p && i.loaded(h);
}, [
@@ -34152,7 +34152,7 @@ function lle(e) {
h,
i
]);
- let g = ule(e, !!c);
+ let g = sle(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, H.jsx)(Vn, {
message: m(o.error),
onRetry: () => void o.refetch()
@@ -34160,12 +34160,12 @@ function lle(e) {
let _ = (e) => i.route({
...t,
...e
- }), v = qce({
+ }), v = Uce({
...t,
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, kO(t, u)])),
+ authors: new Map([...d.authorSources].map(([e, t]) => [e, NO(t, u)])),
providers: d.providers,
works: d.workNames
}), y = t.status ? d.counts[t.status] || 0 : d.allCount, b = d.sources.some((e) => e.can_backfill);
@@ -34185,7 +34185,7 @@ function lle(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
- leadingIcon: VO,
+ leadingIcon: tle,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -34202,20 +34202,20 @@ function lle(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, H.jsx)(dle, {
+ /* @__PURE__ */ (0, H.jsx)(cle, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => _({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, H.jsx)(fle, {
+ /* @__PURE__ */ (0, H.jsx)(lle, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => _({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, H.jsx)(ple, {
+ /* @__PURE__ */ (0, H.jsx)(ule, {
facets: d,
view: t,
total: y,
@@ -34223,9 +34223,9 @@ function lle(e) {
props: e,
route: _
}),
- /* @__PURE__ */ (0, H.jsx)(mle, {
+ /* @__PURE__ */ (0, H.jsx)(dle, {
conditions: v,
- onDrop: (e) => i.route(Jce(t, e)),
+ onDrop: (e) => i.route(Wce(t, e)),
onClear: () => _({
author: "",
provider: "",
@@ -34233,11 +34233,11 @@ function lle(e) {
tags: []
})
}),
- d.broken.length ? /* @__PURE__ */ (0, H.jsx)(hle, {
+ d.broken.length ? /* @__PURE__ */ (0, H.jsx)(fle, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, H.jsx)(gle, {
+ /* @__PURE__ */ (0, H.jsx)(ple, {
pending: f,
facets: d,
data: c,
@@ -34254,13 +34254,13 @@ function lle(e) {
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, H.jsx)(ale, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, H.jsx)(nle, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, b ? /* @__PURE__ */ (0, H.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
- leadingIcon: g.olderBusy ? void 0 : ole,
+ leadingIcon: g.olderBusy ? void 0 : rle,
"data-follow-older": "",
"aria-busy": g.busy || void 0,
onClick: () => void g.start(!0),
@@ -34270,14 +34270,14 @@ function lle(e) {
}), /* @__PURE__ */ (0, H.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-follow-backfill": "",
- children: Gce(d.sources)
+ children: Vce(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function ule(e, t) {
+function sle(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, V.useState)(0), [o, s] = (0, V.useState)(!1), [c, l] = (0, V.useState)(""), [u, d] = (0, V.useState)(!1), f = (0, V.useRef)(!1), p = (0, V.useRef)(null), h = (0, V.useRef)({
helpers: n,
actions: r
@@ -34292,7 +34292,7 @@ function ule(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => z(CD, e),
+ read: (e) => z(DD, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -34317,7 +34317,7 @@ function ule(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await B(CD, e ? {
+ let n = await B(DD, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -34335,7 +34335,7 @@ function ule(e, t) {
olderBusy: c === "older" || u && o
};
}
-function dle({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function cle({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -34352,16 +34352,16 @@ function dle({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
onClick: () => i(r),
children: [/* @__PURE__ */ (0, H.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: AO(a, kO(a, n)) }
+ dangerouslySetInnerHTML: { __html: PO(a, NO(a, n)) }
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-follow-name": "",
- children: kO(a, n)
+ children: NO(a, n)
})]
}, r);
})
}) : null;
}
-function fle({ rows: e, pressed: t, props: n, onPick: r }) {
+function lle({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -34382,7 +34382,7 @@ function fle({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+function ule({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let { helpers: o, actions: s } = i, c = (0, V.useRef)(null), u = (0, V.useRef)(null), d = (0, V.useRef)(null), f = (0, V.useRef)(null), p = (0, V.useRef)(null), m = (0, V.useRef)(null), h = !!e.mediaCounts.images || t.media === "images", g = pa(c, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = pa(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
(0, V.useEffect)(() => {
o.wireDrag(p.current), o.wireDrag(m.current), o.wireScroller(m.current);
@@ -34440,7 +34440,7 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l(i) }
}, e);
})
- }), /* @__PURE__ */ (0, H.jsx)(BO, {})] }) : null, /* @__PURE__ */ (0, H.jsxs)("div", {
+ }), /* @__PURE__ */ (0, H.jsx)(WO, {})] }) : null, /* @__PURE__ */ (0, H.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -34449,7 +34449,7 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [Rce.map(([e, n]) => /* @__PURE__ */ (0, H.jsx)("button", {
+ children: [Pce.map(([e, n]) => /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -34460,7 +34460,7 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), y ? /* @__PURE__ */ (0, H.jsx)(BO, {}) : null]
+ }, e)), y ? /* @__PURE__ */ (0, H.jsx)(WO, {}) : null]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
ref: m,
"data-entity-tags": "",
@@ -34473,13 +34473,13 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: OO(t) }
+ dangerouslySetInnerHTML: { __html: MO(t) }
}, t)),
- v.length && e.tagRows.length ? /* @__PURE__ */ (0, H.jsx)(BO, {}) : null,
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, H.jsx)(WO, {}) : null,
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, H.jsxs)(la, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${Yce(e.groups, n)}`,
+ "data-tag-cat": `r34-${Gce(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [o.tagLabel(n), r ? /* @__PURE__ */ (0, H.jsx)("span", {
@@ -34497,11 +34497,11 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, H.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(tT, { onPress: s.shuffle }),
- b ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(eT, {
+ /* @__PURE__ */ (0, H.jsx)(aT, { onPress: s.shuffle }),
+ b ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(iT, {
label: "图片布局",
value: i.photoLayout,
- options: sle,
+ options: ile,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
@@ -34518,7 +34518,7 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: l("captions-off") }
})]
})] }) : null,
- zce.map(([e, n]) => {
+ Fce.map(([e, n]) => {
let r = t.sort === e, i = rr(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
@@ -34526,9 +34526,9 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": Kce(e, n, t.sort, t.dir) || void 0,
+ "aria-label": Hce(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = wO(e, t.sort, t.dir);
+ let n = OO(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, H.jsx)(i, { className: "size-3.5" }) : null]
@@ -34538,7 +34538,7 @@ function ple({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function mle({ conditions: e, onDrop: t, onClear: n }) {
+function dle({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -34563,7 +34563,7 @@ function mle({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function hle({ count: e, onManage: t }) {
+function fle({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -34572,12 +34572,12 @@ function hle({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${l("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function gle({ pending: e, facets: t, data: n, context: r, props: i }) {
+function ple({ pending: e, facets: t, data: n, context: r, props: i }) {
let { view: a, helpers: o } = i, s = a.media === "images", c = Bn(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, H.jsx)(_le, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, H.jsx)(mle, {
facets: t,
data: n,
context: r,
@@ -34586,39 +34586,39 @@ function gle({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function _le({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, helpers: o, actions: s } = r, c = ble(r), l = i ? {
+function mle({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, helpers: o, actions: s } = r, c = _le(r), l = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, u;
return u = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, H.jsx)(ile, {
+ return /* @__PURE__ */ (0, H.jsx)(ele, {
group: t,
authorSources: l,
media: a.media,
context: n,
- selected: r.selected.has(HO(t, a)),
+ selected: r.selected.has(GO(t, a)),
selectMode: r.selectMode,
- busy: c.busy.get(HO(t, a)) || "",
- failure: c.failures.get(HO(t, a)) || "",
+ busy: c.busy.get(GO(t, a)) || "",
+ failure: c.failures.get(GO(t, a)) || "",
helpers: o,
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, H.jsx)(vle, { data: t }), /* @__PURE__ */ (0, H.jsx)("div", {
+ }) : /* @__PURE__ */ (0, H.jsx)(hle, { data: t }), /* @__PURE__ */ (0, H.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
children: u
});
}
-function HO(e, t) {
- return xO(e, t.media).id;
+function GO(e, t) {
+ return TO(e, t.media).id;
}
-function vle({ data: e }) {
+function hle({ data: e }) {
let t = (e.groups || []).length ? he("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? he("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : he("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-follow-empty": "",
@@ -34626,22 +34626,22 @@ function vle({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var yle = {
+var gle = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function ble(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, V.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, V.useState)(() => /* @__PURE__ */ new Map()), c = fO(t, n).queryKey, l = (e, t, n) => n((n) => {
+function _le(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, V.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, V.useState)(() => /* @__PURE__ */ new Map()), c = gO(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- _.setQueryData(c, (r) => r && TO(r, t, e, n));
+ _.setQueryData(c, (r) => r && kO(r, t, e, n));
}, d = () => void _.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = hO(_.getQueryData(c));
+ let t = yO(_.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -34649,13 +34649,13 @@ function ble(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = Fn({
- mutationFn: ({ id: e, to: t }) => B(DD, {
+ mutationFn: ({ id: e, to: t }) => B(jD, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(yle[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await B(DD, {
+ u(t, n), d(), r.toast(gle[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await B(jD, {
item: t,
to: i
}), u(t, i), d();
@@ -34700,16 +34700,16 @@ function ble(e) {
}
//#endregion
//#region src/react/components/empty-state.tsx
-var xle = {
+var vle = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function UO({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function KO({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${xle[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${vle[i]}`,
children: [
a ? /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
@@ -34737,3619 +34737,3051 @@ function UO({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
]
});
}
-//#endregion
-//#region src/react/components/loading-dots.tsx
-function WO({ label: e, inline: t = !1 }) {
- let n = /* @__PURE__ */ (0, H.jsxs)("span", {
- "aria-hidden": !0,
- className: "inline-flex items-center gap-1",
- children: [
- /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
- /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
- ]
- });
- return t ? /* @__PURE__ */ (0, H.jsxs)("span", {
- role: "status",
- className: "inline-flex items-center gap-2",
- children: [n, e]
- }) : /* @__PURE__ */ (0, H.jsxs)("p", {
- role: "status",
- className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
- children: [n, e]
- });
-}
-//#endregion
-//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var GO = {
- md: {
- box: "size-4",
- glyph: "size-4",
- label: "text-body-medium",
- gap: "gap-2"
- },
- sm: {
- box: "size-3.5",
- glyph: "size-3.5",
- label: "text-body-2-medium",
- gap: "gap-1.5"
- }
-};
-function KO({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = GO[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, H.jsx)("span", {
- "aria-hidden": !0,
- className: ra("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? ra("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : ra("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
- children: /* @__PURE__ */ (0, H.jsx)("svg", {
- viewBox: "0 0 16 16",
- fill: "none",
- className: s.glyph,
- children: r ? /* @__PURE__ */ (0, H.jsx)("path", {
- d: "M4.5 8H8H11.5",
- stroke: "white",
- strokeWidth: "2",
- strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, H.jsx)("path", {
- d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
- stroke: "white",
- strokeWidth: "2",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- pathLength: 1,
- className: "animate-check-draw"
- }) : null
- })
- });
+var qO = {
+ video: ["视频", "play"],
+ image: ["图片", "pics"],
+ archive: ["压缩包", "file-archive"],
+ audio: ["音频", "file-audio"],
+ url: ["网址快捷方式", "globe"],
+ other: ["其它文件", "hard-drive"]
+}, yle = (e) => qO[e.junk_kind || "other"] || qO.other;
+function ble(e) {
+ return e === "dismissed" ? {
+ operation: "reconsider-junk",
+ label: "重新判断",
+ glyph: "rotate-ccw"
+ } : {
+ operation: "dismiss-junk",
+ label: "不是垃圾",
+ glyph: "check"
+ };
}
-//#endregion
-//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function qO({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = GO[n];
- return /* @__PURE__ */ (0, H.jsx)(_d, {
- ref: r,
- ...i,
- className: (t) => ra("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(KO, {
- state: e,
- size: n
- }), t != null && /* @__PURE__ */ (0, H.jsx)("span", {
- className: ra(a.label, "text-text-primary"),
- children: t
- })] })
+var JO = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), xle = (e, t) => [
+ "junk-queue",
+ e.view,
+ e.kind,
+ t
+];
+function Sle({ kind: e, view: t }) {
+ let n = new URLSearchParams({
+ limit: "200",
+ status: t
});
+ return e && n.set("kind", e), n.toString();
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var JO = (0, V.createContext)({});
-//#endregion
-//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function YO(e) {
- let t = (0, V.useRef)(null);
- return t.current === null && (t.current = e()), t.current;
-}
-//#endregion
-//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var XO = typeof window < "u" ? V.useLayoutEffect : V.useEffect, ZO = /* @__PURE__ */ (0, V.createContext)(null), QO = (0, V.createContext)({
- transformPagePoint: (e) => e,
- isStatic: !1,
- reducedMotion: "never"
-});
-//#endregion
-//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function $O(e, t) {
- if (typeof e == "function") return e(t);
- e != null && (e.current = t);
-}
-function Sle(...e) {
- return (t) => {
- let n = !1, r = e.map((e) => {
- let r = $O(e, t);
- return !n && typeof r == "function" && (n = !0), r;
- });
- if (n) return () => {
- for (let t = 0; t < r.length; t++) {
- let n = r[t];
- typeof n == "function" ? n() : $O(e[t], null);
- }
- };
+async function Cle(e, t) {
+ let n = await z(`/api/ads?${Sle(e)}`, t);
+ return {
+ ...n,
+ items: n.items || []
};
}
-function Cle(...e) {
- return V.useCallback(Sle(...e), e);
-}
-//#endregion
-//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var wle = class extends V.Component {
- getSnapshotBeforeUpdate(e) {
- let t = this.props.childRef.current;
- if (AS(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = AS(e) && e.offsetWidth || 0, r = AS(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
- }
- return null;
- }
- componentDidUpdate() {}
- render() {
- return this.props.children;
- }
-};
-function Tle({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
- let o = (0, V.useId)(), s = (0, V.useRef)(null), c = (0, V.useRef)({
- width: 0,
- height: 0,
- top: 0,
- left: 0,
- right: 0,
- bottom: 0,
- direction: "ltr"
- }), { nonce: l } = (0, V.useContext)(QO), u = Cle(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
- return (0, V.useInsertionEffect)(() => {
- let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
- if (t || a === !1 || !s.current || !e || !u) return;
- let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
- s.current.dataset.motionPopId = o;
- let y = document.createElement("style");
- l && (y.nonce = l);
- let b = i ?? document.head;
- return b.appendChild(y), y.sheet && y.sheet.insertRule(`
- [data-motion-pop-id="${o}"] {
- position: absolute !important;
- width: ${e}px !important;
- height: ${u}px !important;
- ${_}px !important;
- ${v}px !important;
- }
- `), () => {
- s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
- };
- }, [t]), (0, H.jsx)(wle, {
- isPresent: t,
- childRef: s,
- sizeRef: c,
- pop: a,
- children: a === !1 ? e : V.cloneElement(e, { ref: u })
- });
-}
//#endregion
-//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Ele = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = YO(Dle), d = (0, V.useId)(), f = (0, V.useRef)(n), p = (0, V.useRef)(r);
- XO(() => {
- f.current = n, p.current = r;
- });
- let m = !0, h = (0, V.useMemo)(() => (m = !1, {
- id: d,
- initial: t,
- isPresent: n,
- custom: i,
- onExitComplete: (e) => {
- u.set(e, !0);
- for (let e of u.values()) if (!e) return;
- r && r();
- },
- register: (e) => (u.set(e, !1), () => {
- u.delete(e), !f.current && !u.size && p.current?.();
- })
- }), [
- n,
- u,
- r
- ]);
- return a && m && (h = { ...h }), (0, V.useMemo)(() => {
- u.forEach((e, t) => u.set(t, !1));
- }, [n]), V.useEffect(() => {
- !n && !u.size && r && r();
- }, [n]), e = (0, H.jsx)(Tle, {
- pop: o === "popLayout",
- isPresent: n,
- anchorX: s,
- anchorY: c,
- root: l,
- children: e
- }), (0, H.jsx)(ZO.Provider, {
- value: h,
- children: e
+//#region src/react/junk-queue/junk-card.tsx
+function YO({ name: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("svg", {
+ viewBox: "0 0 24 24",
+ "aria-hidden": "true",
+ children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
});
-};
-function Dle() {
- return /* @__PURE__ */ new Map();
-}
-//#endregion
-//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function ek(e = !0) {
- let t = (0, V.useContext)(ZO);
- if (t === null) return [!0, null];
- let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, V.useId)();
- (0, V.useEffect)(() => {
- if (e) return i(a);
- }, [e]);
- let o = (0, V.useCallback)(() => e && r && r(a), [
- a,
- r,
- e
- ]);
- return !n && r ? [!1, o] : [!0];
-}
-function Ole() {
- return tk((0, V.useContext)(ZO));
-}
-function tk(e) {
- return e === null || e.isPresent;
-}
-//#endregion
-//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var nk = (e) => e.key || "";
-function rk(e) {
- let t = [];
- return V.Children.forEach(e, (e) => {
- (0, V.isValidElement)(e) && t.push(e);
- }), t;
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var ik = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = ek(o), f = (0, V.useMemo)(() => rk(e), [e]), p = o && !u ? [] : f.map(nk), m = (0, V.useRef)(!0), h = (0, V.useRef)(f), g = YO(() => /* @__PURE__ */ new Map()), _ = (0, V.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, V.useState)(f), [b, x] = (0, V.useState)(f);
- XO(() => {
- m.current = !1, h.current = f;
- for (let e = 0; e < b.length; e++) {
- let t = nk(b[e]);
- p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
- }
- }, [
- b,
- p.length,
- p.join("-")
- ]);
- let S = [];
- if (f !== v) {
- let e = [...f];
- for (let t = 0; t < b.length; t++) {
- let n = b[t], r = nk(n);
- p.includes(r) || (e.splice(t, 0, n), S.push(n));
+var XO = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function wle({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
+ let c = (0, V.useRef)(null), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), p = e.junk_kind || "other", [m, h] = yle(e), g = String(e.name || ""), _ = ble(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]") || XO(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
+ }, x = (t) => {
+ if (t.stopPropagation(), XO(r, t)) {
+ t.preventDefault(), o.toggleSelection(e.id, t.shiftKey);
+ return;
}
- return a === "wait" && S.length && (e = S), x(rk(e)), y(f), null;
- }
- let { forceRender: C } = (0, V.useContext)(JO);
- return (0, H.jsx)(H.Fragment, { children: b.map((e) => {
- let v = nk(e), y = o && !u ? !1 : f === b || p.includes(v);
- return (0, H.jsx)(Ele, {
- isPresent: y,
- initial: !m.current || n ? void 0 : !1,
- custom: t,
- presenceAffectsLayout: i,
- mode: a,
- root: l,
- onExitComplete: y ? void 0 : () => {
- if (_.current.has(v)) return;
- if (g.has(v)) _.current.add(v), g.set(v, !0);
- else return;
- let e = !0;
- g.forEach((t) => {
- t || (e = !1);
- }), e && (C?.(), x(h.current), o && d?.(), r && r());
- },
- anchorX: s,
- anchorY: c,
- children: e
- }, v);
- }) });
-}, ak = (0, V.createContext)({ strict: !1 }), ok = {
- animation: [
- "animate",
- "variants",
- "whileHover",
- "whileTap",
- "exit",
- "whileInView",
- "whileFocus",
- "whileDrag"
+ c.current && o.open(e, c.current);
+ }, S = (t) => {
+ t.preventDefault(), t.stopPropagation(), l !== "reveal" && (u("reveal"), f(""), o.reveal(e).then(f, () => {}).finally(() => u("")));
+ }, C = (t) => (n) => {
+ n.preventDefault(), n.stopPropagation(), l !== t && (u(t), f(""), o.operate(e, t).catch(() => {}).finally(() => u("")));
+ }, w = (e) => l === e ? {
+ "aria-busy": !0,
+ "aria-disabled": !0
+ } : {}, T = y ? /* @__PURE__ */ (0, H.jsx)("button", {
+ type: "button",
+ "data-junk-title": "",
+ "data-junk-open": "",
+ "data-middle-truncate": "",
+ title: g,
+ onClick: x,
+ dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
+ }) : /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-title": "",
+ "data-middle-truncate": "",
+ title: g,
+ dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
+ });
+ return /* @__PURE__ */ (0, H.jsxs)("article", {
+ ref: c,
+ "data-media-card": "",
+ "data-variant": "junk",
+ "data-junk-card": "",
+ "data-id": e.id,
+ "data-junk-kind": p,
+ "data-selected": n ? "" : void 0,
+ onClick: b,
+ children: [
+ /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-media-pic": "",
+ style: { "--card-ratio": "1.7777777777777777" },
+ children: [
+ /* @__PURE__ */ (0, H.jsxs)("span", {
+ "data-media-glyph": "",
+ children: [/* @__PURE__ */ (0, H.jsx)(YO, { name: h }), /* @__PURE__ */ (0, H.jsx)("b", { children: m })]
+ }),
+ v ? /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-media-art": "thumb",
+ dangerouslySetInnerHTML: { __html: `<img class="poster" src="${v}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
+ }) : null,
+ /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-media-badge": "",
+ dangerouslySetInnerHTML: { __html: a.badgeHtml(e.location || "", e.cost || "") }
+ }),
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-media-check": "",
+ children: /* @__PURE__ */ (0, H.jsx)(YO, { name: "check" })
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-junk-meta": "",
+ children: [T, /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-junk-facts": "",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-who": "",
+ children: m
+ }),
+ e.why ? /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-why": "",
+ children: e.why
+ }) : null,
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-size": "",
+ children: Number(e.size) > 0 ? s(Number(e.size)) : "大小未知"
+ })
+ ]
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("footer", {
+ "data-junk-actions": "",
+ children: [
+ /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ "data-junk-action": "reveal",
+ title: "在资源管理器中显示",
+ "aria-label": "在资源管理器中显示",
+ ...w("reveal"),
+ onClick: S,
+ children: [l === "reveal" ? /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-spinner": "",
+ dangerouslySetInnerHTML: { __html: Ne("正在定位") }
+ }) : /* @__PURE__ */ (0, H.jsx)(YO, { name: "folder-open" }), /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-label": "",
+ children: "打开位置"
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ "data-junk-action": _.operation,
+ title: _.label,
+ "aria-label": _.label,
+ ...w(_.operation),
+ onClick: C(_.operation),
+ children: [/* @__PURE__ */ (0, H.jsx)(YO, { name: _.glyph }), /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-label": "",
+ children: _.label
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ "data-junk-action": "dispose",
+ title: "移入回收站",
+ "aria-label": "移入回收站",
+ ...w("dispose"),
+ onClick: C("dispose"),
+ children: [/* @__PURE__ */ (0, H.jsx)(YO, { name: "trash" }), /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-label": "",
+ children: "移入回收站"
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-junk-state": "",
+ "aria-live": "polite",
+ children: d
+ })
+ ]
+ })
+ ]
+ });
+}
+var Tle = (0, V.memo)(wle);
+({
+ medium: "h-9 rounded-2lg p-2 text-body-medium",
+ small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
+}).medium;
+//#endregion
+//#region src/junk-queue.ts
+var ZO = [
+ [
+ "",
+ "全部",
+ "layout-grid"
],
- exit: ["exit"],
- drag: ["drag", "dragControls"],
- focus: ["whileFocus"],
- hover: [
- "whileHover",
- "onHoverStart",
- "onHoverEnd"
+ [
+ "video",
+ "视频",
+ "play"
],
- tap: [
- "whileTap",
- "onTap",
- "onTapStart",
- "onTapCancel"
+ [
+ "image",
+ "图片",
+ "pics"
],
- pan: [
- "onPan",
- "onPanStart",
- "onPanSessionStart",
- "onPanEnd"
+ [
+ "archive",
+ "压缩包",
+ "file-archive"
],
- inView: [
- "whileInView",
- "onViewportEnter",
- "onViewportLeave"
+ [
+ "audio",
+ "音频",
+ "file-audio"
],
- layout: ["layout", "layoutId"]
-}, sk = !1;
-function kle() {
- if (sk) return;
- let e = {};
- for (let t in ok) e[t] = { isEnabled: (e) => ok[t].some((t) => !!e[t]) };
- bC(e), sk = !0;
-}
-function ck() {
- return kle(), $re();
+ [
+ "url",
+ "网址",
+ "globe"
+ ],
+ [
+ "other",
+ "其它",
+ "hard-drive"
+ ]
+];
+function QO(e = "", t = "pending") {
+ let n = new URLSearchParams();
+ e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
+ let r = n.toString();
+ return `/junk-files${r ? `?${r}` : ""}`;
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Ale(e) {
- let t = ck();
- for (let n in e) t[n] = {
- ...t[n],
- ...e[n]
+function Ele(e) {
+ return e === "dismissed" ? {
+ view: "pending",
+ label: "返回待判断",
+ glyph: "rotate-ccw",
+ href: QO("", "pending")
+ } : {
+ view: "dismissed",
+ label: "已排除",
+ glyph: "eye-off",
+ href: QO("", "dismissed")
};
- bC(t);
}
+var Dle = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var jle = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function lk(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || jle.has(e);
+//#region src/react/components/collection-summary.tsx
+function $O({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-collection-summary": "",
+ className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
+ max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
+ dark:bg-background-primary-default`,
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-2",
+ children: [/* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, H.jsx)("strong", {
+ className: "text-display-4-medium tabular-nums text-text-primary",
+ children: r ? /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-skeleton": "count",
+ "aria-hidden": !0,
+ className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
+ }) : t
+ })]
+ }), n ? /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-regular text-text-secondary",
+ children: n
+ }) : null]
+ });
}
//#endregion
-//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
-var Mle = /* @__PURE__ */ _t({ default: () => uk }), uk, Nle = ht((() => {
- throw uk = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
-})), dk = (e) => !lk(e);
-function fk(e) {
- typeof e == "function" && (dk = (t) => t.startsWith("on") ? !lk(t) : e(t));
+//#region src/react/junk-queue/junk-count.tsx
+function ek({ name: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("svg", {
+ viewBox: "0 0 24 24",
+ "aria-hidden": "true",
+ children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
+ });
}
-try {
- fk((Nle(), xt(Mle)).default);
-} catch {}
-function Ple(e, t, n) {
- let r = {};
- for (let i in e) (i !== "values" || typeof e.values != "object") && (Xx(e[i]) || (dk(i) || n === !0 && lk(i) || !t && !lk(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
- return r;
+function tk({ scope: e, count: t }) {
+ return t ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [" ", /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-count-badge": `junk:${e}`,
+ children: t.toLocaleString()
+ })] }) : null;
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Fle({ children: e, isValidProp: t, ...n }) {
- t && fk(t);
- let r = (0, V.useContext)(QO);
- n = {
- ...r,
- ...n
- }, n.transition = Vx(n.transition, r.transition), n.isStatic = YO(() => n.isStatic);
- let i = (0, V.useMemo)(() => n, [
- JSON.stringify(n.transition),
- n.transformPagePoint,
- n.reducedMotion,
- n.skipAnimations
- ]);
- return (0, H.jsx)(QO.Provider, {
- value: i,
- children: e
+function Ole({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = KE(), a = (0, V.useRef)(null), { kind: o, view: s } = e, c = pa(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? ZO.map(([e]) => JO(t, e)).join(",") : ""}`), l = Ele(s), u = (e) => {
+ let t = e.target.closest("a");
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || QO()));
+ }, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-junk-count": "",
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ "data-junk-summary": "",
+ "aria-live": "polite",
+ children: /* @__PURE__ */ (0, H.jsx)($O, {
+ label: Dle(s),
+ figure: d,
+ pending: !t && !n,
+ flush: !0
+ })
+ }), /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-junk-filters-frame": "",
+ "data-filter-glass": "",
+ "data-glass-pane": "",
+ children: [/* @__PURE__ */ (0, H.jsx)("span", {
+ ref: a,
+ "data-view-glide": "",
+ "aria-hidden": "true"
+ }), /* @__PURE__ */ (0, H.jsxs)("nav", {
+ ref: i,
+ "data-junk-filters": "",
+ "aria-label": "垃圾文件分类",
+ onClick: u,
+ onPointerLeave: c.leave,
+ children: [
+ ZO.map(([e, n, r]) => /* @__PURE__ */ (0, H.jsxs)("a", {
+ href: QO(e, s),
+ "data-junk-kind-link": e,
+ "aria-current": e === o ? "page" : void 0,
+ onPointerEnter: c.hover,
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(ek, { name: r }),
+ n,
+ /* @__PURE__ */ (0, H.jsx)(tk, {
+ scope: e,
+ count: t ? JO(t, e) : 0
+ })
+ ]
+ }, e || "all")),
+ /* @__PURE__ */ (0, H.jsx)("i", {
+ "data-junk-divider": "",
+ "aria-hidden": "true"
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("a", {
+ href: l.href,
+ "data-junk-view-link": l.view,
+ "aria-current": s === "dismissed" ? "page" : void 0,
+ onPointerEnter: s === "dismissed" ? void 0 : c.hover,
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(ek, { name: l.glyph }),
+ l.label,
+ /* @__PURE__ */ (0, H.jsx)(tk, {
+ scope: "dismissed",
+ count: Number(t?.dismissed_total || 0)
+ })
+ ]
+ })
+ ]
+ })]
+ })]
});
}
//#endregion
-//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var pk = /* @__PURE__ */ (0, V.createContext)({});
-//#endregion
-//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function Ile(e, t) {
- if (pC(e)) {
- let { initial: t, animate: n } = e;
- return {
- initial: t === !1 || uC(t) ? t : void 0,
- animate: uC(n) ? n : void 0
+//#region src/react/junk-queue/junk-queue-page.tsx
+var kle = rr("check"), Ale = (e, t) => e[1] === t.view && e[2] === t.kind;
+function jle(e) {
+ let t = {
+ kind: e.kind,
+ view: e.view
+ }, n = Cn({
+ queryKey: xle(t, e.revision),
+ queryFn: ({ signal: e }) => Cle(t, e),
+ placeholderData: (e, n) => n && Ale(n.queryKey, t) ? e : void 0
+ });
+ (0, V.useEffect)(() => {
+ n.isFetching || e.settled?.(e.revision);
+ }, [n.isFetching, e.revision]);
+ let r = Mle(e.countRow), i = n.isPending;
+ (0, V.useLayoutEffect)(() => {
+ let t = e.countRow;
+ t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
+ }, [e.countRow, i]), (0, V.useLayoutEffect)(() => {
+ r && n.data && we(r, "junk");
+ }, [r, n.data]);
+ let { navigate: a } = e.actions, o = r ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(Ole, {
+ route: t,
+ page: n.data,
+ failed: n.isError && !n.data,
+ onNavigate: a
+ }), r) : null;
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [o, /* @__PURE__ */ (0, H.jsx)(Nle, {
+ props: e,
+ data: n.data,
+ pending: i,
+ error: n.data ? null : n.error,
+ retry: () => void n.refetch()
+ }, `${t.view}:${t.kind}`)] });
+}
+function Mle(e) {
+ let [t, n] = (0, V.useState)(null);
+ return (0, V.useLayoutEffect)(() => {
+ if (!e) return;
+ let t = e.ownerDocument.createElement("div");
+ return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
+ t.remove(), n(null);
};
- }
- return e.inherit === !1 ? {} : t;
+ }, [e]), t;
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Lle(e) {
- let { initial: t, animate: n } = Ile(e, (0, V.useContext)(pk));
- return (0, V.useMemo)(() => ({
- initial: t,
- animate: n
- }), [mk(t), mk(n)]);
+function Nle({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = Bn(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, V.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, V.useCallback)(() => {
+ d?.() !== !1 && c((e) => e + 1);
+ }, [d]);
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ "data-junk-body": "",
+ "data-grid-reveal": a.fading ? "" : void 0,
+ children: [a.layer, (() => {
+ if (n) return null;
+ if (!t) return /* @__PURE__ */ (0, H.jsx)(Vn, {
+ message: m(r),
+ onRetry: i
+ });
+ if (!l.length) {
+ let t = e.view === "dismissed";
+ return /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: kle,
+ title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
+ children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
+ });
+ }
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ "data-media-grid": "",
+ "data-junk-grid": "",
+ "data-select-mode": e.selectMode ? "" : void 0,
+ children: u.map((t) => /* @__PURE__ */ (0, H.jsx)(Tle, {
+ item: t,
+ view: e.view,
+ selected: e.selected.has(t.id),
+ selectMode: e.selectMode,
+ helpers: e.helpers,
+ actions: e.actions
+ }, t.id))
+ }), u.length < l.length ? /* @__PURE__ */ (0, H.jsx)(Ple, { onMore: f }, s) : null] });
+ })()]
+ });
}
-function mk(e) {
- return Array.isArray(e) ? e.join(" ") : e;
+function Ple({ onMore: e }) {
+ let t = (0, V.useRef)(null);
+ return (0, V.useEffect)(() => {
+ let n = t.current;
+ if (!n || typeof IntersectionObserver > "u") return;
+ let r = new IntersectionObserver((t) => {
+ t.some((e) => e.isIntersecting) && e();
+ }, { rootMargin: "320px" });
+ return r.observe(n), () => r.disconnect();
+ }, [e]), /* @__PURE__ */ (0, H.jsx)("div", {
+ ref: t,
+ "data-load-more": "",
+ onClick: e,
+ dangerouslySetInnerHTML: { __html: xe("继续载入中…") }
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var hk = () => ({
- style: {},
- transform: {},
- transformOrigin: {},
- vars: {}
-});
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function gk(e, t, n) {
- for (let r in t) !Xx(t[r]) && !GC(r, n) && (e[r] = t[r]);
+//#region src/react/library-processing/library-processing.ts
+var nk = "/api/library-processing", rk = ["library-processing"], ik = (e) => z(nk, e);
+async function ak(e) {
+ await _.fetchQuery({
+ queryKey: rk,
+ queryFn: () => ik(e)
+ });
}
-function Rle({ transformTemplate: e }, t) {
- return (0, V.useMemo)(() => {
- let n = hk();
- return BC(n, t, e), Object.assign({}, n.vars, n.style);
- }, [t]);
+var Fle = 2e3, Ile = 1e4, ok = "连接中断,正在重新读取处理进度";
+function Lle(e, t) {
+ return e?.status === "running" ? Fle : t ? Ile : !1;
}
-function zle(e, t) {
- let n = e.style || {}, r = {};
- return gk(r, n, e), Object.assign(r, Rle(e, t)), r;
+var Rle = {
+ reading_local: "读取本地资料",
+ querying_metadata: "查询外部资料",
+ fetching_cover: "采集缺失封面",
+ writing_candidates: "保存资料候选"
+}, sk = {
+ querying_metadata: "没有资料",
+ fetching_cover: "没有封面"
+};
+function zle(e) {
+ let t = Object.entries(e).filter(([e, t]) => sk[e] && t > 0).map(([e, t]) => `${sk[e]} ${t} 部`);
+ return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Ble(e, t) {
- let n = {}, r = zle(e, t);
- return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
+function ck(e) {
+ let t = Rle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+ return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var _k = () => ({
- ...hk(),
- attrs: {}
-});
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Vle(e, t, n, r) {
- let i = (0, V.useMemo)(() => {
- let n = _k();
- return qC(n, t, YC(r), e.transformTemplate, e.style), {
- ...n.attrs,
- style: { ...n.style }
- };
- }, [t]);
- if (e.style) {
- let t = {};
- gk(t, e.style, e), i.style = {
- ...t,
- ...i.style
- };
+function Ble(e) {
+ let t = e.issue_preview || [];
+ return t.length ? {
+ label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
+ items: t.map((e, t) => ({
+ key: `${e.asset_id ?? "source"}-${t}`,
+ label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
+ href: e.asset_id ? `/item/${e.asset_id}` : "",
+ note: e.message,
+ hint: e.path || ""
+ })),
+ log: e.issues_log || ""
+ } : null;
+}
+var lk = "peach.library-processing.announced", Vle = 120;
+function Hle(e, t, n) {
+ if (e.status !== "complete") return;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Vle;
+ if (!(!n && !r)) {
+ try {
+ if (e.job_id && localStorage.getItem(lk) === e.job_id) return;
+ e.job_id && localStorage.setItem(lk, e.job_id);
+ } catch {}
+ t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
- return i;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var Hle = [
- "animate",
- "circle",
- "defs",
- "desc",
- "ellipse",
- "g",
- "image",
- "line",
- "filter",
- "marker",
- "mask",
- "metadata",
- "path",
- "pattern",
- "polygon",
- "polyline",
- "rect",
- "stop",
- "switch",
- "symbol",
- "svg",
- "text",
- "tspan",
- "use",
- "view"
-];
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function vk(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(Hle.indexOf(e) > -1 || /[A-Z]/u.test(e));
+//#region src/react/components/menu-dialog.tsx
+function uk(e) {
+ let t = Yw("hover");
+ return /* @__PURE__ */ (0, H.jsx)(Ug, {
+ ...e,
+ ref: t
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function Ule(e, t, n, { latestValues: r }, i, a = !1, o) {
- let s = (o ?? vk(e) ? Vle : Ble)(t, r, i, e), c = Ple(t, typeof e == "string", a), l = e === V.Fragment ? {} : {
- ...c,
- ...s,
- ref: n
- }, { children: u } = t, d = (0, V.useMemo)(() => Xx(u) ? u.get() : u, [u]);
- return (0, V.createElement)(e, {
- ...l,
- children: d
+//#region src/react/boardui/components/base/buttons/link-button.tsx
+var dk = ia({
+ base: [
+ "inline-flex items-center justify-center gap-1 whitespace-nowrap",
+ "font-sans select-none cursor-pointer rounded-sm",
+ "underline-offset-3 hover:underline",
+ "transition-colors duration-150 ease",
+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
+ "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
+ ].join(" "),
+ size: {
+ medium: "text-body-medium",
+ small: "text-body-medium",
+ xs: "text-caption-1-semibold"
+ },
+ icon: {
+ medium: "size-5 shrink-0",
+ small: "size-[18px] shrink-0",
+ xs: "size-3.5 shrink-0"
+ },
+ variant: {
+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
+ secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
+ }
+});
+function fk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = ra(dk.base, dk.size[t], dk.variant[e], a), l = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, H.jsx)(n, {
+ className: dk.icon[t],
+ "aria-hidden": !0
+ }) : null,
+ i != null && /* @__PURE__ */ (0, H.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, H.jsx)(r, {
+ className: dk.icon[t],
+ "aria-hidden": !0
+ }) : null
+ ] });
+ if (s.href !== void 0) {
+ let { ref: e, href: t, ...n } = s;
+ return /* @__PURE__ */ (0, H.jsx)("a", {
+ ref: e,
+ href: o ? void 0 : t,
+ "aria-disabled": o || void 0,
+ className: c,
+ ...n,
+ children: l
+ });
+ }
+ let { ref: u, type: d = "button", ...f } = s;
+ return /* @__PURE__ */ (0, H.jsx)("button", {
+ ref: u,
+ type: d,
+ disabled: o,
+ className: c,
+ ...f,
+ children: l
});
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function Wle({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
- return {
- latestValues: Gle(n, r, i, e),
- renderState: t()
- };
+//#region src/management.ts
+var Ule = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Wle = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Gle = NT({
+ padding: "none",
+ bordered: "line",
+ className: "overflow-hidden"
+}), Kle = {
+ split: "min-w-0 p-6",
+ stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
+}, qle = {
+ split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
+ stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
+}, Jle = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Yle = {
+ neutral: "border-border-button-default bg-card-footer",
+ error: "border-border-error-default bg-background-tertiary-error"
+}, Xle = NT({
+ padding: "none",
+ radius: "surface",
+ bordered: "line",
+ className: "overflow-hidden"
+}), pk = "border-t border-border-button-default p-4 first:border-t-0";
+function mk({ tone: e = "neutral", status: t, children: n }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: `${Jle} ${Yle[e]}`,
+ children: [t ? /* @__PURE__ */ (0, H.jsx)("p", {
+ className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
+ children: t
+ }) : null, n]
+ });
}
-function Gle(e, t, n, r) {
- let i = {}, a = r(e, {});
- for (let e in a) i[e] = Ew(a[e]);
- let { initial: o, animate: s } = e, c = pC(e), l = mC(e);
- t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
- let u = n ? n.initial === !1 : !1;
- u ||= o === !1;
- let d = u ? s : o;
- if (d && typeof d != "boolean" && !lC(d)) {
- let t = Array.isArray(d) ? d : [d];
- for (let n = 0; n < t.length; n++) {
- let r = Kx(e, t[n]);
- if (r) {
- let { transitionEnd: e, transition: t, ...n } = r;
- for (let e in n) {
- let t = n[e];
- if (Array.isArray(t)) {
- let e = u ? t.length - 1 : 0;
- t = t[e];
- }
- t !== null && (i[e] = t);
- }
- for (let t in e) i[t] = e[t];
+function hk({ id: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("h2", {
+ id: e,
+ className: "text-title-2-medium! m-0! text-text-primary",
+ children: t
+ });
+}
+function gk({ id: e, gap: t = "none", children: n }) {
+ return /* @__PURE__ */ (0, H.jsx)("h3", {
+ id: e,
+ className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
+ children: n
+ });
+}
+function _k({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+ return /* @__PURE__ */ (0, H.jsxs)("section", {
+ id: r,
+ "aria-label": t,
+ "aria-labelledby": n,
+ ...o,
+ className: `${Gle} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ className: Kle[e],
+ children: a
+ }), i ? /* @__PURE__ */ (0, H.jsx)("footer", {
+ className: qle[e],
+ children: i
+ }) : null]
+ });
+}
+//#endregion
+//#region src/react/components/path-line.tsx
+function Zle({ className: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("svg", {
+ "aria-hidden": !0,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ stroke: "currentColor",
+ strokeWidth: 2,
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ className: e,
+ children: /* @__PURE__ */ (0, H.jsx)("use", { href: "#i-folder-open" })
+ });
+}
+var Qle = "打开文件管理器失败,请重试";
+function vk({ path: e, prefix: t, className: n, onRevealed: r }) {
+ let [i, a] = (0, V.useState)(!1), [o, s] = (0, V.useState)(""), c = (0, V.useRef)(!0);
+ (0, V.useEffect)(() => () => {
+ c.current = !1;
+ }, []);
+ let l = async () => {
+ if (!i) {
+ a(!0), s("");
+ try {
+ await B("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
+ } catch (e) {
+ c.current && s(e instanceof jt ? e.message : Qle);
+ } finally {
+ c.current && a(!1);
}
}
- }
- return i;
+ };
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex items-center justify-between gap-2",
+ children: [/* @__PURE__ */ (0, H.jsxs)("p", {
+ className: ra("min-w-0 break-all", n),
+ children: [t, e]
+ }), /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: Zle,
+ size: "small",
+ className: "shrink-0",
+ "aria-label": "在资源管理器中显示",
+ onClick: () => void l(),
+ ...X(i)
+ })]
+ }), o ? /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-caption-1-regular text-text-error-primary",
+ children: o
+ }) : null]
+ });
}
-var yk = (e) => (t, n) => {
- let r = (0, V.useContext)(pk), i = (0, V.useContext)(ZO), a = () => Wle(e, t, r, i);
- return n ? a() : YO(a);
-}, Kle = /*@__PURE__*/ yk({
- scrapeMotionValuesFromProps: KC,
- createRenderState: hk
-}), qle = /*@__PURE__*/ yk({
- scrapeMotionValuesFromProps: XC,
- createRenderState: _k
-}), Jle = Symbol.for("motionComponentSymbol");
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Yle(e, t, n) {
- let r = (0, V.useRef)(n);
- (0, V.useInsertionEffect)(() => {
- r.current = n;
+//#region src/react/components/loading-dots.tsx
+function yk({ label: e, inline: t = !1 }) {
+ let n = /* @__PURE__ */ (0, H.jsxs)("span", {
+ "aria-hidden": !0,
+ className: "inline-flex items-center gap-1",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, H.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ ]
+ });
+ return t ? /* @__PURE__ */ (0, H.jsxs)("span", {
+ role: "status",
+ className: "inline-flex items-center gap-2",
+ children: [n, e]
+ }) : /* @__PURE__ */ (0, H.jsxs)("p", {
+ role: "status",
+ className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
+ children: [n, e]
});
- let i = (0, V.useRef)(null);
- return (0, V.useCallback)((n) => {
- n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
- let a = r.current;
- if (typeof a == "function") {
- if (n) {
- let e = a(n);
- typeof e == "function" && (i.current = e);
- } else i.current ? (i.current(), i.current = null) : a(n);
- } else a && (a.current = n);
- }, [t]);
}
//#endregion
-//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var bk = (0, V.createContext)({});
+//#region src/react/components/progress.tsx
+var bk = 100, xk = .4;
+function Sk({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * bk;
+ return /* @__PURE__ */ (0, H.jsxs)("svg", {
+ role: "progressbar",
+ "aria-label": e,
+ "aria-valuemin": 0,
+ "aria-valuemax": n,
+ "aria-valuenow": t,
+ viewBox: `0 0 ${bk} 1`,
+ preserveAspectRatio: "none",
+ className: "h-1.5 w-full overflow-hidden rounded-full",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)("rect", {
+ width: bk,
+ height: 1,
+ className: "fill-background-tertiary-default"
+ }),
+ /* @__PURE__ */ (0, H.jsx)("rect", {
+ width: a(t),
+ height: 1,
+ className: "fill-border-focus-ring"
+ }),
+ r.map((e) => /* @__PURE__ */ (0, H.jsx)("rect", {
+ x: a(e),
+ width: xk,
+ height: 1,
+ className: "fill-background-secondary-default"
+ }, e))
+ ]
+ });
+}
//#endregion
-//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
-function xk(e) {
- return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
+//#region src/react/components/task-progress.tsx
+function Ck({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-task-progress": !0,
+ className: r ? "flex flex-col gap-1.5" : NT({
+ variant: "outlined",
+ padding: "none",
+ className: "flex flex-col gap-1.5 px-4 py-3.5"
+ }),
+ children: n && n > 0 ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Sk, {
+ label: e,
+ value: t,
+ max: n
+ }), /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e
+ })] }) : /* @__PURE__ */ (0, H.jsx)(yk, { label: e })
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Xle(e, t, n, r, i, a) {
- let { visualElement: o } = (0, V.useContext)(pk), s = (0, V.useContext)(ak), c = (0, V.useContext)(ZO), l = (0, V.useContext)(QO), u = l.reducedMotion, d = l.skipAnimations, f = (0, V.useRef)(null), p = (0, V.useRef)(!1);
- r ||= s.renderer, !f.current && r && (f.current = r(e, {
- visualState: t,
- parent: o,
- props: n,
- presenceContext: c,
- blockInitialAnimation: c ? c.initial === !1 : !1,
- reducedMotionConfig: u,
- skipAnimations: d,
- isSVG: a
- }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, V.useContext)(bk);
- m && !m.projection && i && (m.type === "html" || m.type === "svg") && Zle(f.current, n, i, h);
- let g = (0, V.useRef)(!1);
- (0, V.useInsertionEffect)(() => {
- m && g.current && m.update(n, c);
+//#region src/react/boardui/components/application/settings/settings-rows.tsx
+function wk({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ className: ra("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ children: t
});
- let _ = n[$x], v = (0, V.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
- return XO(() => {
- p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
- }), (0, V.useEffect)(() => {
- m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
- window.MotionHandoffMarkAsComplete?.(_);
- }), !1), m.enteringChildren = void 0);
- }), m;
}
-function Zle(e, t, n, r) {
- let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Sk(e.parent)), e.projection.setOptions({
- layoutId: i,
- layout: a,
- alwaysMeasureLayout: !!o || s && xk(s),
- visualElement: e,
- animationType: typeof a == "string" ? a : "both",
- initialPromotionConfig: r,
- crossfade: d,
- layoutScroll: c,
- layoutRoot: l,
- layoutAnchor: u
+function Tk({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("p", {
+ className: ra("w-full px-3 text-body-2-medium text-text-secondary", e),
+ children: t
});
}
-function Sk(e) {
- if (e) return e.options.allowProjection === !1 ? Sk(e.parent) : e.projection;
+function Ek({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: ra("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex min-w-0 flex-col",
+ children: [/* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-regular text-text-primary",
+ children: e
+ }), t && /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ })]
+ }), n]
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/index.mjs
-function Ck(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Ale(r);
- let a = n ? n === "svg" : vk(e), o = a ? qle : Kle;
- function s(n, s) {
- let c, l = {
- ...(0, V.useContext)(QO),
- ...n,
- layoutId: Qle(n)
- }, { isStatic: u } = l, d = Lle(n), f = o(n, u);
- if (!u && typeof window < "u") {
- $le(l, r);
- let t = eue(l);
- c = t.MeasureLayout, d.visualElement = Xle(e, f, l, i, t.ProjectionNode, a);
- }
- return (0, H.jsxs)(pk.Provider, {
- value: d,
- children: [c && d.visualElement ? (0, H.jsx)(c, {
- visualElement: d.visualElement,
- ...l
- }) : null, Ule(e, n, Yle(f, d.visualElement, s), f, u, t, a)]
- });
- }
- s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
- let c = (0, V.forwardRef)(s);
- return c[Jle] = e, c;
+//#region src/react/settings/section.tsx
+function Dk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+ let a = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [n ? /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex w-full flex-wrap items-center justify-between gap-2",
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ className: "min-w-0 flex-1",
+ children: /* @__PURE__ */ (0, H.jsx)(Tk, { children: e })
+ }), n]
+ }) : /* @__PURE__ */ (0, H.jsx)(Tk, { children: e }), /* @__PURE__ */ (0, H.jsx)(wk, { children: i })] });
+ return r ? /* @__PURE__ */ (0, H.jsx)("form", {
+ id: t,
+ "aria-label": e,
+ noValidate: !0,
+ onSubmit: r,
+ className: "flex w-full flex-col gap-2",
+ children: a
+ }) : /* @__PURE__ */ (0, H.jsx)("section", {
+ id: t,
+ "aria-label": e,
+ className: "flex w-full flex-col gap-2",
+ children: a
+ });
}
-function Qle({ layoutId: e }) {
- let t = (0, V.useContext)(JO).id;
- return t && e !== void 0 ? t + "-" + e : e;
+function Ok({ children: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "flex flex-col",
+ children: e
+ });
}
-function $le(e, t) {
- (0, V.useContext)(ak).strict;
+function kk({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
+ children: t
+ }) : /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "flex flex-col gap-4 py-4 pr-3",
+ children: t
+ });
}
-function eue(e) {
- let { drag: t, layout: n } = ck();
- if (!t && !n) return {};
- let r = {
- ...t,
- ...n
- };
- return {
- MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
- ProjectionNode: r.ProjectionNode
- };
+function Ak({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
+ children: [e ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
+ children: e
+ }) : null, t]
+ });
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function tue(e, t) {
- if (typeof Proxy > "u") return Ck;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Ck(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Ck(a, void 0, e, t)), n.get(a)) });
+function jk({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("p", {
+ role: e,
+ className: "text-body-2-regular text-text-secondary",
+ children: t
+ });
}
-//#endregion
-//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var nue = (e, t) => t.isSVG ?? vk(e) ? new gie(t) : new uie(t, { allowProjection: e !== V.Fragment }), rue = class extends SC {
- constructor(e) {
- super(e), e.animationState ||= xie(e);
- }
- updateAnimationControlsSubscription() {
- let { animate: e } = this.node.getProps();
- lC(e) && (this.unmountControls = e.subscribe(this.node));
- }
- mount() {
- this.updateAnimationControlsSubscription();
- }
- update() {
- let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
- e !== t && this.updateAnimationControlsSubscription();
- }
- unmount() {
- this.node.animationState.reset(), this.unmountControls?.();
- }
-}, iue = 0, aue = {
- animation: { Feature: rue },
- exit: { Feature: class extends SC {
- constructor() {
- super(...arguments), this.id = iue++, this.isExitComplete = !1;
- }
- update() {
- if (!this.node.presenceContext) return;
- let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
- if (!this.node.animationState || e === n) return;
- if (e && n === !1) {
- if (this.isExitComplete) {
- let { initial: e, custom: t } = this.node.getProps();
- if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
- let n = qx(this.node, e, t);
- if (n) {
- let { transition: e, transitionEnd: t, ...r } = n;
- for (let e in r) this.node.getValue(e)?.jump(r[e]);
- }
- }
- this.node.animationState.reset(), this.node.animationState.animateChanges();
- } else this.node.animationState.setActive("exit", !1);
- this.isExitComplete = !1;
- return;
- }
- let r = this.node.animationState.setActive("exit", !e);
- t && !e && r.then(() => {
- this.isExitComplete = !0, t(this.id);
- });
- }
- mount() {
- let { register: e, onExitComplete: t } = this.node.presenceContext || {};
- t && t(this.id), e && (this.unmount = e(this.id));
- }
- unmount() {}
- } }
-};
-//#endregion
-//#region node_modules/framer-motion/dist/es/events/event-info.mjs
-function wk(e) {
- return { point: {
- x: e.pageX,
- y: e.pageY
- } };
+function Mk({ children: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("p", {
+ role: "alert",
+ className: "text-body-2-regular text-text-error-primary",
+ children: e
+ });
+}
+function Nk({ children: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-medium text-text-primary",
+ children: e
+ });
+}
+function Pk({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, H.jsx)(fk, {
+ href: e,
+ target: "_blank",
+ rel: "noopener noreferrer",
+ size: "small",
+ leadingIcon: n,
+ trailingIcon: hE,
+ className: "min-w-0 max-w-full",
+ children: /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "min-w-0 whitespace-normal break-all",
+ children: t
+ })
+ });
+}
+function Fk({ children: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("dl", {
+ className: "flex flex-col",
+ children: e
+ });
+}
+function Ik({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
+ children: [/* @__PURE__ */ (0, H.jsx)("dt", {
+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, H.jsx)("dd", {
+ className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
+ children: t
+ })]
+ });
+}
+function Lk({ summary: e, defaultOpen: t = !1, children: n }) {
+ let r = (0, V.useId)(), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(!1), [s, c] = (0, V.useState)(t);
+ return /* @__PURE__ */ (0, H.jsxs)("details", {
+ ref: (e) => {
+ i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
+ },
+ children: [/* @__PURE__ */ (0, H.jsxs)("summary", {
+ "aria-expanded": s,
+ "aria-controls": r,
+ onClick: (e) => {
+ e.preventDefault(), !(!i.current || !a.current) && (je(i.current, a.current, !s), c(!s));
+ },
+ className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
+ children: [/* @__PURE__ */ (0, H.jsx)(cE, {
+ "aria-hidden": !0,
+ className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
+ }), e]
+ }), /* @__PURE__ */ (0, H.jsx)("div", {
+ ref: a,
+ id: r,
+ inert: !s,
+ children: /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "flex flex-col gap-2 pt-3",
+ children: n
+ })
+ })]
+ });
+}
+function Rk({ name: e }) {
+ return /* @__PURE__ */ (0, H.jsx)("svg", {
+ "aria-hidden": !0,
+ viewBox: "0 0 24 24",
+ fill: "none",
+ className: "size-4 shrink-0 stroke-current stroke-2",
+ children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
+ });
+}
+function zk({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, H.jsx)("img", {
+ src: e,
+ alt: "",
+ width: 16,
+ height: 16,
+ className: "size-4 shrink-0"
+ }) : /* @__PURE__ */ (0, H.jsx)(Rk, { name: e });
}
-var oue = (e) => (t) => zS(t) && e(t, wk(t));
//#endregion
-//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
-function Tk(e, t, n, r) {
- return Tw(e, t, oue(n), r);
+//#region src/react/library-processing/use-library-processing.ts
+function Bk({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = Cn({
+ queryKey: rk,
+ queryFn: ({ signal: e }) => ik(e),
+ refetchInterval: (e) => Lle(e.state.data, r)
+ }), [a, o] = (0, V.useState)(null), s = (0, V.useRef)(void 0), c = i.data;
+ return (0, V.useEffect)(() => {
+ if (!c) return;
+ let n = s.current;
+ s.current = c.status;
+ let r = n === "running" && c.status !== "running";
+ r && o(c), (r || t === "notice") && Hle(c, e, r);
+ }, [
+ c,
+ t,
+ e
+ ]), {
+ job: i,
+ settled: a,
+ forget: () => o(null)
+ };
}
//#endregion
-//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
-var Ek = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Dk = /*#__PURE__*/ new Set(["auto", "scroll"]), Ok = class {
- constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
- if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
- this.handleScroll(e.target);
- }, this.onWindowScroll = () => {
- this.handleScroll(window);
- }, this.updatePoint = () => {
- if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = kk(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = jk(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = dae(e.offset, {
- x: 0,
- y: 0
- }) >= this.distanceThreshold;
- if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = Jy;
- this.history.push({
- ...r,
- timestamp: i
- });
- let { onStart: a, onMove: o } = this.handlers;
- t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
- }, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = kk(t, this.transformPagePoint), Ky.update(this.updatePoint, !0);
- }, this.handlePointerUp = (e, t) => {
- this.end();
- let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
- if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = jk(e.type === "pointercancel" ? this.lastMoveEventInfo : kk(t, this.transformPagePoint), this.history);
- this.startEvent && n && n(e, a), r && r(e, a);
- }, !zS(e)) return;
- this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = kk(wk(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = Jy;
- this.history = [{
- ...c,
- timestamp: l
- }];
- let { onSessionStart: u } = t;
- u && u(e, jk(s, this.history));
- let d = {
- passive: !0,
- capture: !0
- };
- this.removeListeners = Cy(Tk(this.contextWindow, "pointermove", this.handlePointerMove, d), Tk(this.contextWindow, "pointerup", this.handlePointerUp, d), Tk(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
- }
- startScrollTracking(e) {
- let t = e.parentElement;
- for (; t;) {
- let e = getComputedStyle(t);
- (Dk.has(e.overflowX) || Dk.has(e.overflowY)) && this.scrollPositions.set(t, {
- x: t.scrollLeft,
- y: t.scrollTop
- }), t = t.parentElement;
- }
- this.scrollPositions.set(window, {
- x: window.scrollX,
- y: window.scrollY
- }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
- window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
- };
- }
- handleScroll(e) {
- let t = this.scrollPositions.get(e);
- if (!t) return;
- let n = e === window, r = n ? {
- x: window.scrollX,
- y: window.scrollY
- } : {
- x: e.scrollLeft,
- y: e.scrollTop
- }, i = {
- x: r.x - t.x,
- y: r.y - t.y
- };
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), Ky.update(this.updatePoint, !0));
- }
- updateHandlers(e) {
- this.handlers = e;
- }
- end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), qy(this.updatePoint);
+//#region src/react/library-processing/library-processing-card.tsx
+var Vk = [
+ {
+ label: "扫描并补全资料",
+ icon: pE,
+ command: {}
+ },
+ {
+ label: "只扫描",
+ icon: _E,
+ command: { stage: "scan" }
+ },
+ {
+ label: "只采集",
+ icon: Ioe,
+ command: { stage: "collect" }
}
-};
-function kk(e, t) {
- return t ? { point: t(e.point) } : e;
-}
-function Ak(e, t) {
- return {
- x: e.x - t.x,
- y: e.y - t.y
- };
-}
-function jk({ point: e }, t) {
- return {
- point: e,
- delta: Ak(e, Mk(t)),
- offset: Ak(e, sue(t)),
- velocity: cue(t, .1)
+], Hk = ra(uD, dD, "text-body-2-medium"), Uk = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Wk = (e) => {
+ let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
+ if (!t && !n && !r && !i) return "";
+ let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
+ return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
+}, Gk = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Wk(e);
+function Kk({ busy: e, onRun: t }) {
+ let n = (0, V.useRef)(null), [r, i] = (0, V.useState)(!1), a = (n) => {
+ e || (i(!1), t(n));
};
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("span", {
+ "data-button-group": !0,
+ "data-split-button": !0,
+ "data-variant": "primary",
+ children: [/* @__PURE__ */ (0, H.jsx)(J, {
+ leadingIcon: pE,
+ onClick: () => a({}),
+ ...X(e),
+ children: "扫描并补全资料"
+ }), /* @__PURE__ */ (0, H.jsx)(J, {
+ ref: n,
+ iconOnly: !0,
+ leadingIcon: oE,
+ "aria-label": "更多扫描与采集方式",
+ "aria-haspopup": "dialog",
+ "aria-expanded": r,
+ ...X(e),
+ onClick: () => {
+ e || i(!0);
+ }
+ })]
+ }), /* @__PURE__ */ (0, H.jsx)(qh, {
+ triggerRef: n,
+ isOpen: r,
+ onOpenChange: i,
+ placement: "bottom end",
+ offset: 4,
+ className: lD,
+ children: /* @__PURE__ */ (0, H.jsx)(uk, {
+ "aria-label": "更多扫描与采集方式",
+ className: "flex w-52 flex-col gap-1 outline-none",
+ children: Vk.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ className: Hk,
+ onClick: () => a(n),
+ children: [/* @__PURE__ */ (0, H.jsx)(t, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), e]
+ }, e))
+ })
+ })] });
}
-function sue(e) {
- return e[0];
-}
-function Mk(e) {
- return e[e.length - 1];
+function qk({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Ble(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = zle(e.notes || {}), c = KE();
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ "aria-live": "polite",
+ className: "flex flex-col gap-4 empty:hidden",
+ children: [
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "warning",
+ title: "处理较慢",
+ children: Uk
+ }) : null,
+ t || e.status === "failed" ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "error",
+ action: o ? /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "primary",
+ size: "small",
+ onClick: r,
+ children: "重试未完成项"
+ }) : null,
+ extra: a ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mt-1.5 border-t border-current/20 pt-1.5",
+ children: /* @__PURE__ */ (0, H.jsxs)(Lk, {
+ summary: a.label,
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ className: "relative",
+ children: /* @__PURE__ */ (0, H.jsx)("ul", {
+ ref: c,
+ className: "max-h-96 overflow-y-auto pr-3",
+ children: a.items.map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
+ className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",
+ children: [
+ e.href ? /* @__PURE__ */ (0, H.jsx)("a", {
+ href: e.href,
+ className: "text-body-2-medium underline-offset-4 hover:underline",
+ children: e.label
+ }) : /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-body-2-medium",
+ children: e.label
+ }),
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-caption-1-regular",
+ children: e.note
+ }),
+ e.hint ? /* @__PURE__ */ (0, H.jsx)("code", {
+ className: "text-caption-1-regular break-all",
+ children: e.hint
+ }) : null
+ ]
+ }, e.key))
+ })
+ }), a.log ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
+ children: /* @__PURE__ */ (0, H.jsx)(vk, {
+ path: a.log,
+ prefix: "完整记录:",
+ className: "text-caption-1-regular",
+ onRevealed: i
+ })
+ }) : null]
+ })
+ }) : null,
+ children: t || e.error || "处理未完成,请重试"
+ }) : null,
+ n?.status === "complete" ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "success",
+ title: "处理完成",
+ children: Gk(n)
+ }) : null,
+ e.status !== "running" && s ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "neutral",
+ extra: e.issues_log ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
+ children: /* @__PURE__ */ (0, H.jsx)(vk, {
+ path: e.issues_log,
+ prefix: "完整记录:",
+ className: "text-caption-1-regular",
+ onRevealed: i
+ })
+ }) : null,
+ children: s
+ }) : null
+ ]
+ });
}
-function cue(e, t) {
- if (e.length < 2) return {
- x: 0,
- y: 0
- };
- let n = e.length - 1, r = null, i = Mk(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Ey(t)));) n--;
- if (!r) return {
- x: 0,
- y: 0
- };
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Ey(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ Dy(i.timestamp - r.timestamp);
- if (a === 0) return {
- x: 0,
- y: 0
- };
- let o = {
- x: (i.x - r.x) / a,
- y: (i.y - r.y) / a
+function Jk(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = Bk(e), o = Fn({
+ mutationFn: (e) => B(nk, e),
+ onSuccess: (e) => {
+ a(), _.setQueryData(rk, e), _.invalidateQueries({ queryKey: rk });
+ }
+ });
+ (0, V.useEffect)(() => {
+ i && n?.();
+ }, [i, n]);
+ let s = r.data ?? { status: "idle" }, c = o.error ? R(o.error) : r.isError ? r.data ? ok : R(r.error) : "", l = o.isPending || s.status === "running", u = ck(s), d = (e) => {
+ l || (o.reset(), o.mutate(e));
};
- return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-col gap-4",
+ children: [/* @__PURE__ */ (0, H.jsx)(_k, {
+ layout: "stack",
+ label: "扫描与采集",
+ footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+ /* @__PURE__ */ (0, H.jsx)(fk, {
+ href: "/scraping",
+ size: "small",
+ trailingIcon: sE,
+ children: "来源和凭证"
+ }),
+ s.candidates ? /* @__PURE__ */ (0, H.jsx)(fk, {
+ href: "/review",
+ size: "small",
+ trailingIcon: sE,
+ children: "复核资料"
+ }) : null,
+ /* @__PURE__ */ (0, H.jsx)(Kk, {
+ busy: l,
+ onRun: d
+ })
+ ] }),
+ children: /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(gk, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: Ule
+ }),
+ s.status === "running" ? /* @__PURE__ */ (0, H.jsx)(Ck, {
+ embedded: !0,
+ label: u,
+ value: s.checked,
+ total: s.total
+ }) : null
+ ]
+ })
+ }), /* @__PURE__ */ (0, H.jsx)(qk, {
+ state: s,
+ problem: c,
+ settled: i,
+ onRetry: () => {
+ !s.job_id || !s.retryable_asset_ids?.length || d({
+ job_id: s.job_id,
+ retry: s.retryable_asset_ids
+ });
+ },
+ toast: t
+ })]
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
-function lue(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? jb(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? jb(n, e, r.max) : Math.min(e, n)), e;
-}
-function Nk(e, t, n) {
- return {
- min: t === void 0 ? void 0 : e.min + t,
- max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
- };
-}
-function uue(e, { top: t, left: n, bottom: r, right: i }) {
- return {
- x: Nk(e.x, n, i),
- y: Nk(e.y, t, r)
- };
-}
-function Pk(e, t) {
- let n = t.min - e.min, r = t.max - e.max;
- return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
- min: n,
- max: r
- };
-}
-function due(e, t) {
- return {
- x: Pk(e.x, t.x),
- y: Pk(e.y, t.y)
- };
-}
-function fue(e, t) {
- let n = .5, r = iw(e), i = iw(t);
- return i > r ? n = /* @__PURE__ */ wy(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ wy(e.min, e.max - i, t.min)), gy(0, 1, n);
-}
-function pue(e, t) {
- let n = {};
- return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
+//#region src/react/library-processing/library-processing-notice.tsx
+var Yk = "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", Xk = {
+ gray: `${Yk} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${Yk} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${Yk} border-current/35 bg-background-tertiary-error text-text-error-primary`
+};
+function Zk({ value: e, max: t }) {
+ let n = Math.max(0, Math.min(100, e / t * 100));
+ return /* @__PURE__ */ (0, H.jsxs)("svg", {
+ role: "progressbar",
+ "aria-label": "任务完成率",
+ "aria-valuemin": 0,
+ "aria-valuemax": 100,
+ "aria-valuenow": n,
+ viewBox: "0 0 32 32",
+ fill: "none",
+ className: "size-8 shrink-0 -rotate-90 stroke-current",
+ children: [/* @__PURE__ */ (0, H.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ strokeWidth: "4",
+ className: "opacity-25"
+ }), /* @__PURE__ */ (0, H.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ strokeWidth: "4",
+ pathLength: 100,
+ strokeDasharray: `${n} 100`,
+ strokeLinecap: "round"
+ })]
+ });
}
-var Fk = .35;
-function mue(e = Fk) {
- return e === !1 ? e = 0 : e === !0 && (e = Fk), {
- x: Ik(e, "left", "right"),
- y: Ik(e, "top", "bottom")
- };
+function Qk(e) {
+ let { job: t } = Bk(e), n = t.data, r = t.isError ? n ? ok : R(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ if (!r && !o && !a) return null;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ck(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? zoe : Poe;
+ return /* @__PURE__ */ (0, H.jsxs)("aside", {
+ role: a ? "alert" : "status",
+ className: Xk[s],
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex min-w-0 items-center gap-3",
+ children: [o && l ? /* @__PURE__ */ (0, H.jsx)(Zk, {
+ value: c,
+ max: l
+ }) : /* @__PURE__ */ (0, H.jsx)(d, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "min-w-0 text-body-2-regular",
+ children: u
+ })]
+ }), /* @__PURE__ */ (0, H.jsx)(fk, {
+ href: "/data-cleanup#libraryProcessing",
+ size: "small",
+ trailingIcon: sE,
+ children: r || a ? "查看并处理" : "查看进度"
+ })]
+ });
}
-function Ik(e, t, n) {
- return {
- min: Lk(e, t),
- max: Lk(e, n)
- };
+//#endregion
+//#region src/react/playlists/playlists.ts
+var $k = "/api/playlists", eA = "/api/playlist", tA = ["playlists"], nA = (e) => z($k, e);
+async function rA(e) {
+ await _.fetchQuery({
+ queryKey: tA,
+ queryFn: () => nA(e),
+ staleTime: 0
+ });
}
-function Lk(e, t) {
- return typeof e == "number" ? e : e[t] || 0;
+var iA = () => _.invalidateQueries({
+ queryKey: tA,
+ exact: !0
+}), aA = (e) => e.current_asset_id || e.preview_asset_id || null, oA = (e) => `/poster?id=${e}&c=4`, sA = (e) => B(eA, {
+ action: "create",
+ name: e,
+ asset_ids: []
+}), cA = (e, t) => B(eA, {
+ action: "rename",
+ id: e,
+ name: t
+}), lA = (e) => B(eA, {
+ action: "delete",
+ id: e
+}), uA = (e) => z(`${eA}?id=${e}`).catch(() => null);
+function dA(e) {
+ let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
+ return B(eA, {
+ action: "create",
+ name: e.name,
+ asset_ids: t,
+ source_kind: e.source_kind,
+ source_seed_asset_id: n !== null && t.includes(n) ? n : null
+ });
}
//#endregion
-//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
-var hue = /* @__PURE__ */ new WeakMap(), gue = class {
- constructor(e) {
- this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
- x: 0,
- y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = cC(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+//#region src/react/playlists/playlists-page.tsx
+var fA = rr("ellipsis"), pA = rr("pencil"), mA = rr("trash"), hA = rr("playlist"), gA = ra(uD, dD, "text-body-2-medium"), _A = "播放列表名称不能为空", vA = (e) => async () => {
+ try {
+ await e();
+ } finally {
+ iA();
}
- start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
- let { presenceContext: r } = this.visualElement;
- if (r && r.isPresent === !1) return;
- let i = (e) => {
- t && this.snapToCursor(wk(e).point), this.stopAnimation();
- }, a = (e, t) => {
- let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
- if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = PS(n), !this.openDragLock)) return;
- this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), bw((e) => {
- let t = this.getAxisMotionValue(e).get() || 0;
- if (yb.test(t)) {
- let { projection: n } = this.visualElement;
- if (n && n.layout) {
- let r = n.layout.layoutBox[e];
- r && (t = iw(r) * (parseFloat(t) / 100));
- }
+};
+function yA({ toast: e }) {
+ let [t, n] = (0, V.useState)(""), [r, i] = (0, V.useState)(""), a = Fn({
+ mutationFn: (e) => sA(e),
+ onSuccess: (t) => {
+ n(""), i(""), iA(), e("已新建播放列表", { undo: vA(() => lA(t.playlist.id)) });
+ },
+ onError: (e) => i(R(e) || "新建失败")
+ });
+ return /* @__PURE__ */ (0, H.jsxs)("form", {
+ "data-playlist-create": "",
+ "aria-label": "新建播放列表",
+ onSubmit: (e) => {
+ if (e.preventDefault(), !a.isPending) {
+ if (!t.trim()) {
+ i(_A);
+ return;
}
- this.originPoint[e] = t;
- }), i && Ky.update(() => i(e, t), !1, !0), Zx(this.visualElement, "transform");
- let { animationState: a } = this.visualElement;
- a && a.setActive("whileDrag", !0);
- }, o = (e, t) => {
- this.latestPointerEvent = e, this.latestPanInfo = t;
- let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
- if (!n && !this.openDragLock) return;
- let { offset: o } = t;
- if (r && this.currentDirection === null) {
- this.currentDirection = vue(o), this.currentDirection !== null && i && i(this.currentDirection);
- return;
+ a.mutate(t);
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && Ky.update(() => a(e, t), !1, !0);
- }, s = (e, t) => {
- this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
- }, c = () => {
- let { dragSnapToOrigin: e } = this.getProps();
- (e || this.constraints) && this.startAnimation({
- x: 0,
- y: 0
- });
- }, { dragSnapToOrigin: l } = this.getProps();
- this.panSession = new Ok(e, {
- onSessionStart: i,
- onStart: a,
- onMove: o,
- onSessionEnd: s,
- resumeAnimation: c
- }, {
- transformPagePoint: this.visualElement.getTransformPagePoint(),
- dragSnapToOrigin: l,
- distanceThreshold: n,
- contextWindow: Ek(this.visualElement),
- element: this.visualElement.current
- });
- }
- stop(e, t) {
- let n = e || this.latestPointerEvent, r = t || this.latestPanInfo, i = this.isDragging;
- if (this.cancel(), !i || !r || !n) return;
- let { velocity: a } = r;
- this.startAnimation(a);
- let { onDragEnd: o } = this.getProps();
- o && Ky.postRender(() => o(n, r));
- }
- cancel() {
- this.isDragging = !1;
- let { projection: e, animationState: t } = this.visualElement;
- e && (e.isAnimationBlocked = !1), this.endPanSession();
- let { dragPropagation: n } = this.getProps();
- !n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
- }
- endPanSession() {
- this.panSession && this.panSession.end(), this.panSession = void 0;
- }
- updateAxis(e, t, n) {
- let { drag: r } = this.getProps();
- if (!n || !zk(e, r, this.currentDirection)) return;
- let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
- this.constraints && this.constraints[e] && (a = lue(a, this.constraints[e], this.elastic[e])), i.set(a);
- }
- resolveConstraints() {
- let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
- e && xk(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? uue(n.layoutBox, e) : !1, this.elastic = mue(t), r !== this.constraints && !xk(e) && n && this.constraints && !this.hasMutatedConstraints && bw((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = pue(n.layoutBox[e], this.constraints[e]));
+ },
+ className: "flex flex-wrap items-end gap-2",
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
+ label: "新播放列表",
+ placeholder: "输入名称",
+ maxLength: 80,
+ value: t,
+ onChange: (e) => {
+ n(e), i("");
+ },
+ validationBehavior: "aria",
+ isInvalid: !!r,
+ hint: r || void 0
+ })
+ }), /* @__PURE__ */ (0, H.jsx)(J, {
+ type: "submit",
+ ...X(a.isPending),
+ children: "新建"
+ })]
+ });
+}
+function bA({ target: e, close: t, toast: n }) {
+ let [r, i] = (0, V.useState)(""), [a, o] = (0, V.useState)(""), s = (0, V.useRef)(null);
+ (0, V.useEffect)(() => {
+ if (!e) return;
+ i(e.name), o("");
+ let t = requestAnimationFrame(() => {
+ s.current?.focus(), s.current?.select();
});
- }
- resolveRefConstraints() {
- let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!e || !xk(e)) return !1;
- let n = e.current, { projection: r } = this.visualElement;
- if (!r || !r.layout) return !1;
- r.root && (r.root.scroll = void 0, r.root.updateScroll());
- let i = iie(n, r.root, this.visualElement.getTransformPagePoint()), a = due(r.layout.layoutBox, i);
- if (t) {
- let e = t(tie(a));
- this.hasMutatedConstraints = !!e, e && (a = CC(e));
- }
- return a;
- }
- startAnimation(e) {
- let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = bw((o) => {
- if (!zk(o, t, this.currentDirection)) return;
- let c = s && s[o] || {};
- (a === !0 || a === o) && (c = {
- min: 0,
- max: 0
- });
- let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
- type: "inertia",
- velocity: n ? e[o] : 0,
- bounceStiffness: l,
- bounceDamping: u,
- timeConstant: 750,
- restDelta: 1,
- restSpeed: 10,
- ...i,
- ...c
- };
- return this.startAxisValueAnimation(o, d);
- });
- return Promise.all(c).then(o);
- }
- startAxisValueAnimation(e, t) {
- let n = this.getAxisMotionValue(e);
- return Zx(this.visualElement, e), n.start(Ux(e, n, 0, t, this.visualElement, !1));
- }
- stopAnimation() {
- bw((e) => this.getAxisMotionValue(e).stop());
- }
- getAxisMotionValue(e) {
- let t = `_drag${e.toUpperCase()}`;
- return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
- }
- snapToCursor(e) {
- bw((t) => {
- let { drag: n } = this.getProps();
- if (!zk(t, n, this.currentDirection)) return;
- let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
- if (r && r.layout) {
- let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
- i.set(e[t] - jb(n, a, .5) + o);
- }
- });
- }
- scalePositionWithinConstraints() {
- if (!this.visualElement.current) return;
- let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!xk(t) || !n || !this.constraints) return;
- this.stopAnimation();
- let r = {
- x: 0,
- y: 0
- };
- bw((e) => {
- let t = this.getAxisMotionValue(e);
- if (t && this.constraints !== !1) {
- let n = t.get();
- r[e] = fue({
- min: n,
- max: n
- }, this.constraints[e]);
- }
- });
- let { transformTemplate: i } = this.visualElement.getProps();
- this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), bw((t) => {
- if (!zk(t, e, null)) return;
- let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
- n.set(jb(i, a, r[t]));
- }), this.visualElement.render();
- }
- addListeners() {
- if (!this.visualElement.current) return;
- hue.set(this.visualElement, this);
- let e = this.visualElement.current, t = Tk(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Pre(i);
- n && r && !a && this.start(t);
- }), n, r = () => {
- let { dragConstraints: t } = this.getProps();
- xk(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= _ue(e, t.current, () => this.scalePositionWithinConstraints()));
- }, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), Ky.read(r);
- let o = Tw(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (bw((t) => {
- let n = this.getAxisMotionValue(t);
- n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
- }), this.visualElement.render());
- }));
- return () => {
- o(), t(), a(), s && s(), n && n();
- };
- }
- getProps() {
- let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Fk, dragMomentum: o = !0 } = e;
- return {
- ...e,
- drag: t,
- dragDirectionLock: n,
- dragPropagation: r,
- dragConstraints: i,
- dragElastic: a,
- dragMomentum: o
- };
- }
-};
-function Rk(e) {
- let t = !0;
- return () => {
- if (t) {
- t = !1;
- return;
- }
- e();
- };
+ return () => cancelAnimationFrame(t);
+ }, [e]);
+ let c = Fn({
+ mutationFn: ({ row: e, value: t }) => cA(e.id, t),
+ onSuccess: (e, { row: r }) => {
+ t(), iA(), n("已重命名播放列表", { undo: vA(() => cA(r.id, r.name)) });
+ },
+ onError: (e) => o(R(e))
+ });
+ return /* @__PURE__ */ (0, H.jsx)(WE, {
+ isOpen: !!e,
+ onOpenChange: (e) => {
+ e || t();
+ },
+ width: "form",
+ children: /* @__PURE__ */ (0, H.jsxs)("form", {
+ "data-playlist-rename": "",
+ onSubmit: (t) => {
+ if (t.preventDefault(), !e || c.isPending) return;
+ let n = r.trim();
+ if (!n) {
+ o(_A);
+ return;
+ }
+ c.mutate({
+ row: e,
+ value: n
+ });
+ },
+ className: "flex min-h-0 flex-col",
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-col gap-4 p-5",
+ children: [/* @__PURE__ */ (0, H.jsx)(wu, {
+ slot: "title",
+ className: "text-title-2-semibold text-text-primary",
+ children: "编辑名称"
+ }), /* @__PURE__ */ (0, H.jsx)(FE, {
+ ref: s,
+ label: "名称",
+ placeholder: "输入名称",
+ maxLength: 80,
+ value: r,
+ onChange: (e) => {
+ i(e), o("");
+ },
+ validationBehavior: "aria",
+ isInvalid: !!a,
+ hint: a || void 0
+ })]
+ }), /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex justify-between gap-4 p-3",
+ children: [/* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "secondary",
+ onClick: t,
+ children: "取消"
+ }), /* @__PURE__ */ (0, H.jsx)(J, {
+ type: "submit",
+ ...X(c.isPending),
+ children: "保存名称"
+ })]
+ })]
+ })
+ });
}
-function _ue(e, t, n) {
- let r = tC(e, Rk(n)), i = tC(t, Rk(n));
- return () => {
- r(), i();
+function xA({ name: e, onRename: t, onDelete: n }) {
+ let r = (0, V.useRef)(null), [i, a] = (0, V.useState)(!1), o = (e) => {
+ a(!1), e();
};
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("button", {
+ ref: r,
+ type: "button",
+ title: "更多操作",
+ "aria-label": `播放列表操作:${e}`,
+ "aria-haspopup": "dialog",
+ "aria-expanded": i,
+ "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, H.jsx)(fA, {
+ "aria-hidden": !0,
+ className: "size-4.5"
+ })
+ }), /* @__PURE__ */ (0, H.jsx)(qh, {
+ triggerRef: r,
+ isOpen: i,
+ onOpenChange: a,
+ placement: "bottom end",
+ offset: 4,
+ className: lD,
+ children: /* @__PURE__ */ (0, H.jsxs)(uk, {
+ "aria-label": `播放列表操作:${e}`,
+ className: "flex w-37.5 flex-col gap-0.5 outline-none",
+ children: [/* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ className: gA,
+ onClick: () => o(t),
+ children: [/* @__PURE__ */ (0, H.jsx)(pA, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), "编辑名称"]
+ }), /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ className: gA,
+ onClick: () => o(n),
+ children: [/* @__PURE__ */ (0, H.jsx)(mA, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), "删除播放列表"]
+ })]
+ })
+ })] });
}
-function zk(e, t, n) {
- return (t === !0 || t === e) && (n === null || n === e);
+function SA({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = Cn({
+ queryKey: tA,
+ queryFn: ({ signal: e }) => nA(e)
+ }), [o, s] = (0, V.useState)(null), c = (0, V.useRef)(i);
+ (0, V.useEffect)(() => {
+ c.current !== i && (c.current = i, iA());
+ }, [i]);
+ let l = a.data;
+ if (!l) return /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mx-auto w-full max-w-board",
+ children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "error",
+ title: "播放列表读取失败",
+ children: a.error ? R(a.error) : "未取得播放列表,请刷新页面重试。"
+ })
+ });
+ let u = l.items ?? [], d = (e) => {
+ fe({
+ title: "删除播放列表",
+ body: "这个播放列表将被删除,视频文件保留。",
+ confirmLabel: "删除播放列表",
+ danger: !0,
+ onConfirm: async () => {
+ let t = await uA(e.id);
+ await lA(e.id), iA(), r("已删除播放列表", t ? { undo: vA(() => dA(t)) } : void 0);
+ }
+ });
+ };
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "mx-auto w-full max-w-board pt-1 pb-10.5",
+ children: [
+ /* @__PURE__ */ (0, H.jsxs)("header", {
+ className: "mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch",
+ children: [/* @__PURE__ */ (0, H.jsxs)("div", { children: [/* @__PURE__ */ (0, H.jsx)("h2", {
+ className: "mb-1 text-display-4-medium! text-text-primary",
+ children: "播放列表"
+ }), /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "保存 Mix,按自己的顺序继续播放。"
+ })] }), /* @__PURE__ */ (0, H.jsx)(yA, { toast: r })]
+ }),
+ u.length ? /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-playlist-grid": "",
+ className: "card-grid-cover gap-4.5",
+ children: u.map((r) => {
+ let i = aA(r);
+ return /* @__PURE__ */ (0, H.jsx)(pr, {
+ "data-playlist-card": String(r.id),
+ name: r.name,
+ caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
+ count: r.item_count,
+ poster: r.preview_asset_id ? oA(r.preview_asset_id) : null,
+ flipImages: async () => (r.preview_ids || []).map(oA),
+ canFlip: n,
+ faces: r.faces || [],
+ onOpenEntity: t,
+ ...i ? { onOpen: () => e(r.id, i) } : {},
+ openLabel: `打开播放列表 ${r.name}`,
+ menu: /* @__PURE__ */ (0, H.jsx)(xA, {
+ name: r.name,
+ onRename: () => s(r),
+ onDelete: () => d(r)
+ })
+ }, r.id);
+ })
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: hA,
+ title: "还没有播放列表",
+ children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(bA, {
+ target: o,
+ close: () => s(null),
+ toast: r
+ })
+ ]
+ });
}
-function vue(e, t = 10) {
- let n = null;
- return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
+//#endregion
+//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
+var CA = (0, V.createContext)({});
+//#endregion
+//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
+function wA(e) {
+ let t = (0, V.useRef)(null);
+ return t.current === null && (t.current = e()), t.current;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
-var yue = class extends SC {
- constructor(e) {
- super(e), this.removeGroupControls = Sy, this.removeListeners = Sy, this.controls = new gue(e);
- }
- mount() {
- let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Sy;
- }
- update() {
- let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
- e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
- }
- unmount() {
- this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
- }
-}, Bk = (e) => (t, n) => {
- e && Ky.update(() => e(t, n), !1, !0);
-}, bue = class extends SC {
- constructor() {
- super(...arguments), this.removePointerDownListener = Sy;
- }
- onPointerDown(e) {
- this.session = new Ok(e, this.createPanHandlers(), {
- transformPagePoint: this.node.getTransformPagePoint(),
- contextWindow: Ek(this.node)
+//#region node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
+var TA = typeof window < "u" ? V.useLayoutEffect : V.useEffect, EA = /* @__PURE__ */ (0, V.createContext)(null), DA = (0, V.createContext)({
+ transformPagePoint: (e) => e,
+ isStatic: !1,
+ reducedMotion: "never"
+});
+//#endregion
+//#region node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
+function OA(e, t) {
+ if (typeof e == "function") return e(t);
+ e != null && (e.current = t);
+}
+function kA(...e) {
+ return (t) => {
+ let n = !1, r = e.map((e) => {
+ let r = OA(e, t);
+ return !n && typeof r == "function" && (n = !0), r;
});
- }
- createPanHandlers() {
- let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
- return {
- onSessionStart: Bk(e),
- onStart: Bk(t),
- onMove: Bk(n),
- onEnd: (e, t) => {
- delete this.session, r && Ky.postRender(() => r(e, t));
+ if (n) return () => {
+ for (let t = 0; t < r.length; t++) {
+ let n = r[t];
+ typeof n == "function" ? n() : OA(e[t], null);
}
};
- }
- mount() {
- this.removePointerDownListener = Tk(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
- }
- update() {
- this.session && this.session.updateHandlers(this.createPanHandlers());
- }
- unmount() {
- this.removePointerDownListener(), this.session && this.session.end();
- }
-}, Vk = !1, xue = class extends V.Component {
- componentDidMount() {
- let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Vk && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
- this.safeToRemove();
- }), i.setOptions({
- ...i.options,
- layoutDependency: this.props.layoutDependency,
- onExitComplete: () => this.safeToRemove()
- })), Dw.hasEverUpdated = !0;
- }
+ };
+}
+function $le(...e) {
+ return V.useCallback(kA(...e), e);
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
+var eue = class extends V.Component {
getSnapshotBeforeUpdate(e) {
- let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
- return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
- ...a.options,
- layoutDependency: t
- }), Vk = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || Ky.postRender(() => {
- let e = a.getStack();
- (!e || !e.members.length) && this.safeToRemove();
- })), null) : null;
- }
- componentDidUpdate() {
- let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
- n && (n.options.layoutAnchor = t, n.root.didUpdate(), jS.postRender(() => {
- !n.currentAnimation && n.isLead() && this.safeToRemove();
- }));
- }
- componentWillUnmount() {
- let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Vk = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
- }
- safeToRemove() {
- let { safeToRemove: e } = this.props;
- e && e();
+ let t = this.props.childRef.current;
+ if (TS(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = TS(e) && e.offsetWidth || 0, r = TS(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
+ }
+ return null;
}
+ componentDidUpdate() {}
render() {
- return null;
+ return this.props.children;
}
};
-function Hk(e) {
- let [t, n] = ek(), r = (0, V.useContext)(JO);
- return (0, H.jsx)(xue, {
- ...e,
- layoutGroup: r,
- switchLayoutGroup: (0, V.useContext)(bk),
+function tue({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
+ let o = (0, V.useId)(), s = (0, V.useRef)(null), c = (0, V.useRef)({
+ width: 0,
+ height: 0,
+ top: 0,
+ left: 0,
+ right: 0,
+ bottom: 0,
+ direction: "ltr"
+ }), { nonce: l } = (0, V.useContext)(DA), u = $le(s, a === !1 ? void 0 : e.props?.ref ?? e?.ref);
+ return (0, V.useInsertionEffect)(() => {
+ let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
+ if (t || a === !1 || !s.current || !e || !u) return;
+ let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
+ s.current.dataset.motionPopId = o;
+ let y = document.createElement("style");
+ l && (y.nonce = l);
+ let b = i ?? document.head;
+ return b.appendChild(y), y.sheet && y.sheet.insertRule(`
+ [data-motion-pop-id="${o}"] {
+ position: absolute !important;
+ width: ${e}px !important;
+ height: ${u}px !important;
+ ${_}px !important;
+ ${v}px !important;
+ }
+ `), () => {
+ s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
+ };
+ }, [t]), (0, H.jsx)(eue, {
isPresent: t,
- safeToRemove: n
+ childRef: s,
+ sizeRef: c,
+ pop: a,
+ children: a === !1 ? e : V.cloneElement(e, { ref: u })
});
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Sue = {
- pan: { Feature: bue },
- drag: {
- Feature: yue,
- ProjectionNode: Uw,
- MeasureLayout: Hk
- }
+//#region node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
+var nue = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = wA(rue), d = (0, V.useId)(), f = (0, V.useRef)(n), p = (0, V.useRef)(r);
+ TA(() => {
+ f.current = n, p.current = r;
+ });
+ let m = !0, h = (0, V.useMemo)(() => (m = !1, {
+ id: d,
+ initial: t,
+ isPresent: n,
+ custom: i,
+ onExitComplete: (e) => {
+ u.set(e, !0);
+ for (let e of u.values()) if (!e) return;
+ r && r();
+ },
+ register: (e) => (u.set(e, !1), () => {
+ u.delete(e), !f.current && !u.size && p.current?.();
+ })
+ }), [
+ n,
+ u,
+ r
+ ]);
+ return a && m && (h = { ...h }), (0, V.useMemo)(() => {
+ u.forEach((e, t) => u.set(t, !1));
+ }, [n]), V.useEffect(() => {
+ !n && !u.size && r && r();
+ }, [n]), e = (0, H.jsx)(tue, {
+ pop: o === "popLayout",
+ isPresent: n,
+ anchorX: s,
+ anchorY: c,
+ root: l,
+ children: e
+ }), (0, H.jsx)(EA.Provider, {
+ value: h,
+ children: e
+ });
};
-//#endregion
-//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Uk(e, t, n) {
- let { props: r } = e;
- e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
- let i = r["onHover" + n];
- i && Ky.postRender(() => i(t, wk(t)));
+function rue() {
+ return /* @__PURE__ */ new Map();
}
-var Cue = class extends SC {
- mount() {
- let { current: e } = this.node;
- e && (this.unmount = LS(e, (e, t) => (Uk(this.node, t, "Start"), (e) => Uk(this.node, e, "End"))));
- }
- unmount() {}
-}, wue = class extends SC {
- constructor() {
- super(...arguments), this.isActive = !1;
- }
- onFocus() {
- let e = !1;
- try {
- e = this.node.current.matches(":focus-visible");
- } catch {
- e = !0;
- }
- !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
- }
- onBlur() {
- !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
- }
- mount() {
- this.unmount = Cy(Tw(this.node.current, "focus", () => this.onFocus()), Tw(this.node.current, "blur", () => this.onBlur()));
- }
- unmount() {}
-};
//#endregion
-//#region node_modules/framer-motion/dist/es/gestures/press.mjs
-function Wk(e, t, n) {
- let { props: r } = e;
- if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
- e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
- let i = r["onTap" + (n === "End" ? "" : n)];
- i && Ky.postRender(() => i(t, wk(t)));
+//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
+function AA(e = !0) {
+ let t = (0, V.useContext)(EA);
+ if (t === null) return [!0, null];
+ let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, V.useId)();
+ (0, V.useEffect)(() => {
+ if (e) return i(a);
+ }, [e]);
+ let o = (0, V.useCallback)(() => e && r && r(a), [
+ a,
+ r,
+ e
+ ]);
+ return !n && r ? [!1, o] : [!0];
}
-var Tue = class extends SC {
- mount() {
- let { current: e } = this.node;
- if (!e) return;
- let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Ire(e, (e, t) => (Wk(this.node, t, "Start"), (e, { success: t }) => Wk(this.node, e, t ? "End" : "Cancel")), {
- useGlobalTarget: t,
- stopPropagation: n?.tap === !1
- });
- }
- unmount() {}
-}, Gk = /* @__PURE__ */ new WeakMap(), Kk = /* @__PURE__ */ new WeakMap(), Eue = (e) => {
- let t = Gk.get(e.target);
- t && t(e);
-}, Due = (e) => {
- e.forEach(Eue);
-};
-function Oue({ root: e, ...t }) {
- let n = e || document;
- Kk.has(n) || Kk.set(n, {});
- let r = Kk.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Due, {
- root: e,
- ...t
- })), r[i];
+function iue() {
+ return aue((0, V.useContext)(EA));
}
-function kue(e, t, n) {
- let r = Oue(t);
- return Gk.set(e, n), r.observe(e), () => {
- Gk.delete(e), r.unobserve(e);
- };
+function aue(e) {
+ return e === null || e.isPresent;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Aue = {
- some: 0,
- all: 1
-}, jue = class extends SC {
- constructor() {
- super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
- }
- startObserver() {
- this.stopObserver?.();
- let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
- root: t ? t.current : void 0,
- rootMargin: n,
- threshold: typeof r == "number" ? r : Aue[r]
- }, o = (e) => {
- let { isIntersecting: t } = e;
- if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
- t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
- let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
- a && a(e);
- };
- this.stopObserver = kue(this.node.current, a, o);
- }
- mount() {
- this.startObserver();
- }
- update() {
- if (typeof IntersectionObserver > "u") return;
- let { props: e, prevProps: t } = this.node;
- [
- "amount",
- "margin",
- "root"
- ].some(Mue(e, t)) && this.startObserver();
- }
- unmount() {
- this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
- }
-};
-function Mue({ viewport: e = {} }, { viewport: t = {} } = {}) {
- return (n) => e[n] !== t[n];
+//#region node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
+var jA = (e) => e.key || "";
+function MA(e) {
+ let t = [];
+ return V.Children.forEach(e, (e) => {
+ (0, V.isValidElement)(e) && t.push(e);
+ }), t;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
-var Nue = {
- inView: { Feature: jue },
- tap: { Feature: Tue },
- focus: { Feature: wue },
- hover: { Feature: Cue }
-}, Pue = { layout: {
- ProjectionNode: Uw,
- MeasureLayout: Hk
-} }, Fue = /*@__PURE__*/ tue({
- ...aue,
- ...Nue,
- ...Sue,
- ...Pue
-}, nue);
-//#endregion
-//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
-function qk(e, t, n) {
- (0, V.useInsertionEffect)(() => e.on(t, n), [
- e,
- t,
- n
+//#region node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
+var oue = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = AA(o), f = (0, V.useMemo)(() => MA(e), [e]), p = o && !u ? [] : f.map(jA), m = (0, V.useRef)(!0), h = (0, V.useRef)(f), g = wA(() => /* @__PURE__ */ new Map()), _ = (0, V.useRef)(/* @__PURE__ */ new Set()), [v, y] = (0, V.useState)(f), [b, x] = (0, V.useState)(f);
+ TA(() => {
+ m.current = !1, h.current = f;
+ for (let e = 0; e < b.length; e++) {
+ let t = jA(b[e]);
+ p.includes(t) ? (g.delete(t), _.current.delete(t)) : g.get(t) !== !0 && g.set(t, !1);
+ }
+ }, [
+ b,
+ p.length,
+ p.join("-")
]);
+ let S = [];
+ if (f !== v) {
+ let e = [...f];
+ for (let t = 0; t < b.length; t++) {
+ let n = b[t], r = jA(n);
+ p.includes(r) || (e.splice(t, 0, n), S.push(n));
+ }
+ return a === "wait" && S.length && (e = S), x(MA(e)), y(f), null;
+ }
+ let { forceRender: C } = (0, V.useContext)(CA);
+ return (0, H.jsx)(H.Fragment, { children: b.map((e) => {
+ let v = jA(e), y = o && !u ? !1 : f === b || p.includes(v);
+ return (0, H.jsx)(nue, {
+ isPresent: y,
+ initial: !m.current || n ? void 0 : !1,
+ custom: t,
+ presenceAffectsLayout: i,
+ mode: a,
+ root: l,
+ onExitComplete: y ? void 0 : () => {
+ if (_.current.has(v)) return;
+ if (g.has(v)) _.current.add(v), g.set(v, !0);
+ else return;
+ let e = !0;
+ g.forEach((t) => {
+ t || (e = !1);
+ }), e && (C?.(), x(h.current), o && d?.(), r && r());
+ },
+ anchorX: s,
+ anchorY: c,
+ children: e
+ }, v);
+ }) });
+}, NA = (0, V.createContext)({ strict: !1 }), PA = {
+ animation: [
+ "animate",
+ "variants",
+ "whileHover",
+ "whileTap",
+ "exit",
+ "whileInView",
+ "whileFocus",
+ "whileDrag"
+ ],
+ exit: ["exit"],
+ drag: ["drag", "dragControls"],
+ focus: ["whileFocus"],
+ hover: [
+ "whileHover",
+ "onHoverStart",
+ "onHoverEnd"
+ ],
+ tap: [
+ "whileTap",
+ "onTap",
+ "onTapStart",
+ "onTapCancel"
+ ],
+ pan: [
+ "onPan",
+ "onPanStart",
+ "onPanSessionStart",
+ "onPanEnd"
+ ],
+ inView: [
+ "whileInView",
+ "onViewportEnter",
+ "onViewportLeave"
+ ],
+ layout: ["layout", "layoutId"]
+}, FA = !1;
+function sue() {
+ if (FA) return;
+ let e = {};
+ for (let t in PA) e[t] = { isEnabled: (e) => PA[t].some((t) => !!e[t]) };
+ lC(e), FA = !0;
+}
+function IA() {
+ return sue(), uie();
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
-function Jk(e) {
- let t = YO(() => Bx(e)), { isStatic: n } = (0, V.useContext)(QO);
- if (n) {
- let [, n] = (0, V.useState)(e);
- (0, V.useEffect)(() => t.on("change", n), []);
- }
- return t;
+//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
+function cue(e) {
+ let t = IA();
+ for (let n in e) t[n] = {
+ ...t[n],
+ ...e[n]
+ };
+ lC(t);
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
-function Yk(e, t) {
- let n = Jk(t()), r = () => n.set(t());
- return r(), XO(() => {
- let t = () => Ky.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
- return () => {
- n.forEach((e) => e()), qy(r);
+//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
+var lue = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function LA(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || lue.has(e);
+}
+//#endregion
+//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
+var uue = /* @__PURE__ */ _t({ default: () => RA }), RA, due = ht((() => {
+ throw RA = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
+})), zA = (e) => !LA(e);
+function BA(e) {
+ typeof e == "function" && (zA = (t) => t.startsWith("on") ? !LA(t) : e(t));
+}
+try {
+ BA((due(), xt(uue)).default);
+} catch {}
+function fue(e, t, n) {
+ let r = {};
+ for (let i in e) (i !== "values" || typeof e.values != "object") && (oS(e[i]) || (zA(i) || n === !0 && LA(i) || !t && !LA(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]));
+ return r;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
+function pue({ children: e, isValidProp: t, ...n }) {
+ t && BA(t);
+ let r = (0, V.useContext)(DA);
+ n = {
+ ...r,
+ ...n
+ }, n.transition = Zx(n.transition, r.transition), n.isStatic = wA(() => n.isStatic);
+ let i = (0, V.useMemo)(() => n, [
+ JSON.stringify(n.transition),
+ n.transformPagePoint,
+ n.reducedMotion,
+ n.skipAnimations
+ ]);
+ return (0, H.jsx)(DA.Provider, {
+ value: i,
+ children: e
+ });
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
+var VA = /* @__PURE__ */ (0, V.createContext)({});
+//#endregion
+//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
+function mue(e, t) {
+ if (nC(e)) {
+ let { initial: t, animate: n } = e;
+ return {
+ initial: t === !1 || $S(t) ? t : void 0,
+ animate: $S(n) ? n : void 0
};
- }), n;
+ }
+ return e.inherit === !1 ? {} : t;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
-function Iue(e) {
- zx.current = [], e();
- let t = Yk(zx.current, e);
- return zx.current = void 0, t;
+//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
+function hue(e) {
+ let { initial: t, animate: n } = mue(e, (0, V.useContext)(VA));
+ return (0, V.useMemo)(() => ({
+ initial: t,
+ animate: n
+ }), [HA(t), HA(n)]);
+}
+function HA(e) {
+ return Array.isArray(e) ? e.join(" ") : e;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
-function Xk(e, t, n, r) {
- if (typeof e == "function") return Iue(e);
- if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return Lue(e, t, n, r);
- let i = typeof t == "function" ? t : Kre(t, n, r), a = Array.isArray(e) ? Zk(e, i) : Zk([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
- return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
- ...o,
- times: t,
- keyframes: n,
- isTransformed: !0,
- ...r?.ease ? { ease: r.ease } : {}
- }), a;
+//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
+var UA = () => ({
+ style: {},
+ transform: {},
+ transformOrigin: {},
+ vars: {}
+});
+//#endregion
+//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
+function WA(e, t, n) {
+ for (let r in t) !oS(t[r]) && !PC(r, n) && (e[r] = t[r]);
}
-function Zk(e, t) {
- let n = YO(() => []);
- return Yk(e, () => {
- n.length = 0;
- let r = e.length;
- for (let t = 0; t < r; t++) n[t] = e[t].get();
- return t(n);
- });
+function gue({ transformTemplate: e }, t) {
+ return (0, V.useMemo)(() => {
+ let n = UA();
+ return kC(n, t, e), Object.assign({}, n.vars, n.style);
+ }, [t]);
}
-function Lue(e, t, n, r) {
- let i = YO(() => Object.keys(n)), a = YO(() => ({}));
- for (let o of i) a[o] = Xk(e, t, n[o], r);
- return a;
+function _ue(e, t) {
+ let n = e.style || {}, r = {};
+ return WA(r, n, e), Object.assign(r, gue(e, t)), r;
+}
+function vue(e, t) {
+ let n = {}, r = _ue(e, t);
+ return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
-function Rue(e, t = {}) {
- let { isStatic: n } = (0, V.useContext)(QO), r = () => Xx(e) ? e.get() : e;
- if (n) return Xk(r);
- let i = Jk(r());
- return (0, V.useInsertionEffect)(() => qre(i, e, t), [i, JSON.stringify(t)]), i;
+//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
+var GA = () => ({
+ ...UA(),
+ attrs: {}
+});
+//#endregion
+//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
+function yue(e, t, n, r) {
+ let i = (0, V.useMemo)(() => {
+ let n = GA();
+ return IC(n, t, RC(r), e.transformTemplate, e.style), {
+ ...n.attrs,
+ style: { ...n.style }
+ };
+ }, [t]);
+ if (e.style) {
+ let t = {};
+ WA(t, e.style, e), i.style = {
+ ...t,
+ ...i.style
+ };
+ }
+ return i;
}
//#endregion
-//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
-function Qk(e, t = {}) {
- return Rue(e, {
- type: "spring",
- ...t
- });
+//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
+var bue = [
+ "animate",
+ "circle",
+ "defs",
+ "desc",
+ "ellipse",
+ "g",
+ "image",
+ "line",
+ "filter",
+ "marker",
+ "mask",
+ "metadata",
+ "path",
+ "pattern",
+ "polygon",
+ "polyline",
+ "rect",
+ "stop",
+ "switch",
+ "symbol",
+ "svg",
+ "text",
+ "tspan",
+ "use",
+ "view"
+];
+//#endregion
+//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
+function KA(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(bue.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
//#endregion
-//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function zue() {
- !gC.current && _C();
- let [e] = (0, V.useState)(hC.current);
- return e;
+//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
+function xue(e, t, n, { latestValues: r }, i, a = !1, o) {
+ let s = (o ?? KA(e) ? yue : vue)(t, r, i, e), c = fue(t, typeof e == "string", a), l = e === V.Fragment ? {} : {
+ ...c,
+ ...s,
+ ref: n
+ }, { children: u } = t, d = (0, V.useMemo)(() => oS(u) ? u.get() : u, [u]);
+ return (0, V.createElement)(e, {
+ ...l,
+ children: d
+ });
}
//#endregion
-//#region node_modules/motion/dist/es/react.mjs
-var $k = Fue, eA = "(prefers-reduced-motion: reduce)", tA = () => matchMedia(eA).matches, nA = (e) => {
- let t = matchMedia(eA);
- return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-};
-function rA({ children: e, count: t, label: n }) {
- let r = Ole(), i = (0, V.useSyncExternalStore)(nA, tA, () => !1), { isFocusVisible: a } = ks(), o = i || a, s = {
- opacity: 0,
- transform: "translate(-50%, 8px)"
+//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
+function Sue({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+ return {
+ latestValues: Cue(n, r, i, e),
+ renderState: t()
};
- return /* @__PURE__ */ (0, H.jsxs)($k.div, {
- role: "group",
- "aria-label": n,
- "data-selection-dock": !0,
- "data-glass-pane": "",
- inert: !r,
- "aria-hidden": !r || void 0,
- initial: !o && s,
- animate: {
- opacity: 1,
- transform: "translate(-50%, 0px)"
- },
- exit: {
- ...s,
- transition: { duration: o ? 0 : .12 }
- },
- transition: {
- duration: o ? 0 : .16,
- ease: [
- .23,
- 1,
- .32,
- 1
- ]
- },
- children: [/* @__PURE__ */ (0, H.jsx)("span", {
- role: "status",
- className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
- children: t
- }), e]
- });
}
-function iA({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, H.jsx)(ik, { children: e ? /* @__PURE__ */ (0, H.jsx)(rA, { ...t }, "selection") : null });
+function Cue(e, t, n, r) {
+ let i = {}, a = r(e, {});
+ for (let e in a) i[e] = Dw(a[e]);
+ let { initial: o, animate: s } = e, c = nC(e), l = rC(e);
+ t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
+ let u = n ? n.initial === !1 : !1;
+ u ||= o === !1;
+ let d = u ? s : o;
+ if (d && typeof d != "boolean" && !QS(d)) {
+ let t = Array.isArray(d) ? d : [d];
+ for (let n = 0; n < t.length; n++) {
+ let r = nS(e, t[n]);
+ if (r) {
+ let { transitionEnd: e, transition: t, ...n } = r;
+ for (let e in n) {
+ let t = n[e];
+ if (Array.isArray(t)) {
+ let e = u ? t.length - 1 : 0;
+ t = t[e];
+ }
+ t !== null && (i[e] = t);
+ }
+ for (let t in e) i[t] = e[t];
+ }
+ }
+ }
+ return i;
}
+var qA = (e) => (t, n) => {
+ let r = (0, V.useContext)(VA), i = (0, V.useContext)(EA), a = () => Sue(e, t, r, i);
+ return n ? a() : wA(a);
+}, wue = /*@__PURE__*/ qA({
+ scrapeMotionValuesFromProps: FC,
+ createRenderState: UA
+}), Tue = /*@__PURE__*/ qA({
+ scrapeMotionValuesFromProps: zC,
+ createRenderState: GA
+}), Eue = Symbol.for("motionComponentSymbol");
//#endregion
-//#region src/react/index/index-tags.tsx
-var aA = () => /* @__PURE__ */ (0, H.jsx)("span", {
- "aria-hidden": !0,
- "data-tag-dot": "",
- className: "size-1.75 flex-none rounded-full"
-});
-function oA({ tag: e, actions: t }) {
- let n = t.picked.has(e.k);
- return /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- "data-alpha-tag": "",
- "data-k": e.k,
- "data-tag-cat": VT(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, H.jsx)(aA, {}),
- /* @__PURE__ */ (0, H.jsx)("span", {
- className: "min-w-0 flex-1 truncate",
- children: e.label
- }),
- /* @__PURE__ */ (0, H.jsx)("span", {
- className: "flex-none text-caption-1-regular text-text-secondary",
- children: e.n.toLocaleString()
- })
- ]
+//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
+function Due(e, t, n) {
+ let r = (0, V.useRef)(n);
+ (0, V.useInsertionEffect)(() => {
+ r.current = n;
});
+ let i = (0, V.useRef)(null);
+ return (0, V.useCallback)((n) => {
+ n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
+ let a = r.current;
+ if (typeof a == "function") {
+ if (n) {
+ let e = a(n);
+ typeof e == "function" && (i.current = e);
+ } else i.current ? (i.current(), i.current = null) : a(n);
+ } else a && (a.current = n);
+ }, [t]);
}
-function sA({ groups: e, actions: t }) {
- return /* @__PURE__ */ (0, H.jsx)("div", {
- "data-alphabet": "",
- className: "flex flex-col gap-4",
- children: e.map(([e, n], r) => /* @__PURE__ */ (0, H.jsxs)("section", {
- "data-alpha-group": r,
- className: kT({
- radius: "plain",
- padding: "none",
- className: "px-5 pt-4 pb-3"
- }),
- children: [/* @__PURE__ */ (0, H.jsxs)("h3", {
- className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, H.jsx)(oT, { value: n.length })]
- }), /* @__PURE__ */ (0, H.jsx)("div", {
- className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, H.jsx)(oA, {
- tag: e,
- actions: t
- }, e.k))
- })]
- }, e))
- });
+//#endregion
+//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
+var JA = (0, V.createContext)({});
+//#endregion
+//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
+function YA(e) {
+ return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
-var cA = "\xA0";
-function lA({ tags: e, actions: t }) {
- return /* @__PURE__ */ (0, H.jsx)("div", {
- "data-tag-cloud": "",
- className: "flex flex-wrap gap-1.75",
- children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- "data-tag-chip": "",
- "data-k": e.k,
- "data-tag-cat": VT(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 + cA, /* @__PURE__ */ (0, H.jsx)("span", {
- "data-tag-n": "",
- className: "text-caption-1-regular opacity-60",
- children: e.n.toLocaleString()
- })]
- }, e.k))
+//#endregion
+//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
+function Oue(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, V.useContext)(VA), s = (0, V.useContext)(NA), c = (0, V.useContext)(EA), l = (0, V.useContext)(DA), u = l.reducedMotion, d = l.skipAnimations, f = (0, V.useRef)(null), p = (0, V.useRef)(!1);
+ r ||= s.renderer, !f.current && r && (f.current = r(e, {
+ visualState: t,
+ parent: o,
+ props: n,
+ presenceContext: c,
+ blockInitialAnimation: c ? c.initial === !1 : !1,
+ reducedMotionConfig: u,
+ skipAnimations: d,
+ isSVG: a
+ }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
+ let m = f.current, h = (0, V.useContext)(JA);
+ m && !m.projection && i && (m.type === "html" || m.type === "svg") && kue(f.current, n, i, h);
+ let g = (0, V.useRef)(!1);
+ (0, V.useInsertionEffect)(() => {
+ m && g.current && m.update(n, c);
});
+ let _ = n[lS], v = (0, V.useRef)(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
+ return TA(() => {
+ p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
+ }), (0, V.useEffect)(() => {
+ m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
+ window.MotionHandoffMarkAsComplete?.(_);
+ }), !1), m.enteringChildren = void 0);
+ }), m;
}
-var uA = [[
- "cloud",
- "标签云",
- "tags"
-], [
- "alphabet",
- "字母表",
- "text-aa"
-]];
-function dA({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, H.jsx)(sa, {
- label: "标签筛选",
- topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, H.jsxs)(la, {
- "data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : VT(n, e),
- pressed: t === e,
- onPress: () => o(e),
- children: [/* @__PURE__ */ (0, H.jsx)(aA, {}), r]
- }, e)),
- bottom: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)("span", {
- "data-index-readout": "",
- className: "flex-none text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
- children: r
- }),
- i.length > 1 ? /* @__PURE__ */ (0, H.jsx)("nav", {
- "aria-label": "按首字跳转",
- "data-alpha-jump": "",
- className: "flex min-w-0 gap-0.5 overflow-x-auto overscroll-x-contain",
- children: i.map((e, t) => /* @__PURE__ */ (0, H.jsx)("button", {
- type: "button",
- onClick: () => s(t),
- className: "h-7.5 min-w-7.5 flex-none cursor-pointer rounded-glass-key px-1.5 text-caption-1-regular leading-5 text-(--glass-text)/60 outline-none hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: e
- }, e))
- }) : null,
- /* @__PURE__ */ (0, H.jsx)(R_, {
- "aria-label": "标签视图",
- orientation: "horizontal",
- value: a,
- onChange: (e) => c(e),
- className: `ml-auto ${Xw}`,
- children: uA.map(([e, t, n]) => {
- let r = rr(n);
- return /* @__PURE__ */ (0, H.jsx)(z_, {
- value: e,
- "aria-label": t,
- "data-glass-segment": "",
- className: Zw,
- children: /* @__PURE__ */ (0, H.jsx)("span", {
- title: t,
- className: "contents",
- children: /* @__PURE__ */ (0, H.jsx)(r, { className: "size-4" })
- })
- }, e);
- })
- })
- ] })
+function kue(e, t, n, r) {
+ let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : XA(e.parent)), e.projection.setOptions({
+ layoutId: i,
+ layout: a,
+ alwaysMeasureLayout: !!o || s && YA(s),
+ visualElement: e,
+ animationType: typeof a == "string" ? a : "both",
+ initialPromotionConfig: r,
+ crossfade: d,
+ layoutScroll: c,
+ layoutRoot: l,
+ layoutAnchor: u
});
}
-function fA({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, H.jsxs)(iA, {
- visible: e > 0,
- label: "所选标签操作",
- count: `已选 ${e} 个标签`,
- children: [
- /* @__PURE__ */ (0, H.jsx)(qO, {
- isSelected: t === "any",
- onChange: (e) => n(e ? "any" : "all"),
- children: /* @__PURE__ */ (0, H.jsxs)("span", {
- className: "flex flex-col",
- children: [/* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-body-medium",
- children: "广泛匹配"
- }), /* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-caption-1-regular text-text-secondary",
- children: "开启后匹配任一所选标签;关闭后必须同时包含全部标签。"
- })]
- })
- }),
- /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "secondary",
- size: "small",
- onClick: r,
- children: "清空"
- }),
- /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "primary",
- size: "small",
- disabled: !e,
- onClick: i,
- children: "显示结果"
- })
- ]
- });
+function XA(e) {
+ if (e) return e.options.allowProjection === !1 ? XA(e.parent) : e.projection;
}
//#endregion
-//#region src/react/index/index-page.tsx
-var pA = [{
- value: "studios",
- label: "厂牌",
- symbol: "clapperboard"
-}, {
- value: "agencies",
- label: "事务所",
- symbol: "briefcase"
-}], mA = [{
- value: "local",
- label: "本地",
- symbol: "hard-drive"
-}, {
- value: "online",
- label: "在线",
- symbol: "rss"
-}], hA = {
- people: [[
- "big",
- "大图 · 竖幅头像",
- "maximize"
- ], [
- "compact",
- "紧凑 · 圆形头像",
- "layout-grid"
- ]],
- company: [[
- "big",
- "大图 · 完整标识",
- "maximize"
- ], [
- "compact",
- "紧凑 · 圆形标识",
- "layout-grid"
- ]]
-};
-function gA({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, H.jsx)(qw, {
- "aria-label": `${AT[e]}索引版式`,
- orientation: "horizontal",
- value: t,
- onChange: (e) => n(e),
- "data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${Jw}`,
- children: hA[FT(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = rr(n);
- return /* @__PURE__ */ (0, H.jsx)(z_, {
- value: e,
- "aria-label": t,
- className: pae,
- children: /* @__PURE__ */ (0, H.jsx)("span", {
- title: t,
- className: "contents",
- children: /* @__PURE__ */ (0, H.jsx)(r, { className: "size-4" })
- })
- }, e);
- })
- });
+//#region node_modules/framer-motion/dist/es/motion/index.mjs
+function ZA(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && cue(r);
+ let a = n ? n === "svg" : KA(e), o = a ? Tue : wue;
+ function s(n, s) {
+ let c, l = {
+ ...(0, V.useContext)(DA),
+ ...n,
+ layoutId: Aue(n)
+ }, { isStatic: u } = l, d = hue(n), f = o(n, u);
+ if (!u && typeof window < "u") {
+ jue(l, r);
+ let t = Mue(l);
+ c = t.MeasureLayout, d.visualElement = Oue(e, f, l, i, t.ProjectionNode, a);
+ }
+ return (0, H.jsxs)(VA.Provider, {
+ value: d,
+ children: [c && d.visualElement ? (0, H.jsx)(c, {
+ visualElement: d.visualElement,
+ ...l
+ }) : null, xue(e, n, Due(f, d.visualElement, s), f, u, t, a)]
+ });
+ }
+ s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
+ let c = (0, V.forwardRef)(s);
+ return c[Eue] = e, c;
}
-var _A = rr("search");
-function vA({ label: e, value: t, onQuery: n }) {
- let [r, i] = (0, V.useState)(t), a = (0, V.useRef)(!1), o = (0, V.useRef)(void 0);
- (0, V.useEffect)(() => () => clearTimeout(o.current), []);
- let s = (e) => {
- clearTimeout(o.current), o.current = setTimeout(() => n(e.trim()), 300);
- };
- return /* @__PURE__ */ (0, H.jsx)("div", {
- "data-index-search": "",
- className: "ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40",
- onCompositionStart: () => {
- a.current = !0;
- },
- onCompositionEnd: (e) => {
- a.current = !1, s(e.target.value);
- },
- children: /* @__PURE__ */ (0, H.jsx)(OE, {
- "aria-label": e,
- value: r,
- onChange: (e) => {
- i(e), a.current || s(e);
- },
- children: /* @__PURE__ */ (0, H.jsx)(AE, {
- type: "search",
- leadingIcon: _A,
- spellCheck: !1,
- autoComplete: "off",
- onKeyDown: (e) => {
- e.key !== "Enter" || a.current || e.nativeEvent.isComposing || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
- }
- })
- })
- });
+function Aue({ layoutId: e }) {
+ let t = (0, V.useContext)(CA).id;
+ return t && e !== void 0 ? t + "-" + e : e;
}
-function yA(e) {
- let [t, n] = (0, V.useState)(() => IT({
- kind: e.kind,
- q: e.q,
- scope: e.scope,
- view: e.view,
- category: e.category
- })), [r, i] = (0, V.useState)(e.layout), [a, o] = (0, V.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, V.useState)("any"), l = (0, V.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = AT[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
- (0, V.useEffect)(() => {
- e.selectMode || o(/* @__PURE__ */ new Set());
- }, [e.selectMode]);
- let [y, b] = (0, V.useState)(!1), x = (r, i = !1) => {
- let a = {
- ...t,
- ...r
- };
- b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, S = BT(LT(t)), C = Ln({
- queryKey: S.queryKey,
- queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
- pageParam: e,
- signal: t
- }),
- initialPageParam: 0,
- getNextPageParam: S.getNextPageParam,
- placeholderData: y ? Rn.keepPreviousData : void 0
- }), w = foe(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = poe(w.length, !!C.hasNextPage);
- (0, V.useLayoutEffect)(() => {
- l.current && ie(l.current);
- }, [r]);
- let D = (0, V.useMemo)(() => u === "tags" ? w.map((t) => ({
+function jue(e, t) {
+ (0, V.useContext)(NA).strict;
+}
+function Mue(e) {
+ let { drag: t, layout: n } = IA();
+ if (!t && !n) return {};
+ let r = {
...t,
- label: e.tagLabel(t.k)
- })) : [], [w, u]), O = (0, V.useMemo)(() => u === "tags" && p === "alphabet" ? goe(D, (t) => e.tagLabel(t)) : [], [
- D,
- p,
- u
- ]), k = (t) => {
- i(t), e.savePreference({ layout: t });
- }, A = u === "tags" ? /* @__PURE__ */ (0, H.jsx)(sT, {
- tabs: mA,
- value: f,
- label: "词表",
- onChange: (e) => {
- o(/* @__PURE__ */ new Set()), x({
- scope: e,
- category: "all",
- view: e === "online" ? "alphabet" : p
- });
- }
- }) : u === "performers" ? /* @__PURE__ */ (0, H.jsx)(sT, {
- tabs: mA,
- value: f,
- label: "名册",
- onChange: (t) => {
- t === "online" && e.exitSelectMode(), x({ scope: t });
+ ...n
+ };
+ return {
+ MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
+ ProjectionNode: r.ProjectionNode
+ };
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
+function Nue(e, t) {
+ if (typeof Proxy > "u") return ZA;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => ZA(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, ZA(a, void 0, e, t)), n.get(a)) });
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
+var Pue = (e, t) => t.isSVG ?? KA(e) ? new Die(t) : new xie(t, { allowProjection: e !== V.Fragment }), Fue = class extends dC {
+ constructor(e) {
+ super(e), e.animationState ||= Mie(e);
+ }
+ updateAnimationControlsSubscription() {
+ let { animate: e } = this.node.getProps();
+ QS(e) && (this.unmountControls = e.subscribe(this.node));
+ }
+ mount() {
+ this.updateAnimationControlsSubscription();
+ }
+ update() {
+ let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
+ e !== t && this.updateAnimationControlsSubscription();
+ }
+ unmount() {
+ this.node.animationState.reset(), this.unmountControls?.();
+ }
+}, Iue = 0, Lue = {
+ animation: { Feature: Fue },
+ exit: { Feature: class extends dC {
+ constructor() {
+ super(...arguments), this.id = Iue++, this.isExitComplete = !1;
}
- }) : FT(u) ? /* @__PURE__ */ (0, H.jsx)(sT, {
- tabs: pA,
- value: u,
- label: "公司类型",
- onChange: (e) => x({ kind: e })
- }) : null, j = (t) => {
- if (_) {
- e.openFollowTag(t);
- return;
+ update() {
+ if (!this.node.presenceContext) return;
+ let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
+ if (!this.node.animationState || e === n) return;
+ if (e && n === !1) {
+ if (this.isExitComplete) {
+ let { initial: e, custom: t } = this.node.getProps();
+ if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
+ let n = rS(this.node, e, t);
+ if (n) {
+ let { transition: e, transitionEnd: t, ...r } = n;
+ for (let e in r) this.node.getValue(e)?.jump(r[e]);
+ }
+ }
+ this.node.animationState.reset(), this.node.animationState.animateChanges();
+ } else this.node.animationState.setActive("exit", !1);
+ this.isExitComplete = !1;
+ return;
+ }
+ let r = this.node.animationState.setActive("exit", !e);
+ t && !e && r.then(() => {
+ this.isExitComplete = !0, t(this.id);
+ });
}
- if (!e.selectMode) {
- e.showTags([t], "all");
- return;
+ mount() {
+ let { register: e, onExitComplete: t } = this.node.presenceContext || {};
+ t && t(this.id), e && (this.unmount = e(this.id));
}
- o((e) => {
- let n = new Set(e);
- return n.delete(t) || n.add(t), n;
- });
- }, M = (_ ? MT : jT).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- ref: l,
- "data-index-page": u,
- className: "flex min-w-0 flex-col",
- children: [
- /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-index-head": "",
- className: "mb-5 flex min-w-0 flex-wrap items-center gap-3 p-1",
- children: [
- /* @__PURE__ */ (0, H.jsx)("h2", {
- "data-index-title": "",
- className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
- children: g
- }),
- PT(u) ? /* @__PURE__ */ (0, H.jsx)("span", {
- "data-index-count": "",
- className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
- children: C.isPending ? "" : E
- }) : null,
- PT(u) ? /* @__PURE__ */ (0, H.jsx)(gA, {
- kind: u,
- layout: r,
- onChange: k
- }) : null,
- /* @__PURE__ */ (0, H.jsx)("span", {
- "aria-hidden": !0,
- className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
- }),
- /* @__PURE__ */ (0, H.jsx)(vA, {
- label: `过滤${g}`,
- value: d,
- onQuery: (e) => {
- e !== d && x({ q: e }, !!e);
- }
- })
- ]
- }),
- A,
- u === "tags" ? /* @__PURE__ */ (0, H.jsx)(dA, {
- categories: M,
- category: h,
- online: _,
- readout: E,
- letters: O.map(([e]) => e),
- view: p,
- onCategory: (e) => x({ category: e }),
- onView: (e) => x({ view: e }),
- onJump: (e) => l.current?.querySelector(`[data-alpha-group="${e}"]`)?.scrollIntoView({
- block: "start",
- behavior: "smooth"
- })
- }) : null,
- /* @__PURE__ */ (0, H.jsx)("div", {
- "data-index-body": "",
- children: (() => {
- if (C.isPending) return /* @__PURE__ */ (0, H.jsx)("div", {
- "aria-busy": "true",
- dangerouslySetInnerHTML: { __html: be({
- kind: u,
- layout: r,
- mode: p
- }) }
- });
- if (C.isError) return /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: rr("search"),
- title: `没能读取${g}`,
- actions: /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "secondary",
- onClick: () => void C.refetch(),
- children: "重试"
- }),
- children: m(C.error)
- });
- if (!w.length) return /* @__PURE__ */ (0, H.jsx)(xA, {
- kind: u,
- filtered: !!d || u === "tags" && h !== "all",
- online: _ || v,
- configurable: e.configurable
- });
- if (v) return /* @__PURE__ */ (0, H.jsx)(voe, {
- items: w,
- layout: r,
- props: e
- });
- if (PT(u)) return /* @__PURE__ */ (0, H.jsx)(WT, {
- kind: u,
- items: w,
- layout: r,
- props: e
- });
- let t = {
- online: _,
- picked: a,
- press: j
- };
- return p === "alphabet" ? /* @__PURE__ */ (0, H.jsx)(sA, {
- groups: O,
- actions: t
- }) : /* @__PURE__ */ (0, H.jsx)(lA, {
- tags: D,
- actions: t
- });
- })()
- }),
- T ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "secondary",
- "data-index-more": "",
- className: "min-w-31",
- disabled: C.isFetchingNextPage,
- "aria-busy": C.isFetchingNextPage || void 0,
- onClick: () => void C.fetchNextPage(),
- children: C.isFetchingNextPage ? /* @__PURE__ */ (0, H.jsx)(WO, {
- inline: !0,
- label: "继续载入中…"
- }) : "载入更多"
- })
- }) : null,
- u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, H.jsx)(fA, {
- count: a.size,
- match: s,
- onMatch: c,
- onClear: () => o(/* @__PURE__ */ new Set()),
- onApply: () => {
- let t = [...a];
- o(/* @__PURE__ */ new Set()), e.showTags(t, s);
- }
- }) : null
- ]
- });
+ unmount() {}
+ } }
+};
+//#endregion
+//#region node_modules/framer-motion/dist/es/events/event-info.mjs
+function QA(e) {
+ return { point: {
+ x: e.pageX,
+ y: e.pageY
+ } };
}
-var bA = {
- tags: "标签",
- performers: "艺人",
- creators: "创作者",
- studios: "厂牌",
- agencies: "事务所"
+var Rue = (e) => (t) => jS(t) && e(t, QA(t));
+//#endregion
+//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
+function $A(e, t, n, r) {
+ return Cw(e, t, Rue(n), r);
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
+var ej = ({ current: e }) => e ? e.ownerDocument.defaultView : null, tj = /*#__PURE__*/ new Set(["auto", "scroll"]), nj = class {
+ constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
+ if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
+ this.handleScroll(e.target);
+ }, this.onWindowScroll = () => {
+ this.handleScroll(window);
+ }, this.updatePoint = () => {
+ if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = rj(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = aj(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = sae(e.offset, {
+ x: 0,
+ y: 0
+ }) >= this.distanceThreshold;
+ if (!t && !n) return;
+ let { point: r } = e, { timestamp: i } = tb;
+ this.history.push({
+ ...r,
+ timestamp: i
+ });
+ let { onStart: a, onMove: o } = this.handlers;
+ t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
+ }, this.handlePointerMove = (e, t) => {
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = rj(t, this.transformPagePoint), $y.update(this.updatePoint, !0);
+ }, this.handlePointerUp = (e, t) => {
+ this.end();
+ let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
+ if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
+ let a = aj(e.type === "pointercancel" ? this.lastMoveEventInfo : rj(t, this.transformPagePoint), this.history);
+ this.startEvent && n && n(e, a), r && r(e, a);
+ }, !jS(e)) return;
+ this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
+ let s = rj(QA(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = tb;
+ this.history = [{
+ ...c,
+ timestamp: l
+ }];
+ let { onSessionStart: u } = t;
+ u && u(e, aj(s, this.history));
+ let d = {
+ passive: !0,
+ capture: !0
+ };
+ this.removeListeners = Ay($A(this.contextWindow, "pointermove", this.handlePointerMove, d), $A(this.contextWindow, "pointerup", this.handlePointerUp, d), $A(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ }
+ startScrollTracking(e) {
+ let t = e.parentElement;
+ for (; t;) {
+ let e = getComputedStyle(t);
+ (tj.has(e.overflowX) || tj.has(e.overflowY)) && this.scrollPositions.set(t, {
+ x: t.scrollLeft,
+ y: t.scrollTop
+ }), t = t.parentElement;
+ }
+ this.scrollPositions.set(window, {
+ x: window.scrollX,
+ y: window.scrollY
+ }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
+ window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
+ };
+ }
+ handleScroll(e) {
+ let t = this.scrollPositions.get(e);
+ if (!t) return;
+ let n = e === window, r = n ? {
+ x: window.scrollX,
+ y: window.scrollY
+ } : {
+ x: e.scrollLeft,
+ y: e.scrollTop
+ }, i = {
+ x: r.x - t.x,
+ y: r.y - t.y
+ };
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), $y.update(this.updatePoint, !0));
+ }
+ updateHandlers(e) {
+ this.handlers = e;
+ }
+ end() {
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), eb(this.updatePoint);
+ }
};
-function xA({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: rr("search"),
- title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, H.jsx)(wE, {
- variant: "primary",
- href: "/?loc=&thumb=0",
- children: "查看全部内容"
- }),
- children: "清除筛选或搜索条件后查看全部内容。"
- });
- let i = n && e === "performers" ? "创作者" : bA[e], a = /* @__PURE__ */ (0, H.jsx)(wE, {
- variant: !r || n ? "primary" : "secondary",
- href: "/follow-manage?tab=add",
- children: "添加关注"
- });
- return /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: rr(e === "tags" ? "tags" : "user-round"),
- title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [r ? /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "primary",
- "data-empty-settings": "",
- children: "添加内容"
- }) : null, a] }),
- children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
- });
+function rj(e, t) {
+ return t ? { point: t(e.point) } : e;
}
-var SA = {
- video: ["视频", "play"],
- image: ["图片", "pics"],
- archive: ["压缩包", "file-archive"],
- audio: ["音频", "file-audio"],
- url: ["网址快捷方式", "globe"],
- other: ["其它文件", "hard-drive"]
-}, CA = (e) => SA[e.junk_kind || "other"] || SA.other;
-function wA(e) {
- return e === "dismissed" ? {
- operation: "reconsider-junk",
- label: "重新判断",
- glyph: "rotate-ccw"
- } : {
- operation: "dismiss-junk",
- label: "不是垃圾",
- glyph: "check"
+function ij(e, t) {
+ return {
+ x: e.x - t.x,
+ y: e.y - t.y
};
}
-var TA = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), EA = (e, t) => [
- "junk-queue",
- e.view,
- e.kind,
- t
-];
-function Bue({ kind: e, view: t }) {
- let n = new URLSearchParams({
- limit: "200",
- status: t
- });
- return e && n.set("kind", e), n.toString();
-}
-async function Vue(e, t) {
- let n = await z(`/api/ads?${Bue(e)}`, t);
+function aj({ point: e }, t) {
return {
- ...n,
- items: n.items || []
+ point: e,
+ delta: ij(e, oj(t)),
+ offset: ij(e, zue(t)),
+ velocity: Bue(t, .1)
+ };
+}
+function zue(e) {
+ return e[0];
+}
+function oj(e) {
+ return e[e.length - 1];
+}
+function Bue(e, t) {
+ if (e.length < 2) return {
+ x: 0,
+ y: 0
+ };
+ let n = e.length - 1, r = null, i = oj(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Ny(t)));) n--;
+ if (!r) return {
+ x: 0,
+ y: 0
+ };
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Ny(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Py(i.timestamp - r.timestamp);
+ if (a === 0) return {
+ x: 0,
+ y: 0
+ };
+ let o = {
+ x: (i.x - r.x) / a,
+ y: (i.y - r.y) / a
};
+ return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
//#endregion
-//#region src/react/junk-queue/junk-card.tsx
-function DA({ name: e }) {
- return /* @__PURE__ */ (0, H.jsx)("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
- });
+//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
+function Vue(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? Nb(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Nb(n, e, r.max) : Math.min(e, n)), e;
}
-var OA = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Hue({ item: e, view: t, selected: n, selectMode: r, helpers: a, actions: o }) {
- let c = (0, V.useRef)(null), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), p = e.junk_kind || "other", [m, h] = CA(e), g = String(e.name || ""), _ = wA(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]") || OA(r, t) && (t.preventDefault(), o.toggleSelection(e.id, t.shiftKey));
- }, x = (t) => {
- if (t.stopPropagation(), OA(r, t)) {
- t.preventDefault(), o.toggleSelection(e.id, t.shiftKey);
- return;
- }
- c.current && o.open(e, c.current);
- }, S = (t) => {
- t.preventDefault(), t.stopPropagation(), l !== "reveal" && (u("reveal"), f(""), o.reveal(e).then(f, () => {}).finally(() => u("")));
- }, C = (t) => (n) => {
- n.preventDefault(), n.stopPropagation(), l !== t && (u(t), f(""), o.operate(e, t).catch(() => {}).finally(() => u("")));
- }, w = (e) => l === e ? {
- "aria-busy": !0,
- "aria-disabled": !0
- } : {}, T = y ? /* @__PURE__ */ (0, H.jsx)("button", {
- type: "button",
- "data-junk-title": "",
- "data-junk-open": "",
- "data-middle-truncate": "",
- title: g,
- onClick: x,
- dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
- }) : /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-title": "",
- "data-middle-truncate": "",
- title: g,
- dangerouslySetInnerHTML: { __html: i(g || "未命名资源") }
- });
- return /* @__PURE__ */ (0, H.jsxs)("article", {
- ref: c,
- "data-media-card": "",
- "data-variant": "junk",
- "data-junk-card": "",
- "data-id": e.id,
- "data-junk-kind": p,
- "data-selected": n ? "" : void 0,
- onClick: b,
- children: [
- /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-media-pic": "",
- style: { "--card-ratio": "1.7777777777777777" },
- children: [
- /* @__PURE__ */ (0, H.jsxs)("span", {
- "data-media-glyph": "",
- children: [/* @__PURE__ */ (0, H.jsx)(DA, { name: h }), /* @__PURE__ */ (0, H.jsx)("b", { children: m })]
- }),
- v ? /* @__PURE__ */ (0, H.jsx)("span", {
- "data-media-art": "thumb",
- dangerouslySetInnerHTML: { __html: `<img class="poster" src="${v}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }
- }) : null,
- /* @__PURE__ */ (0, H.jsx)("div", {
- "data-media-badge": "",
- dangerouslySetInnerHTML: { __html: a.badgeHtml(e.location || "", e.cost || "") }
- }),
- /* @__PURE__ */ (0, H.jsx)("span", {
- "data-media-check": "",
- children: /* @__PURE__ */ (0, H.jsx)(DA, { name: "check" })
- })
- ]
- }),
- /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-junk-meta": "",
- children: [T, /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-junk-facts": "",
- children: [
- /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-who": "",
- children: m
- }),
- e.why ? /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-why": "",
- children: e.why
- }) : null,
- /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-size": "",
- children: Number(e.size) > 0 ? s(Number(e.size)) : "大小未知"
- })
- ]
- })]
- }),
- /* @__PURE__ */ (0, H.jsxs)("footer", {
- "data-junk-actions": "",
- children: [
- /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- "data-junk-action": "reveal",
- title: "在资源管理器中显示",
- "aria-label": "在资源管理器中显示",
- ...w("reveal"),
- onClick: S,
- children: [l === "reveal" ? /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: Ne("正在定位") }
- }) : /* @__PURE__ */ (0, H.jsx)(DA, { name: "folder-open" }), /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-label": "",
- children: "打开位置"
- })]
- }),
- /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- "data-junk-action": _.operation,
- title: _.label,
- "aria-label": _.label,
- ...w(_.operation),
- onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, H.jsx)(DA, { name: _.glyph }), /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-label": "",
- children: _.label
- })]
- }),
- /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- "data-junk-action": "dispose",
- title: "移入回收站",
- "aria-label": "移入回收站",
- ...w("dispose"),
- onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, H.jsx)(DA, { name: "trash" }), /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-label": "",
- children: "移入回收站"
- })]
- }),
- /* @__PURE__ */ (0, H.jsx)("span", {
- "data-junk-state": "",
- "aria-live": "polite",
- children: d
- })
- ]
- })
- ]
- });
+function sj(e, t, n) {
+ return {
+ min: t === void 0 ? void 0 : e.min + t,
+ max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
+ };
}
-var Uue = (0, V.memo)(Hue);
-({
- medium: "h-9 rounded-2lg p-2 text-body-medium",
- small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}).medium;
-//#endregion
-//#region src/junk-queue.ts
-var kA = [
- [
- "",
- "全部",
- "layout-grid"
- ],
- [
- "video",
- "视频",
- "play"
- ],
- [
- "image",
- "图片",
- "pics"
- ],
- [
- "archive",
- "压缩包",
- "file-archive"
- ],
- [
- "audio",
- "音频",
- "file-audio"
- ],
- [
- "url",
- "网址",
- "globe"
- ],
- [
- "other",
- "其它",
- "hard-drive"
- ]
-];
-function AA(e = "", t = "pending") {
- let n = new URLSearchParams();
- e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
- let r = n.toString();
- return `/junk-files${r ? `?${r}` : ""}`;
+function Hue(e, { top: t, left: n, bottom: r, right: i }) {
+ return {
+ x: sj(e.x, n, i),
+ y: sj(e.y, t, r)
+ };
}
-function Wue(e) {
- return e === "dismissed" ? {
- view: "pending",
- label: "返回待判断",
- glyph: "rotate-ccw",
- href: AA("", "pending")
- } : {
- view: "dismissed",
- label: "已排除",
- glyph: "eye-off",
- href: AA("", "dismissed")
+function cj(e, t) {
+ let n = t.min - e.min, r = t.max - e.max;
+ return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
+ min: n,
+ max: r
};
}
-var Gue = (e) => e === "dismissed" ? "已排除" : "待判断";
-//#endregion
-//#region src/react/components/collection-summary.tsx
-function jA({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-collection-summary": "",
- className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
- max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4
- dark:bg-background-primary-default`,
- children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, H.jsx)("strong", {
- className: "text-display-4-medium tabular-nums text-text-primary",
- children: r ? /* @__PURE__ */ (0, H.jsx)("span", {
- "data-skeleton": "count",
- "aria-hidden": !0,
- className: "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen"
- }) : t
- })]
- }), n ? /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-regular text-text-secondary",
- children: n
- }) : null]
- });
+function Uue(e, t) {
+ return {
+ x: cj(e.x, t.x),
+ y: cj(e.y, t.y)
+ };
}
-//#endregion
-//#region src/react/junk-queue/junk-count.tsx
-function MA({ name: e }) {
- return /* @__PURE__ */ (0, H.jsx)("svg", {
- viewBox: "0 0 24 24",
- "aria-hidden": "true",
- children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
- });
+function Wue(e, t) {
+ let n = .5, r = qC(e), i = qC(t);
+ return i > r ? n = /* @__PURE__ */ jy(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ jy(e.min, e.max - i, t.min)), Cy(0, 1, n);
}
-function NA({ scope: e, count: t }) {
- return t ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [" ", /* @__PURE__ */ (0, H.jsx)("span", {
- "data-count-badge": `junk:${e}`,
- children: t.toLocaleString()
- })] }) : null;
+function Gue(e, t) {
+ let n = {};
+ return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-function Kue({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = HE(), a = (0, V.useRef)(null), { kind: o, view: s } = e, c = pa(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? kA.map(([e]) => TA(t, e)).join(",") : ""}`), l = Wue(s), u = (e) => {
- let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || AA()));
- }, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-junk-count": "",
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- "data-junk-summary": "",
- "aria-live": "polite",
- children: /* @__PURE__ */ (0, H.jsx)(jA, {
- label: Gue(s),
- figure: d,
- pending: !t && !n,
- flush: !0
- })
- }), /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-junk-filters-frame": "",
- "data-filter-glass": "",
- "data-glass-pane": "",
- children: [/* @__PURE__ */ (0, H.jsx)("span", {
- ref: a,
- "data-view-glide": "",
- "aria-hidden": "true"
- }), /* @__PURE__ */ (0, H.jsxs)("nav", {
- ref: i,
- "data-junk-filters": "",
- "aria-label": "垃圾文件分类",
- onClick: u,
- onPointerLeave: c.leave,
- children: [
- kA.map(([e, n, r]) => /* @__PURE__ */ (0, H.jsxs)("a", {
- href: AA(e, s),
- "data-junk-kind-link": e,
- "aria-current": e === o ? "page" : void 0,
- onPointerEnter: c.hover,
- children: [
- /* @__PURE__ */ (0, H.jsx)(MA, { name: r }),
- n,
- /* @__PURE__ */ (0, H.jsx)(NA, {
- scope: e,
- count: t ? TA(t, e) : 0
- })
- ]
- }, e || "all")),
- /* @__PURE__ */ (0, H.jsx)("i", {
- "data-junk-divider": "",
- "aria-hidden": "true"
- }),
- /* @__PURE__ */ (0, H.jsxs)("a", {
- href: l.href,
- "data-junk-view-link": l.view,
- "aria-current": s === "dismissed" ? "page" : void 0,
- onPointerEnter: s === "dismissed" ? void 0 : c.hover,
- children: [
- /* @__PURE__ */ (0, H.jsx)(MA, { name: l.glyph }),
- l.label,
- /* @__PURE__ */ (0, H.jsx)(NA, {
- scope: "dismissed",
- count: Number(t?.dismissed_total || 0)
- })
- ]
- })
- ]
- })]
- })]
- });
+var lj = .35;
+function Kue(e = lj) {
+ return e === !1 ? e = 0 : e === !0 && (e = lj), {
+ x: uj(e, "left", "right"),
+ y: uj(e, "top", "bottom")
+ };
}
-//#endregion
-//#region src/react/junk-queue/junk-queue-page.tsx
-var que = rr("check"), Jue = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Yue(e) {
- let t = {
- kind: e.kind,
- view: e.view
- }, n = Cn({
- queryKey: EA(t, e.revision),
- queryFn: ({ signal: e }) => Vue(t, e),
- placeholderData: (e, n) => n && Jue(n.queryKey, t) ? e : void 0
- });
- (0, V.useEffect)(() => {
- n.isFetching || e.settled?.(e.revision);
- }, [n.isFetching, e.revision]);
- let r = Xue(e.countRow), i = n.isPending;
- (0, V.useLayoutEffect)(() => {
- let t = e.countRow;
- t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
- }, [e.countRow, i]), (0, V.useLayoutEffect)(() => {
- r && n.data && we(r, "junk");
- }, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)(Kue, {
- route: t,
- page: n.data,
- failed: n.isError && !n.data,
- onNavigate: a
- }), r) : null;
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [o, /* @__PURE__ */ (0, H.jsx)(Zue, {
- props: e,
- data: n.data,
- pending: i,
- error: n.data ? null : n.error,
- retry: () => void n.refetch()
- }, `${t.view}:${t.kind}`)] });
+function uj(e, t, n) {
+ return {
+ min: dj(e, t),
+ max: dj(e, n)
+ };
}
-function Xue(e) {
- let [t, n] = (0, V.useState)(null);
- return (0, V.useLayoutEffect)(() => {
- if (!e) return;
- let t = e.ownerDocument.createElement("div");
- return t.className = "peach-react", e.replaceChildren(t), n(t), () => {
- t.remove(), n(null);
- };
- }, [e]), t;
+function dj(e, t) {
+ return typeof e == "number" ? e : e[t] || 0;
}
-function Zue({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Bn(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, V.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, V.useCallback)(() => {
- d?.() !== !1 && c((e) => e + 1);
- }, [d]);
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- "data-junk-body": "",
- "data-grid-reveal": a.fading ? "" : void 0,
- children: [a.layer, (() => {
- if (n) return null;
- if (!t) return /* @__PURE__ */ (0, H.jsx)(Vn, {
- message: m(r),
- onRetry: i
+//#endregion
+//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
+var que = /* @__PURE__ */ new WeakMap(), Jue = class {
+ constructor(e) {
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
+ x: 0,
+ y: 0
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ZS(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
+ }
+ start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
+ let { presenceContext: r } = this.visualElement;
+ if (r && r.isPresent === !1) return;
+ let i = (e) => {
+ t && this.snapToCursor(QA(e).point), this.stopAnimation();
+ }, a = (e, t) => {
+ let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
+ if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = zre(n), !this.openDragLock)) return;
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), fw((e) => {
+ let t = this.getAxisMotionValue(e).get() || 0;
+ if (xb.test(t)) {
+ let { projection: n } = this.visualElement;
+ if (n && n.layout) {
+ let r = n.layout.layoutBox[e];
+ r && (t = qC(r) * (parseFloat(t) / 100));
+ }
+ }
+ this.originPoint[e] = t;
+ }), i && $y.update(() => i(e, t), !1, !0), sS(this.visualElement, "transform");
+ let { animationState: a } = this.visualElement;
+ a && a.setActive("whileDrag", !0);
+ }, o = (e, t) => {
+ this.latestPointerEvent = e, this.latestPanInfo = t;
+ let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
+ if (!n && !this.openDragLock) return;
+ let { offset: o } = t;
+ if (r && this.currentDirection === null) {
+ this.currentDirection = Xue(o), this.currentDirection !== null && i && i(this.currentDirection);
+ return;
+ }
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && $y.update(() => a(e, t), !1, !0);
+ }, s = (e, t) => {
+ this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
+ }, c = () => {
+ let { dragSnapToOrigin: e } = this.getProps();
+ (e || this.constraints) && this.startAnimation({
+ x: 0,
+ y: 0
});
- if (!l.length) {
- let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: que,
- title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
- });
+ }, { dragSnapToOrigin: l } = this.getProps();
+ this.panSession = new nj(e, {
+ onSessionStart: i,
+ onStart: a,
+ onMove: o,
+ onSessionEnd: s,
+ resumeAnimation: c
+ }, {
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
+ dragSnapToOrigin: l,
+ distanceThreshold: n,
+ contextWindow: ej(this.visualElement),
+ element: this.visualElement.current
+ });
+ }
+ stop(e, t) {
+ let n = e || this.latestPointerEvent, r = t || this.latestPanInfo, i = this.isDragging;
+ if (this.cancel(), !i || !r || !n) return;
+ let { velocity: a } = r;
+ this.startAnimation(a);
+ let { onDragEnd: o } = this.getProps();
+ o && $y.postRender(() => o(n, r));
+ }
+ cancel() {
+ this.isDragging = !1;
+ let { projection: e, animationState: t } = this.visualElement;
+ e && (e.isAnimationBlocked = !1), this.endPanSession();
+ let { dragPropagation: n } = this.getProps();
+ !n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
+ }
+ endPanSession() {
+ this.panSession && this.panSession.end(), this.panSession = void 0;
+ }
+ updateAxis(e, t, n) {
+ let { drag: r } = this.getProps();
+ if (!n || !pj(e, r, this.currentDirection)) return;
+ let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
+ this.constraints && this.constraints[e] && (a = Vue(a, this.constraints[e], this.elastic[e])), i.set(a);
+ }
+ resolveConstraints() {
+ let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
+ e && YA(e) ? this.constraints ||= this.resolveRefConstraints() : this.constraints = e && n ? Hue(n.layoutBox, e) : !1, this.elastic = Kue(t), r !== this.constraints && !YA(e) && n && this.constraints && !this.hasMutatedConstraints && fw((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Gue(n.layoutBox[e], this.constraints[e]));
+ });
+ }
+ resolveRefConstraints() {
+ let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
+ if (!e || !YA(e)) return !1;
+ let n = e.current, { projection: r } = this.visualElement;
+ if (!r || !r.layout) return !1;
+ r.root && (r.root.scroll = void 0, r.root.updateScroll());
+ let i = hie(n, r.root, this.visualElement.getTransformPagePoint()), a = Uue(r.layout.layoutBox, i);
+ if (t) {
+ let e = t(fie(a));
+ this.hasMutatedConstraints = !!e, e && (a = fC(e));
+ }
+ return a;
+ }
+ startAnimation(e) {
+ let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = fw((o) => {
+ if (!pj(o, t, this.currentDirection)) return;
+ let c = s && s[o] || {};
+ (a === !0 || a === o) && (c = {
+ min: 0,
+ max: 0
+ });
+ let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
+ type: "inertia",
+ velocity: n ? e[o] : 0,
+ bounceStiffness: l,
+ bounceDamping: u,
+ timeConstant: 750,
+ restDelta: 1,
+ restSpeed: 10,
+ ...i,
+ ...c
+ };
+ return this.startAxisValueAnimation(o, d);
+ });
+ return Promise.all(c).then(o);
+ }
+ startAxisValueAnimation(e, t) {
+ let n = this.getAxisMotionValue(e);
+ return sS(this.visualElement, e), n.start($x(e, n, 0, t, this.visualElement, !1));
+ }
+ stopAnimation() {
+ fw((e) => this.getAxisMotionValue(e).stop());
+ }
+ getAxisMotionValue(e) {
+ let t = `_drag${e.toUpperCase()}`;
+ return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
+ }
+ snapToCursor(e) {
+ fw((t) => {
+ let { drag: n } = this.getProps();
+ if (!pj(t, n, this.currentDirection)) return;
+ let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
+ if (r && r.layout) {
+ let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
+ i.set(e[t] - Nb(n, a, .5) + o);
}
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("div", {
- "data-media-grid": "",
- "data-junk-grid": "",
- "data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, H.jsx)(Uue, {
- item: t,
- view: e.view,
- selected: e.selected.has(t.id),
- selectMode: e.selectMode,
- helpers: e.helpers,
- actions: e.actions
- }, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, H.jsx)(Que, { onMore: f }, s) : null] });
- })()]
- });
-}
-function Que({ onMore: e }) {
- let t = (0, V.useRef)(null);
- return (0, V.useEffect)(() => {
- let n = t.current;
- if (!n || typeof IntersectionObserver > "u") return;
- let r = new IntersectionObserver((t) => {
- t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: "320px" });
- return r.observe(n), () => r.disconnect();
- }, [e]), /* @__PURE__ */ (0, H.jsx)("div", {
- ref: t,
- "data-load-more": "",
- onClick: e,
- dangerouslySetInnerHTML: { __html: xe("继续载入中…") }
- });
-}
-//#endregion
-//#region src/react/library-processing/library-processing.ts
-var PA = "/api/library-processing", FA = ["library-processing"], IA = (e) => z(PA, e);
-async function LA(e) {
- await _.fetchQuery({
- queryKey: FA,
- queryFn: () => IA(e)
- });
+ });
+ }
+ scalePositionWithinConstraints() {
+ if (!this.visualElement.current) return;
+ let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
+ if (!YA(t) || !n || !this.constraints) return;
+ this.stopAnimation();
+ let r = {
+ x: 0,
+ y: 0
+ };
+ fw((e) => {
+ let t = this.getAxisMotionValue(e);
+ if (t && this.constraints !== !1) {
+ let n = t.get();
+ r[e] = Wue({
+ min: n,
+ max: n
+ }, this.constraints[e]);
+ }
+ });
+ let { transformTemplate: i } = this.visualElement.getProps();
+ this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), fw((t) => {
+ if (!pj(t, e, null)) return;
+ let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
+ n.set(Nb(i, a, r[t]));
+ }), this.visualElement.render();
+ }
+ addListeners() {
+ if (!this.visualElement.current) return;
+ que.set(this.visualElement, this);
+ let e = this.visualElement.current, t = $A(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Gre(i);
+ n && r && !a && this.start(t);
+ }), n, r = () => {
+ let { dragConstraints: t } = this.getProps();
+ YA(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Yue(e, t.current, () => this.scalePositionWithinConstraints()));
+ }, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), $y.read(r);
+ let o = Cw(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (fw((t) => {
+ let n = this.getAxisMotionValue(t);
+ n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
+ }), this.visualElement.render());
+ }));
+ return () => {
+ o(), t(), a(), s && s(), n && n();
+ };
+ }
+ getProps() {
+ let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = lj, dragMomentum: o = !0 } = e;
+ return {
+ ...e,
+ drag: t,
+ dragDirectionLock: n,
+ dragPropagation: r,
+ dragConstraints: i,
+ dragElastic: a,
+ dragMomentum: o
+ };
+ }
+};
+function fj(e) {
+ let t = !0;
+ return () => {
+ if (t) {
+ t = !1;
+ return;
+ }
+ e();
+ };
}
-var $ue = 2e3, ede = 1e4, RA = "连接中断,正在重新读取处理进度";
-function tde(e, t) {
- return e?.status === "running" ? $ue : t ? ede : !1;
+function Yue(e, t, n) {
+ let r = WS(e, fj(n)), i = WS(t, fj(n));
+ return () => {
+ r(), i();
+ };
}
-var nde = {
- reading_local: "读取本地资料",
- querying_metadata: "查询外部资料",
- fetching_cover: "采集缺失封面",
- writing_candidates: "保存资料候选"
-}, zA = {
- querying_metadata: "没有资料",
- fetching_cover: "没有封面"
-};
-function rde(e) {
- let t = Object.entries(e).filter(([e, t]) => zA[e] && t > 0).map(([e, t]) => `${zA[e]} ${t} 部`);
- return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
+function pj(e, t, n) {
+ return (t === !0 || t === e) && (n === null || n === e);
}
-function BA(e) {
- let t = nde[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
- return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
-}
-function ide(e) {
- let t = e.issue_preview || [];
- return t.length ? {
- label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
- items: t.map((e, t) => ({
- key: `${e.asset_id ?? "source"}-${t}`,
- label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
- href: e.asset_id ? `/item/${e.asset_id}` : "",
- note: e.message,
- hint: e.path || ""
- })),
- log: e.issues_log || ""
- } : null;
-}
-var VA = "peach.library-processing.announced", ade = 120;
-function ode(e, t, n) {
- if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < ade;
- if (!(!n && !r)) {
- try {
- if (e.job_id && localStorage.getItem(VA) === e.job_id) return;
- e.job_id && localStorage.setItem(VA, e.job_id);
- } catch {}
- t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
- }
+function Xue(e, t = 10) {
+ let n = null;
+ return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
//#endregion
-//#region src/react/components/menu-dialog.tsx
-function HA(e) {
- let t = Gw("hover");
- return /* @__PURE__ */ (0, H.jsx)(Kg, {
- ...e,
- ref: t
- });
-}
-//#endregion
-//#region src/react/boardui/components/base/buttons/link-button.tsx
-var UA = ia({
- base: [
- "inline-flex items-center justify-center gap-1 whitespace-nowrap",
- "font-sans select-none cursor-pointer rounded-sm",
- "underline-offset-3 hover:underline",
- "transition-colors duration-150 ease",
- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
- "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
- ].join(" "),
- size: {
- medium: "text-body-medium",
- small: "text-body-medium",
- xs: "text-caption-1-semibold"
- },
- icon: {
- medium: "size-5 shrink-0",
- small: "size-[18px] shrink-0",
- xs: "size-3.5 shrink-0"
- },
- variant: {
- primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
- secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
+//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
+var Zue = class extends dC {
+ constructor(e) {
+ super(e), this.removeGroupControls = ky, this.removeListeners = ky, this.controls = new Jue(e);
}
-});
-function WA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = ra(UA.base, UA.size[t], UA.variant[e], a), l = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- n ? /* @__PURE__ */ (0, H.jsx)(n, {
- className: UA.icon[t],
- "aria-hidden": !0
- }) : null,
- i != null && /* @__PURE__ */ (0, H.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, H.jsx)(r, {
- className: UA.icon[t],
- "aria-hidden": !0
- }) : null
- ] });
- if (s.href !== void 0) {
- let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, H.jsx)("a", {
- ref: e,
- href: o ? void 0 : t,
- "aria-disabled": o || void 0,
- className: c,
- ...n,
- children: l
+ mount() {
+ let { dragControls: e } = this.node.getProps();
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ky;
+ }
+ update() {
+ let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
+ e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
+ }
+ unmount() {
+ this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
+ }
+}, mj = (e) => (t, n) => {
+ e && $y.update(() => e(t, n), !1, !0);
+}, Que = class extends dC {
+ constructor() {
+ super(...arguments), this.removePointerDownListener = ky;
+ }
+ onPointerDown(e) {
+ this.session = new nj(e, this.createPanHandlers(), {
+ transformPagePoint: this.node.getTransformPagePoint(),
+ contextWindow: ej(this.node)
});
}
- let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, H.jsx)("button", {
- ref: u,
- type: d,
- disabled: o,
- className: c,
- ...f,
- children: l
- });
-}
-//#endregion
-//#region src/management.ts
-var sde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", cde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", lde = kT({
- padding: "none",
- bordered: "line",
- className: "overflow-hidden"
-}), ude = {
- split: "min-w-0 p-6",
- stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, dde = {
- split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
- stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
-}, fde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", pde = {
- neutral: "border-border-button-default bg-card-footer",
- error: "border-border-error-default bg-background-tertiary-error"
-}, mde = kT({
- padding: "none",
- radius: "surface",
- bordered: "line",
- className: "overflow-hidden"
-}), GA = "border-t border-border-button-default p-4 first:border-t-0";
-function KA({ tone: e = "neutral", status: t, children: n }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: `${fde} ${pde[e]}`,
- children: [t ? /* @__PURE__ */ (0, H.jsx)("p", {
- className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
- children: t
- }) : null, n]
- });
-}
-function qA({ id: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsx)("h2", {
- id: e,
- className: "text-title-2-medium! m-0! text-text-primary",
- children: t
- });
-}
-function JA({ id: e, gap: t = "none", children: n }) {
- return /* @__PURE__ */ (0, H.jsx)("h3", {
- id: e,
- className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
- children: n
- });
-}
-function YA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
- return /* @__PURE__ */ (0, H.jsxs)("section", {
- id: r,
- "aria-label": t,
- "aria-labelledby": n,
- ...o,
- className: `${lde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: ude[e],
- children: a
- }), i ? /* @__PURE__ */ (0, H.jsx)("footer", {
- className: dde[e],
- children: i
- }) : null]
- });
-}
-//#endregion
-//#region src/react/components/path-line.tsx
-function hde({ className: e }) {
- return /* @__PURE__ */ (0, H.jsx)("svg", {
- "aria-hidden": !0,
- viewBox: "0 0 24 24",
- fill: "none",
- stroke: "currentColor",
- strokeWidth: 2,
- strokeLinecap: "round",
- strokeLinejoin: "round",
- className: e,
- children: /* @__PURE__ */ (0, H.jsx)("use", { href: "#i-folder-open" })
- });
-}
-var gde = "打开文件管理器失败,请重试";
-function XA({ path: e, prefix: t, className: n, onRevealed: r }) {
- let [i, a] = (0, V.useState)(!1), [o, s] = (0, V.useState)(""), c = (0, V.useRef)(!0);
- (0, V.useEffect)(() => () => {
- c.current = !1;
- }, []);
- let l = async () => {
- if (!i) {
- a(!0), s("");
- try {
- await B("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
- } catch (e) {
- c.current && s(e instanceof jt ? e.message : gde);
- } finally {
- c.current && a(!1);
+ createPanHandlers() {
+ let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
+ return {
+ onSessionStart: mj(e),
+ onStart: mj(t),
+ onMove: mj(n),
+ onEnd: (e, t) => {
+ delete this.session, r && $y.postRender(() => r(e, t));
}
- }
- };
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, H.jsxs)("p", {
- className: ra("min-w-0 break-all", n),
- children: [t, e]
- }), /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: hde,
- size: "small",
- className: "shrink-0",
- "aria-label": "在资源管理器中显示",
- onClick: () => void l(),
- ...X(i)
- })]
- }), o ? /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-caption-1-regular text-text-error-primary",
- children: o
- }) : null]
- });
-}
-//#endregion
-//#region src/react/components/progress.tsx
-var ZA = 100, _de = .4;
-function QA({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * ZA;
- return /* @__PURE__ */ (0, H.jsxs)("svg", {
- role: "progressbar",
- "aria-label": e,
- "aria-valuemin": 0,
- "aria-valuemax": n,
- "aria-valuenow": t,
- viewBox: `0 0 ${ZA} 1`,
- preserveAspectRatio: "none",
- className: "h-1.5 w-full overflow-hidden rounded-full",
- children: [
- /* @__PURE__ */ (0, H.jsx)("rect", {
- width: ZA,
- height: 1,
- className: "fill-background-tertiary-default"
- }),
- /* @__PURE__ */ (0, H.jsx)("rect", {
- width: a(t),
- height: 1,
- className: "fill-border-focus-ring"
- }),
- r.map((e) => /* @__PURE__ */ (0, H.jsx)("rect", {
- x: a(e),
- width: _de,
- height: 1,
- className: "fill-background-secondary-default"
- }, e))
- ]
- });
-}
-//#endregion
-//#region src/react/components/task-progress.tsx
-function $A({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
- return /* @__PURE__ */ (0, H.jsx)("div", {
- "data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : kT({
- variant: "outlined",
- padding: "none",
- className: "flex flex-col gap-1.5 px-4 py-3.5"
- }),
- children: n && n > 0 ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(QA, {
- label: e,
- value: t,
- max: n
- }), /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-caption-1-regular text-text-secondary",
- children: e
- })] }) : /* @__PURE__ */ (0, H.jsx)(WO, { label: e })
- });
-}
-//#endregion
-//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function ej({ className: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsx)("div", {
- className: ra("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
- children: t
- });
-}
-function tj({ className: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsx)("p", {
- className: ra("w-full px-3 text-body-2-medium text-text-secondary", e),
- children: t
- });
-}
-function nj({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: ra("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
- children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-regular text-text-primary",
- children: e
- }), t && /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: t
- })]
- }), n]
- });
-}
-//#endregion
-//#region src/react/settings/section.tsx
-function rj({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
- let a = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [n ? /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex w-full flex-wrap items-center justify-between gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, H.jsx)(tj, { children: e })
- }), n]
- }) : /* @__PURE__ */ (0, H.jsx)(tj, { children: e }), /* @__PURE__ */ (0, H.jsx)(ej, { children: i })] });
- return r ? /* @__PURE__ */ (0, H.jsx)("form", {
- id: t,
- "aria-label": e,
- noValidate: !0,
- onSubmit: r,
- className: "flex w-full flex-col gap-2",
- children: a
- }) : /* @__PURE__ */ (0, H.jsx)("section", {
- id: t,
- "aria-label": e,
- className: "flex w-full flex-col gap-2",
- children: a
- });
-}
-function ij({ children: e }) {
- return /* @__PURE__ */ (0, H.jsx)("div", {
- className: "flex flex-col",
- children: e
- });
-}
-function aj({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
- children: t
- }) : /* @__PURE__ */ (0, H.jsx)("div", {
- className: "flex flex-col gap-4 py-4 pr-3",
- children: t
- });
-}
-function oj({ status: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
- children: [e ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
- children: e
- }) : null, t]
- });
-}
-function sj({ role: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsx)("p", {
- role: e,
- className: "text-body-2-regular text-text-secondary",
- children: t
- });
-}
-function cj({ children: e }) {
- return /* @__PURE__ */ (0, H.jsx)("p", {
- role: "alert",
- className: "text-body-2-regular text-text-error-primary",
- children: e
- });
-}
-function lj({ children: e }) {
- return /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-medium text-text-primary",
- children: e
- });
-}
-function uj({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, H.jsx)(WA, {
- href: e,
- target: "_blank",
- rel: "noopener noreferrer",
- size: "small",
- leadingIcon: n,
- trailingIcon: dE,
- className: "min-w-0 max-w-full",
- children: /* @__PURE__ */ (0, H.jsx)("span", {
- className: "min-w-0 whitespace-normal break-all",
- children: t
- })
- });
-}
-function dj({ children: e }) {
- return /* @__PURE__ */ (0, H.jsx)("dl", {
- className: "flex flex-col",
- children: e
- });
-}
-function fj({ term: e, children: t }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
- children: [/* @__PURE__ */ (0, H.jsx)("dt", {
- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, H.jsx)("dd", {
- className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
- children: t
- })]
- });
-}
-function pj({ summary: e, defaultOpen: t = !1, children: n }) {
- let r = (0, V.useId)(), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(!1), [s, c] = (0, V.useState)(t);
- return /* @__PURE__ */ (0, H.jsxs)("details", {
- ref: (e) => {
- i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);
- },
- children: [/* @__PURE__ */ (0, H.jsxs)("summary", {
- "aria-expanded": s,
- "aria-controls": r,
- onClick: (e) => {
- e.preventDefault(), !(!i.current || !a.current) && (je(i.current, a.current, !s), c(!s));
- },
- className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, H.jsx)(iE, {
- "aria-hidden": !0,
- className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
- }), e]
- }), /* @__PURE__ */ (0, H.jsx)("div", {
- ref: a,
- id: r,
- inert: !s,
- children: /* @__PURE__ */ (0, H.jsx)("div", {
- className: "flex flex-col gap-2 pt-3",
- children: n
- })
- })]
- });
-}
-function vde({ name: e }) {
- return /* @__PURE__ */ (0, H.jsx)("svg", {
- "aria-hidden": !0,
- viewBox: "0 0 24 24",
- fill: "none",
- className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
- });
-}
-function mj({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, H.jsx)("img", {
- src: e,
- alt: "",
- width: 16,
- height: 16,
- className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, H.jsx)(vde, { name: e });
-}
-//#endregion
-//#region src/react/library-processing/use-library-processing.ts
-function hj({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = Cn({
- queryKey: FA,
- queryFn: ({ signal: e }) => IA(e),
- refetchInterval: (e) => tde(e.state.data, r)
- }), [a, o] = (0, V.useState)(null), s = (0, V.useRef)(void 0), c = i.data;
- return (0, V.useEffect)(() => {
- if (!c) return;
- let n = s.current;
- s.current = c.status;
- let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && ode(c, e, r);
- }, [
- c,
- t,
- e
- ]), {
- job: i,
- settled: a,
- forget: () => o(null)
- };
-}
-//#endregion
-//#region src/react/library-processing/library-processing-card.tsx
-var yde = [
- {
- label: "扫描并补全资料",
- icon: lE,
- command: {}
- },
- {
- label: "只扫描",
- icon: pE,
- command: { stage: "scan" }
- },
- {
- label: "只采集",
- icon: Boe,
- command: { stage: "collect" }
+ };
+ }
+ mount() {
+ this.removePointerDownListener = $A(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ }
+ update() {
+ this.session && this.session.updateHandlers(this.createPanHandlers());
+ }
+ unmount() {
+ this.removePointerDownListener(), this.session && this.session.end();
+ }
+}, hj = !1, $ue = class extends V.Component {
+ componentDidMount() {
+ let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
+ i && (t.group && t.group.add(i), n && n.register && r && n.register(i), hj && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
+ this.safeToRemove();
+ }), i.setOptions({
+ ...i.options,
+ layoutDependency: this.props.layoutDependency,
+ onExitComplete: () => this.safeToRemove()
+ })), kw.hasEverUpdated = !0;
+ }
+ getSnapshotBeforeUpdate(e) {
+ let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
+ return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
+ ...a.options,
+ layoutDependency: t
+ }), hj = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || $y.postRender(() => {
+ let e = a.getStack();
+ (!e || !e.members.length) && this.safeToRemove();
+ })), null) : null;
+ }
+ componentDidUpdate() {
+ let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
+ n && (n.options.layoutAnchor = t, n.root.didUpdate(), ES.postRender(() => {
+ !n.currentAnimation && n.isLead() && this.safeToRemove();
+ }));
+ }
+ componentWillUnmount() {
+ let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
+ hj = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
+ }
+ safeToRemove() {
+ let { safeToRemove: e } = this.props;
+ e && e();
+ }
+ render() {
+ return null;
}
-], bde = ra(oD, sD, "text-body-2-medium"), xde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Sde = (e) => {
- let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
- if (!t && !n && !r && !i) return "";
- let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
- return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, Cde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Sde(e);
-function wde({ busy: e, onRun: t }) {
- let n = (0, V.useRef)(null), [r, i] = (0, V.useState)(!1), a = (n) => {
- e || (i(!1), t(n));
- };
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("span", {
- "data-button-group": !0,
- "data-split-button": !0,
- "data-variant": "primary",
- children: [/* @__PURE__ */ (0, H.jsx)(J, {
- leadingIcon: lE,
- onClick: () => a({}),
- ...X(e),
- children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, H.jsx)(J, {
- ref: n,
- iconOnly: !0,
- leadingIcon: nE,
- "aria-label": "更多扫描与采集方式",
- "aria-haspopup": "dialog",
- "aria-expanded": r,
- ...X(e),
- onClick: () => {
- e || i(!0);
- }
- })]
- }), /* @__PURE__ */ (0, H.jsx)(qh, {
- triggerRef: n,
- isOpen: r,
- onOpenChange: i,
- placement: "bottom end",
- offset: 4,
- className: aD,
- children: /* @__PURE__ */ (0, H.jsx)(HA, {
- "aria-label": "更多扫描与采集方式",
- className: "flex w-52 flex-col gap-1 outline-none",
- children: yde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- className: bde,
- onClick: () => a(n),
- children: [/* @__PURE__ */ (0, H.jsx)(t, {
- "aria-hidden": !0,
- className: "size-4 shrink-0"
- }), e]
- }, e))
- })
- })] });
-}
-function Tde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = ide(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = rde(e.notes || {}), c = HE();
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- "aria-live": "polite",
- className: "flex flex-col gap-4 empty:hidden",
- children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "warning",
- title: "处理较慢",
- children: xde
- }) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "error",
- action: o ? /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "primary",
- size: "small",
- onClick: r,
- children: "重试未完成项"
- }) : null,
- extra: a ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, H.jsxs)(pj, {
- summary: a.label,
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: "relative",
- children: /* @__PURE__ */ (0, H.jsx)("ul", {
- ref: c,
- className: "max-h-96 overflow-y-auto pr-3",
- children: a.items.map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
- className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",
- children: [
- e.href ? /* @__PURE__ */ (0, H.jsx)("a", {
- href: e.href,
- className: "text-body-2-medium underline-offset-4 hover:underline",
- children: e.label
- }) : /* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-body-2-medium",
- children: e.label
- }),
- /* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-caption-1-regular",
- children: e.note
- }),
- e.hint ? /* @__PURE__ */ (0, H.jsx)("code", {
- className: "text-caption-1-regular break-all",
- children: e.hint
- }) : null
- ]
- }, e.key))
- })
- }), a.log ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, H.jsx)(XA, {
- path: a.log,
- prefix: "完整记录:",
- className: "text-caption-1-regular",
- onRevealed: i
- })
- }) : null]
- })
- }) : null,
- children: t || e.error || "处理未完成,请重试"
- }) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "success",
- title: "处理完成",
- children: Cde(n)
- }) : null,
- e.status !== "running" && s ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "neutral",
- extra: e.issues_log ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, H.jsx)(XA, {
- path: e.issues_log,
- prefix: "完整记录:",
- className: "text-caption-1-regular",
- onRevealed: i
- })
- }) : null,
- children: s
- }) : null
- ]
- });
-}
-function gj(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = hj(e), o = Fn({
- mutationFn: (e) => B(PA, e),
- onSuccess: (e) => {
- a(), _.setQueryData(FA, e), _.invalidateQueries({ queryKey: FA });
- }
- });
- (0, V.useEffect)(() => {
- i && n?.();
- }, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? R(o.error) : r.isError ? r.data ? RA : R(r.error) : "", l = o.isPending || s.status === "running", u = BA(s), d = (e) => {
- l || (o.reset(), o.mutate(e));
- };
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, H.jsx)(YA, {
- layout: "stack",
- label: "扫描与采集",
- footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(WA, {
- href: "/scraping",
- size: "small",
- trailingIcon: rE,
- children: "来源和凭证"
- }),
- s.candidates ? /* @__PURE__ */ (0, H.jsx)(WA, {
- href: "/review",
- size: "small",
- trailingIcon: rE,
- children: "复核资料"
- }) : null,
- /* @__PURE__ */ (0, H.jsx)(wde, {
- busy: l,
- onRun: d
- })
- ] }),
- children: /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-col gap-2",
- children: [
- /* @__PURE__ */ (0, H.jsx)(JA, { children: "扫描与采集" }),
- /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: sde
- }),
- s.status === "running" ? /* @__PURE__ */ (0, H.jsx)($A, {
- embedded: !0,
- label: u,
- value: s.checked,
- total: s.total
- }) : null
- ]
- })
- }), /* @__PURE__ */ (0, H.jsx)(Tde, {
- state: s,
- problem: c,
- settled: i,
- onRetry: () => {
- !s.job_id || !s.retryable_asset_ids?.length || d({
- job_id: s.job_id,
- retry: s.retryable_asset_ids
- });
- },
- toast: t
- })]
- });
-}
-//#endregion
-//#region src/react/library-processing/library-processing-notice.tsx
-var _j = "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", Ede = {
- gray: `${_j} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${_j} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${_j} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function Dde({ value: e, max: t }) {
- let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, H.jsxs)("svg", {
- role: "progressbar",
- "aria-label": "任务完成率",
- "aria-valuemin": 0,
- "aria-valuemax": 100,
- "aria-valuenow": n,
- viewBox: "0 0 32 32",
- fill: "none",
- className: "size-8 shrink-0 -rotate-90 stroke-current",
- children: [/* @__PURE__ */ (0, H.jsx)("circle", {
- cx: "16",
- cy: "16",
- r: "13",
- strokeWidth: "4",
- className: "opacity-25"
- }), /* @__PURE__ */ (0, H.jsx)("circle", {
- cx: "16",
- cy: "16",
- r: "13",
- strokeWidth: "4",
- pathLength: 100,
- strokeDasharray: `${n} 100`,
- strokeLinecap: "round"
- })]
- });
-}
-function Ode(e) {
- let { job: t } = hj(e), n = t.data, r = t.isError ? n ? RA : R(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 ? "扫描与资料采集未完成" : BA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Uoe : Roe;
- return /* @__PURE__ */ (0, H.jsxs)("aside", {
- role: a ? "alert" : "status",
- className: Ede[s],
- children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, H.jsx)(Dde, {
- value: c,
- max: l
- }) : /* @__PURE__ */ (0, H.jsx)(d, {
- "aria-hidden": !0,
- className: "size-4 shrink-0"
- }), /* @__PURE__ */ (0, H.jsx)("p", {
- className: "min-w-0 text-body-2-regular",
- children: u
- })]
- }), /* @__PURE__ */ (0, H.jsx)(WA, {
- href: "/data-cleanup#libraryProcessing",
- size: "small",
- trailingIcon: rE,
- children: r || a ? "查看并处理" : "查看进度"
- })]
- });
-}
-//#endregion
-//#region src/react/playlists/playlists.ts
-var kde = "/api/playlists", vj = "/api/playlist", yj = ["playlists"], bj = (e) => z(kde, e);
-async function Ade(e) {
- await _.fetchQuery({
- queryKey: yj,
- queryFn: () => bj(e),
- staleTime: 0
- });
-}
-var xj = () => _.invalidateQueries({
- queryKey: yj,
- exact: !0
-}), jde = (e) => e.current_asset_id || e.preview_asset_id || null, Sj = (e) => `/poster?id=${e}&c=4`, Mde = (e) => B(vj, {
- action: "create",
- name: e,
- asset_ids: []
-}), Cj = (e, t) => B(vj, {
- action: "rename",
- id: e,
- name: t
-}), wj = (e) => B(vj, {
- action: "delete",
- id: e
-}), Nde = (e) => z(`${vj}?id=${e}`).catch(() => null);
-function Pde(e) {
- let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return B(vj, {
- action: "create",
- name: e.name,
- asset_ids: t,
- source_kind: e.source_kind,
- source_seed_asset_id: n !== null && t.includes(n) ? n : null
+function gj(e) {
+ let [t, n] = AA(), r = (0, V.useContext)(CA);
+ return (0, H.jsx)($ue, {
+ ...e,
+ layoutGroup: r,
+ switchLayoutGroup: (0, V.useContext)(JA),
+ isPresent: t,
+ safeToRemove: n
});
}
//#endregion
-//#region src/react/playlists/playlists-page.tsx
-var Fde = rr("ellipsis"), Ide = rr("pencil"), Lde = rr("trash"), Rde = rr("playlist"), Tj = ra(oD, sD, "text-body-2-medium"), Ej = "播放列表名称不能为空", Dj = (e) => async () => {
- try {
- await e();
- } finally {
- xj();
+//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
+var ede = {
+ pan: { Feature: Que },
+ drag: {
+ Feature: Zue,
+ ProjectionNode: qw,
+ MeasureLayout: gj
}
};
-function zde({ toast: e }) {
- let [t, n] = (0, V.useState)(""), [r, i] = (0, V.useState)(""), a = Fn({
- mutationFn: (e) => Mde(e),
- onSuccess: (t) => {
- n(""), i(""), xj(), e("已新建播放列表", { undo: Dj(() => wj(t.playlist.id)) });
- },
- onError: (e) => i(R(e) || "新建失败")
- });
- return /* @__PURE__ */ (0, H.jsxs)("form", {
- "data-playlist-create": "",
- "aria-label": "新建播放列表",
- onSubmit: (e) => {
- if (e.preventDefault(), !a.isPending) {
- if (!t.trim()) {
- i(Ej);
- return;
- }
- a.mutate(t);
- }
- },
- className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
- label: "新播放列表",
- placeholder: "输入名称",
- maxLength: 80,
- value: t,
- onChange: (e) => {
- n(e), i("");
- },
- validationBehavior: "aria",
- isInvalid: !!r,
- hint: r || void 0
- })
- }), /* @__PURE__ */ (0, H.jsx)(J, {
- type: "submit",
- ...X(a.isPending),
- children: "新建"
- })]
- });
+//#endregion
+//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
+function _j(e, t, n) {
+ let { props: r } = e;
+ e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
+ let i = r["onHover" + n];
+ i && $y.postRender(() => i(t, QA(t)));
}
-function Bde({ target: e, close: t, toast: n }) {
- let [r, i] = (0, V.useState)(""), [a, o] = (0, V.useState)(""), s = (0, V.useRef)(null);
- (0, V.useEffect)(() => {
+var tde = class extends dC {
+ mount() {
+ let { current: e } = this.node;
+ e && (this.unmount = Vre(e, (e, t) => (_j(this.node, t, "Start"), (e) => _j(this.node, e, "End"))));
+ }
+ unmount() {}
+}, nde = class extends dC {
+ constructor() {
+ super(...arguments), this.isActive = !1;
+ }
+ onFocus() {
+ let e = !1;
+ try {
+ e = this.node.current.matches(":focus-visible");
+ } catch {
+ e = !0;
+ }
+ !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
+ }
+ onBlur() {
+ !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
+ }
+ mount() {
+ this.unmount = Ay(Cw(this.node.current, "focus", () => this.onFocus()), Cw(this.node.current, "blur", () => this.onBlur()));
+ }
+ unmount() {}
+};
+//#endregion
+//#region node_modules/framer-motion/dist/es/gestures/press.mjs
+function vj(e, t, n) {
+ let { props: r } = e;
+ if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
+ e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
+ let i = r["onTap" + (n === "End" ? "" : n)];
+ i && $y.postRender(() => i(t, QA(t)));
+}
+var rde = class extends dC {
+ mount() {
+ let { current: e } = this.node;
if (!e) return;
- i(e.name), o("");
- let t = requestAnimationFrame(() => {
- s.current?.focus(), s.current?.select();
+ let { globalTapTarget: t, propagate: n } = this.node.props;
+ this.unmount = qre(e, (e, t) => (vj(this.node, t, "Start"), (e, { success: t }) => vj(this.node, e, t ? "End" : "Cancel")), {
+ useGlobalTarget: t,
+ stopPropagation: n?.tap === !1
});
- return () => cancelAnimationFrame(t);
- }, [e]);
- let c = Fn({
- mutationFn: ({ row: e, value: t }) => Cj(e.id, t),
- onSuccess: (e, { row: r }) => {
- t(), xj(), n("已重命名播放列表", { undo: Dj(() => Cj(r.id, r.name)) });
- },
- onError: (e) => o(R(e))
- });
- return /* @__PURE__ */ (0, H.jsx)(BE, {
- isOpen: !!e,
- onOpenChange: (e) => {
- e || t();
- },
- width: "form",
- children: /* @__PURE__ */ (0, H.jsxs)("form", {
- "data-playlist-rename": "",
- onSubmit: (t) => {
- if (t.preventDefault(), !e || c.isPending) return;
- let n = r.trim();
- if (!n) {
- o(Ej);
- return;
- }
- c.mutate({
- row: e,
- value: n
- });
- },
- className: "flex min-h-0 flex-col",
- children: [/* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, H.jsx)(wu, {
- slot: "title",
- className: "text-title-2-semibold text-text-primary",
- children: "编辑名称"
- }), /* @__PURE__ */ (0, H.jsx)(jE, {
- ref: s,
- label: "名称",
- placeholder: "输入名称",
- maxLength: 80,
- value: r,
- onChange: (e) => {
- i(e), o("");
- },
- validationBehavior: "aria",
- isInvalid: !!a,
- hint: a || void 0
- })]
- }), /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, H.jsx)(J, {
- variant: "secondary",
- onClick: t,
- children: "取消"
- }), /* @__PURE__ */ (0, H.jsx)(J, {
- type: "submit",
- ...X(c.isPending),
- children: "保存名称"
- })]
- })]
- })
- });
+ }
+ unmount() {}
+}, yj = /* @__PURE__ */ new WeakMap(), bj = /* @__PURE__ */ new WeakMap(), ide = (e) => {
+ let t = yj.get(e.target);
+ t && t(e);
+}, ade = (e) => {
+ e.forEach(ide);
+};
+function ode({ root: e, ...t }) {
+ let n = e || document;
+ bj.has(n) || bj.set(n, {});
+ let r = bj.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(ade, {
+ root: e,
+ ...t
+ })), r[i];
}
-function Vde({ name: e, onRename: t, onDelete: n }) {
- let r = (0, V.useRef)(null), [i, a] = (0, V.useState)(!1), o = (e) => {
- a(!1), e();
+function sde(e, t, n) {
+ let r = ode(t);
+ return yj.set(e, n), r.observe(e), () => {
+ yj.delete(e), r.unobserve(e);
};
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("button", {
- ref: r,
- type: "button",
- title: "更多操作",
- "aria-label": `播放列表操作:${e}`,
- "aria-haspopup": "dialog",
- "aria-expanded": i,
- "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, H.jsx)(Fde, {
- "aria-hidden": !0,
- className: "size-4.5"
- })
- }), /* @__PURE__ */ (0, H.jsx)(qh, {
- triggerRef: r,
- isOpen: i,
- onOpenChange: a,
- placement: "bottom end",
- offset: 4,
- className: aD,
- children: /* @__PURE__ */ (0, H.jsxs)(HA, {
- "aria-label": `播放列表操作:${e}`,
- className: "flex w-37.5 flex-col gap-0.5 outline-none",
- children: [/* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- className: Tj,
- onClick: () => o(t),
- children: [/* @__PURE__ */ (0, H.jsx)(Ide, {
- "aria-hidden": !0,
- className: "size-4 shrink-0"
- }), "编辑名称"]
- }), /* @__PURE__ */ (0, H.jsxs)("button", {
- type: "button",
- className: Tj,
- onClick: () => o(n),
- children: [/* @__PURE__ */ (0, H.jsx)(Lde, {
- "aria-hidden": !0,
- className: "size-4 shrink-0"
- }), "删除播放列表"]
- })]
- })
- })] });
}
-function Hde({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = Cn({
- queryKey: yj,
- queryFn: ({ signal: e }) => bj(e)
- }), [o, s] = (0, V.useState)(null), c = (0, V.useRef)(i);
- (0, V.useEffect)(() => {
- c.current !== i && (c.current = i, xj());
- }, [i]);
- let l = a.data;
- if (!l) return /* @__PURE__ */ (0, H.jsx)("div", {
- className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "error",
- title: "播放列表读取失败",
- children: a.error ? R(a.error) : "未取得播放列表,请刷新页面重试。"
- })
+//#endregion
+//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
+var cde = {
+ some: 0,
+ all: 1
+}, lde = class extends dC {
+ constructor() {
+ super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
+ }
+ startObserver() {
+ this.stopObserver?.();
+ let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
+ root: t ? t.current : void 0,
+ rootMargin: n,
+ threshold: typeof r == "number" ? r : cde[r]
+ }, o = (e) => {
+ let { isIntersecting: t } = e;
+ if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
+ t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
+ let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
+ a && a(e);
+ };
+ this.stopObserver = sde(this.node.current, a, o);
+ }
+ mount() {
+ this.startObserver();
+ }
+ update() {
+ if (typeof IntersectionObserver > "u") return;
+ let { props: e, prevProps: t } = this.node;
+ [
+ "amount",
+ "margin",
+ "root"
+ ].some(ude(e, t)) && this.startObserver();
+ }
+ unmount() {
+ this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
+ }
+};
+function ude({ viewport: e = {} }, { viewport: t = {} } = {}) {
+ return (n) => e[n] !== t[n];
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
+var dde = {
+ inView: { Feature: lde },
+ tap: { Feature: rde },
+ focus: { Feature: nde },
+ hover: { Feature: tde }
+}, fde = { layout: {
+ ProjectionNode: qw,
+ MeasureLayout: gj
+} }, pde = /*@__PURE__*/ Nue({
+ ...Lue,
+ ...dde,
+ ...ede,
+ ...fde
+}, Pue);
+//#endregion
+//#region node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs
+function xj(e, t, n) {
+ (0, V.useInsertionEffect)(() => e.on(t, n), [
+ e,
+ t,
+ n
+ ]);
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-motion-value.mjs
+function Sj(e) {
+ let t = wA(() => Xx(e)), { isStatic: n } = (0, V.useContext)(DA);
+ if (n) {
+ let [, n] = (0, V.useState)(e);
+ (0, V.useEffect)(() => t.on("change", n), []);
+ }
+ return t;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-combine-values.mjs
+function Cj(e, t) {
+ let n = Sj(t()), r = () => n.set(t());
+ return r(), TA(() => {
+ let t = () => $y.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+ return () => {
+ n.forEach((e) => e()), eb(r);
+ };
+ }), n;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-computed.mjs
+function mde(e) {
+ Yx.current = [], e();
+ let t = Cj(Yx.current, e);
+ return Yx.current = void 0, t;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-transform.mjs
+function wj(e, t, n, r) {
+ if (typeof e == "function") return mde(e);
+ if (n !== void 0 && !Array.isArray(n) && typeof t != "function") return hde(e, t, n, r);
+ let i = typeof t == "function" ? t : rie(t, n, r), a = Array.isArray(e) ? Tj(e, i) : Tj([e], ([e]) => i(e)), o = Array.isArray(e) ? void 0 : e.accelerate;
+ return o && !o.isTransformed && typeof t != "function" && Array.isArray(n) && r?.clamp !== !1 && (a.accelerate = {
+ ...o,
+ times: t,
+ keyframes: n,
+ isTransformed: !0,
+ ...r?.ease ? { ease: r.ease } : {}
+ }), a;
+}
+function Tj(e, t) {
+ let n = wA(() => []);
+ return Cj(e, () => {
+ n.length = 0;
+ let r = e.length;
+ for (let t = 0; t < r; t++) n[t] = e[t].get();
+ return t(n);
});
- let u = l.items ?? [], d = (e) => {
- fe({
- title: "删除播放列表",
- body: "这个播放列表将被删除,视频文件保留。",
- confirmLabel: "删除播放列表",
- danger: !0,
- onConfirm: async () => {
- let t = await Nde(e.id);
- await wj(e.id), xj(), r("已删除播放列表", t ? { undo: Dj(() => Pde(t)) } : void 0);
- }
- });
- };
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "mx-auto w-full max-w-board pt-1 pb-10.5",
- children: [
- /* @__PURE__ */ (0, H.jsxs)("header", {
- className: "mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch",
- children: [/* @__PURE__ */ (0, H.jsxs)("div", { children: [/* @__PURE__ */ (0, H.jsx)("h2", {
- className: "mb-1 text-display-4-medium! text-text-primary",
- children: "播放列表"
- }), /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, H.jsx)(zde, { toast: r })]
- }),
- u.length ? /* @__PURE__ */ (0, H.jsx)("div", {
- "data-playlist-grid": "",
- className: "card-grid-cover gap-4.5",
- children: u.map((r) => {
- let i = jde(r);
- return /* @__PURE__ */ (0, H.jsx)(pr, {
- "data-playlist-card": String(r.id),
- name: r.name,
- caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
- count: r.item_count,
- poster: r.preview_asset_id ? Sj(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(Sj),
- canFlip: n,
- faces: r.faces || [],
- onOpenEntity: t,
- ...i ? { onOpen: () => e(r.id, i) } : {},
- openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, H.jsx)(Vde, {
- name: r.name,
- onRename: () => s(r),
- onDelete: () => d(r)
- })
- }, r.id);
- })
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: Rde,
- title: "还没有播放列表",
- children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
- }),
- /* @__PURE__ */ (0, H.jsx)(Bde, {
- target: o,
- close: () => s(null),
- toast: r
- })
- ]
+}
+function hde(e, t, n, r) {
+ let i = wA(() => Object.keys(n)), a = wA(() => ({}));
+ for (let o of i) a[o] = wj(e, t, n[o], r);
+ return a;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-follow-value.mjs
+function gde(e, t = {}) {
+ let { isStatic: n } = (0, V.useContext)(DA), r = () => oS(e) ? e.get() : e;
+ if (n) return wj(r);
+ let i = Sj(r());
+ return (0, V.useInsertionEffect)(() => iie(i, e, t), [i, JSON.stringify(t)]), i;
+}
+//#endregion
+//#region node_modules/framer-motion/dist/es/value/use-spring.mjs
+function Ej(e, t = {}) {
+ return gde(e, {
+ type: "spring",
+ ...t
});
}
//#endregion
-//#region src/react/providers.tsx
-var Oj = null;
-function Ude() {
+//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
+function _de() {
+ !aC.current && oC();
+ let [e] = (0, V.useState)(iC.current);
+ return e;
+}
+//#endregion
+//#region node_modules/motion/dist/es/react.mjs
+var Dj = pde, Oj = null;
+function vde() {
return Oj?.isConnected || (Oj = document.createElement("div"), Oj.className = "peach-react", Oj.dataset.reactOverlays = "", document.body.append(Oj)), Oj;
}
function kj({ children: e }) {
return /* @__PURE__ */ (0, H.jsx)(an, {
client: _,
- children: /* @__PURE__ */ (0, H.jsx)(Fle, {
+ children: /* @__PURE__ */ (0, H.jsx)(pue, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, H.jsx)(Ih, {
- getContainer: Ude,
+ getContainer: vde,
children: e
})
})
});
}
//#endregion
+//#region src/react/components/selection-dock.tsx
+var Aj = "(prefers-reduced-motion: reduce)", yde = () => matchMedia(Aj).matches, bde = (e) => {
+ let t = matchMedia(Aj);
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
+};
+function xde({ children: e, count: t, label: n }) {
+ let r = iue(), i = (0, V.useSyncExternalStore)(bde, yde, () => !1), { isFocusVisible: a } = ks(), o = i || a, s = {
+ opacity: 0,
+ transform: "translate(-50%, 8px)"
+ };
+ return /* @__PURE__ */ (0, H.jsxs)(Dj.div, {
+ role: "group",
+ "aria-label": n,
+ "data-selection-dock": !0,
+ "data-glass-pane": "",
+ inert: !r,
+ "aria-hidden": !r || void 0,
+ initial: !o && s,
+ animate: {
+ opacity: 1,
+ transform: "translate(-50%, 0px)"
+ },
+ exit: {
+ ...s,
+ transition: { duration: o ? 0 : .12 }
+ },
+ transition: {
+ duration: o ? 0 : .16,
+ ease: [
+ .23,
+ 1,
+ .32,
+ 1
+ ]
+ },
+ children: [/* @__PURE__ */ (0, H.jsx)("span", {
+ role: "status",
+ className: "px-2 text-body-2-regular whitespace-nowrap text-text-primary",
+ children: t
+ }), e]
+ });
+}
+function jj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, H.jsx)(oue, { children: e ? /* @__PURE__ */ (0, H.jsx)(xde, { ...t }, "selection") : null });
+}
+//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var Aj = {
+var Mj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Wde(e, t = !1) {
+function Sde(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -38365,7 +37797,7 @@ function Wde(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ Mj
];
case "junk": return [
t ? {
@@ -38386,7 +37818,7 @@ function Wde(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ Mj
];
case "follow": return [
{
@@ -38407,7 +37839,7 @@ function Wde(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Aj
+ Mj
];
default: return [
{
@@ -38441,42 +37873,42 @@ function Wde(e, t = !1) {
glyph: "trash",
danger: !0
},
- Aj
+ Mj
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var jj = null, Mj = null, Nj = {
+var Nj = null, Pj = null, Fj = {
count: 0,
context: "catalog",
junkDismissed: !1
};
-function Pj() {
- let e = jj;
- if (!e || !Mj) return;
- let t = Nj;
- (0, kt.flushSync)(() => Mj.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(qde, {
+function Ij() {
+ let e = Nj;
+ if (!e || !Pj) return;
+ let t = Fj;
+ (0, kt.flushSync)(() => Pj.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(Tde, {
host: e,
props: t
}) })));
}
-var Gde = { render(e) {
- Nj = e, Pj();
+var Cde = { render(e) {
+ Fj = e, Ij();
} };
-function Kde(e) {
- return jj = e, Mj = (0, At.createRoot)(e.root), Pj(), Gde;
+function wde(e) {
+ return Nj = e, Pj = (0, At.createRoot)(e.root), Ij(), Cde;
}
-function qde({ host: e, props: t }) {
+function Tde({ host: e, props: t }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, H.jsx)(iA, {
+ children: /* @__PURE__ */ (0, H.jsx)(jj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Wde(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, H.jsxs)("button", {
+ children: Sde(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -38493,7 +37925,7 @@ function qde({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function Fj({ store: e, label: t, hidden: n }) {
+function Lj({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-glow-grid": "",
@@ -38519,11 +37951,11 @@ function Fj({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-function Jde(e) {
+function Ede(e) {
let t = (0, At.createRoot)(e.root);
- (0, kt.flushSync)(() => t.render(/* @__PURE__ */ (0, H.jsx)(Yde, { host: e })));
+ (0, kt.flushSync)(() => t.render(/* @__PURE__ */ (0, H.jsx)(Dde, { host: e })));
}
-function Yde({ host: e }) {
+function Dde({ host: e }) {
let { store: t } = e;
(0, V.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -38539,7 +37971,7 @@ function Yde({ host: e }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, H.jsx)(Fj, {
+ /* @__PURE__ */ (0, H.jsx)(Lj, {
store: t,
label: "光晕",
hidden: !n.on
@@ -38579,32 +38011,32 @@ function Yde({ host: e }) {
}
//#endregion
//#region src/player/host.ts
-var Ij = null;
-function Xde(e) {
- Ij = e;
+var Rj = null;
+function Ode(e) {
+ Rj = e;
}
-function Lj() {
- if (!Ij) throw Error("播放器还没有接上宿主(configurePlayer)");
- return Ij;
+function zj() {
+ if (!Rj) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return Rj;
}
//#endregion
//#region src/player/menu.ts
-var Rj = null;
-function Zde(e) {
- Rj = e;
+var Bj = null;
+function kde(e) {
+ Bj = e;
}
-function Qde() {
+function Ade() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var zj = null, Bj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function Vj() {
+var Vj = null, Hj = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function Uj() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && me(e, () => {
e.innerHTML = "";
- }), zj &&= (zj(), null);
+ }), Vj &&= (Vj(), null);
}
-async function $de(e) {
+async function jde(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -38617,12 +38049,12 @@ async function $de(e) {
return t.remove(), n;
}
}
-function efe(e) {
- let t = !!Rj?.inMiniplayer(e), n = e.peachItem, r = Rj?.kind(e) ?? "item", i = (t) => {
+function Mde(e) {
+ let t = !!Bj?.inMiniplayer(e), n = e.peachItem, r = Bj?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- $de(i(e)).then((e) => Lj().toast(e ? t : "复制失败,请手动复制地址栏", {
+ jde(i(e)).then((e) => zj().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -38634,11 +38066,11 @@ function efe(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => Rj?.expand()
+ run: () => Bj?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => Rj?.toMiniplayer()
+ run: () => Bj?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -38661,29 +38093,29 @@ function efe(e) {
run: () => s.click()
}), o;
}
-function tfe(e, t, n) {
- let r = Qde();
- Vj();
- let a = Lj().stage();
+function Nde(e, t, n) {
+ let r = Ade();
+ Uj();
+ let a = zj().stage();
a instanceof HTMLDialogElement && a.open && a.append(r), r.setAttribute("popover", "manual");
- let o = efe(e);
+ let o = Mde(e);
r.innerHTML = o.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${Bj(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? Bj(l("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${Hj(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? Hj(l("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), Ee(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let s = [...r.querySelectorAll("[data-player-menu]")];
s.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = o[Number(e.dataset.playerMenu)];
- Vj(), n?.run();
+ Uj(), n?.run();
};
});
let c = (e) => {
- r.contains(e.target) || Vj();
+ r.contains(e.target) || Uj();
}, u = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), Vj();
+ e.preventDefault(), e.stopPropagation(), Uj();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -38691,51 +38123,51 @@ function tfe(e, t, n) {
let t = s.indexOf(document.activeElement);
s[(t + (e.key === "ArrowDown" ? 1 : -1) + s.length) % s.length]?.focus();
}, d = (t) => {
- Oe(t, e.el()) && Vj();
+ Oe(t, e.el()) && Uj();
};
setTimeout(() => {
document.addEventListener("pointerdown", c, !0), document.addEventListener("keydown", u, !0), window.addEventListener("scroll", d, {
capture: !0,
passive: !0
});
- }, 0), zj = () => {
+ }, 0), Vj = () => {
document.removeEventListener("pointerdown", c, !0), document.removeEventListener("keydown", u, !0), window.removeEventListener("scroll", d, !0);
}, s[0]?.focus();
}
-function nfe(e) {
+function Pde(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tfe(e, t.clientX, t.clientY));
- }), e.on("dispose", Vj);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Nde(e, t.clientX, t.clientY));
+ }), e.on("dispose", Uj);
}
//#endregion
//#region src/player/registry.ts
-var Hj = null, Uj = () => Hj;
-function Wj(e) {
- Hj = e;
+var Wj = null, Gj = () => Wj;
+function Kj(e) {
+ Wj = e;
}
-function Gj(e) {
+function qj(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function Kj(e) {
+function Jj(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function rfe(e) {
+function Fde(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var qj = 3e3;
-function Jj(e, t) {
+var Yj = 3e3;
+function Xj(e, t) {
let n = Number(e) || 0, r = p(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function ife(e) {
+function Ide(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -38750,10 +38182,10 @@ function ife(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = rfe(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Fde(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > qj * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > Yj * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -38762,56 +38194,56 @@ function ife(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > qj;) t.shift();
+ }); t.length > 2 && a - t[0].at > Yj;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var Yj = 24;
-function Xj(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > Yj && e.splice(0, e.length - Yj);
+var Zj = 24;
+function Qj(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > Zj && e.splice(0, e.length - Zj);
}
-var Zj = "peach-player-panel";
-function Qj(e, t, n, r) {
- let a = [...Array(Math.max(0, Yj - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
+var $j = "peach-player-panel";
+function eM(e, t, n, r) {
+ let a = [...Array(Math.max(0, Zj - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / o));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${i(r)}">${s}</span>`;
}
-function afe() {
+function Lde() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${l("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function $j(e, t = "") {
+function tM(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function eM(e, t = "") {
- let n = $j(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function nM(e, t = "") {
+ let n = tM(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function tM(e, t, n = "", r = null) {
+function rM(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : eM(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : nM(t, n);
}
-function nM(e) {
+function iM(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function ofe(e, t) {
- return e > 0 ? nM(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : nM(0);
+function Rde(e, t) {
+ return e > 0 ? iM(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : iM(0);
}
//#endregion
//#region src/player/controls.ts
-function rM(e, t, n = "") {
+function aM(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -38822,24 +38254,24 @@ function rM(e, t, n = "") {
};
return o(), o;
}
-function sfe(e, t = !0) {
- let n = Lj(), r = n.settings();
+function zde(e, t = !0) {
+ let n = zj(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var iM = /* @__PURE__ */ new WeakMap();
-function aM(e) {
+var oM = /* @__PURE__ */ new WeakMap();
+function sM(e) {
if (!e) return;
- let t = Lj().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), iM.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = zj().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), oM.get(e)?.(t ? "默认视图" : "影院模式");
}
-function oM(e, t = !0) {
- let n = Lj(), r = n.settings();
+function cM(e, t = !0) {
+ let n = zj(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), aM(i?.querySelector("[data-player-theater]")), Gj(Uj());
+ i?.toggleAttribute("data-theater", r.theaterMode), sM(i?.querySelector("[data-player-theater]")), qj(Gj());
}
-function cfe(e) {
- let t = Lj().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Bde(e) {
+ let t = zj().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -38856,14 +38288,14 @@ function cfe(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => u(t, e)) : requestAnimationFrame((e) => u(t, e));
}, u = (t, n) => {
if (!(i || t !== o)) {
- if (!Lj().settings().ambientMode) {
+ if (!zj().settings().ambientMode) {
s();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, c()), l(t));
}
}, d = () => {
- i || !Lj().settings().ambientMode || (c(), e.paused || l(++o));
+ i || !zj().settings().ambientMode || (c(), e.paused || l(++o));
}, f = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? d() : (o++, s());
@@ -38872,7 +38304,7 @@ function cfe(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function lfe(e, t, n = 0, r = null) {
+function Vde(e, t, n = 0, r = null) {
let a = e.getChild("controlBar")?.el();
if (!a || a.querySelector("[data-player-quality]")) return;
let o = document.createElement("div");
@@ -38882,7 +38314,7 @@ function lfe(e, t, n = 0, r = null) {
let s = a.querySelector(".vjs-fullscreen-control");
a.insertBefore(o, s || null);
let c = o.querySelector("button"), u = o.querySelector("[data-player-quality-badge]");
- rM(c, "设置");
+ aM(c, "设置");
let d = o.querySelector(".vjs-peach-settings-menu"), f = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, p = r, m = "auto", h = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -38924,11 +38356,11 @@ function lfe(e, t, n = 0, r = null) {
active: t
};
}, v = () => d.getAttribute("aria-hidden") !== "true", y = (e) => {
- d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(Zj, { detail: "settings" }));
+ d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent($j, { detail: "settings" }));
}, b = () => y(!1), x = (e) => {
e.detail !== "settings" && b();
};
- document.addEventListener(Zj, x);
+ document.addEventListener($j, x);
let S = null, C = (e, t) => {
let n = d.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !v()) return d.replaceChildren(r), d.style.height = "", r;
@@ -38942,12 +38374,12 @@ function lfe(e, t, n = 0, r = null) {
}, 250);
}), r;
}, w = (e, t) => e.querySelector(t), T = (t = 0) => {
- let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${Lj().settings().ambientMode}">
+ let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${zj().settings().ambientMode}">
${l("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${l("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${l("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${l("player-quality")}<span>清晰度</span><b>${i(n.label)}</b>${l("player-menu-next")}</button></div>`, t);
w(a, "[data-player-ambient]").onclick = () => {
- sfe(!Lj().settings().ambientMode), T();
+ zde(!zj().settings().ambientMode), T();
}, w(a, "[data-player-speed]").onclick = () => k(), w(a, "[data-player-quality-view]").onclick = () => A();
}, E = .05, D = [
1,
@@ -39004,22 +38436,22 @@ function lfe(e, t, n = 0, r = null) {
}), f?.on?.(["addqualitylevel", "removequalitylevel"], () => {
v() ? T() : _();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", j), document.removeEventListener(Zj, x), S && clearTimeout(S);
- }), _(), ufe(e, o), dfe(e), (e) => {
+ document.removeEventListener("pointerdown", j), document.removeEventListener($j, x), S && clearTimeout(S);
+ }), _(), Hde(e, o), Ude(e), (e) => {
p = e?.length ? e : null, v() ? T() : _();
};
}
-function ufe(e, t) {
+function Hde(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = Lj().settings().theaterMode, i = document.createElement("div");
+ let r = zj().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${l(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- iM.set(a, rM(a, "影院模式", "T")), aM(a), a.onclick = (e) => {
- e.stopPropagation(), oM(!Lj().settings().theaterMode);
+ oM.set(a, aM(a, "影院模式", "T")), sM(a), a.onclick = (e) => {
+ e.stopPropagation(), cM(!zj().settings().theaterMode);
};
}
-function dfe(e) {
+function Ude(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -39031,7 +38463,7 @@ function dfe(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = rM(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
+ }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = aM(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
let t = e.paused() || e.ended(), n = t ? c : u;
s && (f ? s.style.setProperty("d", `path("${n}")`) : s.setAttribute("d", n)), d(t ? "播放" : "暂停");
};
@@ -39042,7 +38474,7 @@ function dfe(e) {
], p), p();
let m = t.querySelector(":scope>.vjs-volume-panel"), h = m?.querySelector(":scope>.vjs-mute-control"), g = i(h, "player-volume");
g && o("player-volume-muted").forEach((e) => g.append(e.cloneNode(!0)));
- let _ = rM(h, "静音", "M"), v = () => {
+ let _ = aM(h, "静音", "M"), v = () => {
let t = e.muted() || e.volume() === 0;
g && (g.dataset.silent = String(t), g.dataset.loud = String(!t && e.volume() > .5)), _(t ? "取消静音" : "静音");
};
@@ -39068,7 +38500,7 @@ function dfe(e) {
});
let C = document.createElement("button"), w = !1;
C.type = "button", C.className = "vjs-peach-time vjs-control", C.dataset.playerTime = "", C.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let T = C.querySelector(".vjs-peach-time-text"), E = rM(C, "显示剩余时间"), D = () => {
+ let T = C.querySelector(".vjs-peach-time-text"), E = aM(C, "显示剩余时间"), D = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = a(Math.max(0, n - t));
T.textContent = `${w ? `-${r}` : a(t)} / ${a(n)}`, C.dataset.remaining = String(w), E(w ? "显示已播放时间" : "显示剩余时间", w ? `剩余 ${r},总时长 ${a(n)};点击显示已播放时间` : `已播放 ${a(t)},总时长 ${a(n)};点击显示剩余时间`);
};
@@ -39081,11 +38513,11 @@ function dfe(e) {
], D), D(), m ? m.insertAdjacentElement("afterend", C) : t.append(C);
let O = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(O, "player-pip");
- let k = rM(O, "画中画");
+ let k = aM(O, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => k(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = rM(A, "全屏", "F"), N = () => {
+ let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = aM(A, "全屏", "F"), N = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), Gj(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), qj(e);
};
e.on([
"fullscreenchange",
@@ -39105,7 +38537,7 @@ function dfe(e) {
});
let F = document.createElement("div");
F.className = "vjs-peach-expand vjs-control", F.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${l("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, ee.prepend(F);
- let I = F.querySelector("button"), te = rM(I, "展开控件"), ne = (t) => {
+ let I = F.querySelector("button"), te = aM(I, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), I.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
I.onclick = (t) => {
@@ -39117,7 +38549,7 @@ function dfe(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
}
-function ffe(e, n, r = {}) {
+function Wde(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!i || i.querySelector("[data-player-seek-preview]")) return;
let o = r.thumbnail !== !1, s = document.createElement("div");
@@ -39150,13 +38582,13 @@ function ffe(e, n, r = {}) {
i.removeEventListener("pointermove", g), i.removeEventListener("pointerleave", _);
});
}
-function pfe(e, t) {
+function Gde(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => p(e.duration()) || p(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(Lj().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(zj().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -39197,11 +38629,11 @@ function pfe(e, t) {
} catch {}
});
}
-function mfe(e) {
+function Kde(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
!t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function hfe(e, n) {
+function qde(e, n) {
t(`/api/assets/${n}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -39216,7 +38648,7 @@ function hfe(e, n) {
}
//#endregion
//#region src/player/dispose.ts
-function sM(e) {
+function lM(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -39234,23 +38666,23 @@ function sM(e) {
}
//#endregion
//#region src/player/stream.ts
-function cM() {
+function uM() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function lM(e, t) {
+function dM(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function gfe(e) {
+function Jde(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function uM(e, n) {
- let r = gfe(e);
+async function fM(e, n) {
+ let r = Jde(e);
if (r) return r;
try {
let r = await t(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(n)}`);
@@ -39259,9 +38691,9 @@ async function uM(e, n) {
type: r.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return lM(e, n);
+ return dM(e, n);
}
-function dM(e) {
+function pM(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -39270,21 +38702,21 @@ function dM(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var fM = "";
-function pM() {
- return fM;
+var mM = "";
+function hM() {
+ return mM;
}
-function mM() {
- return fM ||= cM(), fM;
+function gM() {
+ return mM ||= uM(), mM;
}
-var _fe = (e) => lM(e, mM()), vfe = (e) => uM(e, mM());
-function hM() {
- let e = fM;
- e && (fM = "", dM(e));
+var Yde = (e) => dM(e, gM()), Xde = (e) => fM(e, gM());
+function _M() {
+ let e = mM;
+ e && (mM = "", pM(e));
}
//#endregion
//#region src/player/telemetry.ts
-function gM(e, n, r = {}) {
+function vM(e, n, r = {}) {
if (!n) return;
let i = 0, a = 0, o = 0, s = null;
n.addEventListener("seeking", () => {
@@ -39332,7 +38764,7 @@ function gM(e, n, r = {}) {
d(), u(!1);
}, { once: !0 }), l();
}
-function yfe(e, n) {
+function Zde(e, n) {
let r = 0, i = 0, a = !1, o = null, s = (r) => {
let a = p(e.duration) || p(n.duration);
!i && !r || (t("/api/follow/activity", {
@@ -39368,7 +38800,7 @@ function yfe(e, n) {
}
//#endregion
//#region src/player/videojs.ts
-var _M = "/vendor/videojs/8.24.1/", vM = (e) => new Promise((t, n) => {
+var yM = "/vendor/videojs/8.24.1/", bM = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -39380,20 +38812,20 @@ var _M = "/vendor/videojs/8.24.1/", vM = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), yM = () => globalThis.videojs, bM = null;
-function xM() {
- let e = yM();
- return e ? Promise.resolve(e) : (bM ??= vM(`${_M}video.min.js`).then(() => vM(`${_M}lang/zh-CN.js`)).then(() => {
- let e = yM();
+}), xM = () => globalThis.videojs, SM = null;
+function CM() {
+ let e = xM();
+ return e ? Promise.resolve(e) : (SM ??= bM(`${yM}video.min.js`).then(() => bM(`${yM}lang/zh-CN.js`)).then(() => {
+ let e = xM();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw bM = null, e;
- }), bM);
+ throw SM = null, e;
+ }), SM);
}
//#endregion
//#region src/player/immerse-player.ts
-var bfe = {
+var Qde = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -39405,37 +38837,37 @@ var bfe = {
errorDisplay: !1,
textTrackSettings: !1
};
-function xfe(e, t) {
+function $de(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([uM(n, r), xM().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([fM(n, r), CM().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = lM(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = dM(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, bfe);
+ let t = s(e, Qde);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- gM(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ vM(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, dM(r), i ? sM(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, pM(r), i ? lM(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var SM = /* @__PURE__ */ new WeakMap(), CM = null, wM = null, TM = null;
-function EM() {
- CM &&= (clearInterval(CM), null), wM &&= (clearInterval(wM), null), TM &&= (clearTimeout(TM), null);
+var wM = /* @__PURE__ */ new WeakMap(), TM = null, EM = null, DM = null;
+function OM() {
+ TM &&= (clearInterval(TM), null), EM &&= (clearInterval(EM), null), DM &&= (clearTimeout(DM), null);
}
-async function Sfe(e, t, n, r = {}) {
- let o = Uj();
+async function efe(e, t, n, r = {}) {
+ let o = Gj();
if (o && !o.isDisposed()) return o;
- let c = Lj(), u = r.resume ?? null;
+ let c = zj(), u = r.resume ?? null;
u?.autoplay && (n = !0);
- let d = () => r.source ? Promise.resolve(r.source) : vfe(e), f;
+ let d = () => r.source ? Promise.resolve(r.source) : Xde(e), f;
try {
- f = await xM();
+ f = await CM();
} catch {
return t.controls = !0, d().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -39455,7 +38887,7 @@ async function Sfe(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- Wj(m), m.peachItem = e, nfe(m), m.on("loadedmetadata", () => {
+ Kj(m), m.peachItem = e, Pde(m), m.on("loadedmetadata", () => {
let e = m.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && m.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -39463,7 +38895,7 @@ async function Sfe(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, _ = Number(r.size ?? e.size) || 0, v = ife(Jj(_, e.duration)), y = 0, b = !1, x = () => Uj() === m && !m.isDisposed(), S = () => {
+ }, _ = Number(r.size ?? e.size) || 0, v = Ide(Xj(_, e.duration)), y = 0, b = !1, x = () => Gj() === m && !m.isDisposed(), S = () => {
if (!h || b || !x()) return;
let e = Number(m.duration());
(!Number.isFinite(e) || Math.abs(e - h) > Math.max(2, h * .001)) && (b = !0, m.duration(h), queueMicrotask(() => {
@@ -39474,15 +38906,15 @@ async function Sfe(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- SM.set(m, w), w.updateStats = () => {
+ wM.set(m, w), w.updateStats = () => {
let n = w.chrome?.statsPanel;
if (!n || n.hidden || !x()) return;
- let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = pM(), f = u ? $j(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = hM(), f = u ? tM(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
v.sample(t);
- let S = tM(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
+ let S = rM(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
y = T;
- let D = Kj(t);
- Xj(g.speed, S), Xj(g.activity, E), Xj(g.buffer, D);
+ let D = Jj(t);
+ Qj(g.speed, S), Qj(g.activity, E), Qj(g.buffer, D);
let O = String(e.name || ""), k = (O.includes(".") ? O.split(".").pop() || "" : u ? "" : String(m.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", A = S ? `${(S / 1e6).toFixed(1)} Mbps` : "—", j = u || v.bitrate > 0, M = u ? [
"网络活动",
`${p ? s(p) : "—"} · ${f.length} 请求`,
@@ -39500,17 +38932,17 @@ async function Sfe(e, t, n, r = {}) {
[
"连接速度",
A,
- Qj(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
+ eM(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
],
[
M[0],
M[1],
- Qj(g.activity, "activity", Math.max(1, ...g.activity), M[2])
+ eM(g.activity, "activity", Math.max(1, ...g.activity), M[2])
],
[
"缓冲健康",
`${D.toFixed(1)} 秒`,
- Qj(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
+ eM(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
],
["播放时间", `${a(t.currentTime)} / ${a(h || m.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -39526,15 +38958,15 @@ async function Sfe(e, t, n, r = {}) {
if (!n || m.isDisposed()) return;
let r = C();
r || v.sample(t);
- let a = tM(m, e.id, pM(), r ? null : v), o = r ? nM(a) : ofe(a, Kj(t));
+ let a = rM(m, e.id, hM(), r ? null : v), o = r ? iM(a) : Rde(a, Jj(t));
n.innerHTML = `${l("gauge")}<span class="sr-only">加载速度</span><span>${i(o)}</span>`;
}, O = () => {
let e = w.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, D(), wM && clearInterval(wM), wM = setInterval(D, 500));
+ !e || !e.isConnected || (e.hidden = !1, D(), EM && clearInterval(EM), EM = setInterval(D, 500));
}, k = () => {
let e = w.chrome?.netBadge;
- e && (TM && clearTimeout(TM), TM = setTimeout(() => {
- e.hidden = !0, wM &&= (clearInterval(wM), null);
+ e && (DM && clearTimeout(DM), DM = setTimeout(() => {
+ e.hidden = !0, EM &&= (clearInterval(EM), null);
}, 1400));
};
return m.on([
@@ -39546,7 +38978,7 @@ async function Sfe(e, t, n, r = {}) {
D(), k();
}), m.on("error", () => {
if (T && !E && !m.isDisposed()) {
- E = !0, T = !1, m.src(_fe(e)), n && m.play()?.catch(() => {});
+ E = !0, T = !1, m.src(Yde(e)), n && m.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && c.loadSourceStatus().then((t) => {
@@ -39557,27 +38989,27 @@ async function Sfe(e, t, n, r = {}) {
});
}), m.ready(() => {
S();
- let n = lfe(m, t, e.height, r.qualities ?? null);
+ let n = Vde(m, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!x()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !_ && (_ = r, v.bitrate = Jj(r, e.duration));
- }).catch(() => {}), ffe(m, e, { thumbnail: !r.source }), pfe(m, e), mfe(m), r.source || hfe(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
+ r > 0 && !_ && (_ = r, v.bitrate = Xj(r, e.duration));
+ }).catch(() => {}), Wde(m, e, { thumbnail: !r.source }), Gde(m, e), Kde(m), r.source || qde(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
}), d().then((e) => {
x() && (T = String(e.type || "").includes("mpegurl"), m.src(e), S(), setTimeout(S, 0), setTimeout(S, 250), u && u.time > 0 && m.one("loadedmetadata", () => {
m.isDisposed() || m.currentTime(u.time);
}), n && m.play()?.catch(() => {}));
}).catch(() => {}), m;
}
-var Cfe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function DM(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Cfe), e.querySelector(":scope > #playerStatsBtn")) return;
+var tfe = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function kM(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", tfe), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = afe(), e.insertBefore(n.content, t);
+ n.innerHTML = Lde(), e.insertBefore(n.content, t);
}
-function OM(e, t) {
- let n = SM.get(e);
+function AM(e, t) {
+ let n = wM.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -39589,29 +39021,29 @@ function OM(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), CM &&= (clearInterval(CM), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), TM &&= (clearInterval(TM), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(Zj, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), CM && clearInterval(CM), CM = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent($j, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), TM && clearInterval(TM), TM = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(Zj, t), s = () => document.removeEventListener(Zj, t);
+ document.addEventListener($j, t), s = () => document.removeEventListener($j, t);
}
- let c = e.el().querySelector("video"), l = c ? cfe(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, EM()));
+ let c = e.el().querySelector("video"), l = c ? Bde(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, OM()));
};
return e.one("dispose", d), d;
}
-function kM(e, n) {
- if (n.kind === "immerse") return xfe(e, n);
- let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = Lj(), l = n.chrome === !1 ? null : e.parentElement;
- l && DM(l, e);
+function jM(e, n) {
+ if (n.kind === "immerse") return $de(e, n);
+ let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = zj(), l = n.chrome === !1 ? null : e.parentElement;
+ l && kM(l, e);
let u = { resume: n.resume ?? null };
if (r === "follow") u = {
...u,
@@ -39631,16 +39063,16 @@ function kM(e, n) {
method: "POST",
body: JSON.stringify({ id: i.id })
}).catch(() => {});
- }, { once: !0 }), gM(i, e, {
+ }, { once: !0 }), vM(i, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let d = null, f = !1, p = () => {}, m = () => {
- p(), !(!d || o?.(d)) && (Uj() === d && (Wj(null), EM()), sM(d));
+ p(), !(!d || o?.(d)) && (Gj() === d && (Kj(null), OM()), lM(d));
};
- return Sfe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
+ return efe(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
if (d = t, f) {
m();
return;
@@ -39649,47 +39081,47 @@ function kM(e, n) {
s?.(null);
return;
}
- l && (p = OM(t, l)), r === "follow" && yfe(i, e), s?.(t);
+ l && (p = AM(t, l)), r === "follow" && Zde(i, e), s?.(t);
}), () => {
f = !0, m();
};
}
//#endregion
//#region src/player/playback.ts
-function AM(e) {
+function MM(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function wfe(e, t) {
+function nfe(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var jM = (e) => ["item", e], MM = (e) => [
+var NM = (e) => ["item", e], PM = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Tfe = (e, t) => [
+], rfe = (e, t) => [
"item-related",
e,
t
-], Efe = (e) => `/api/item?id=${e}`, Dfe = (e, t) => `/api/related?id=${e}&limit=${t}`, NM = "/api/playlist", PM = "/api/feedback", FM = "/api/item-tag", IM = "/api/watch-later", LM = "/api/quality-goal", RM = "/api/preference", zM = class extends Error {};
-async function BM(e, t) {
- let n = await z(Efe(e), t);
- if (n.error) throw new zM(n.error);
+], ife = (e) => `/api/item?id=${e}`, afe = (e, t) => `/api/related?id=${e}&limit=${t}`, FM = "/api/playlist", IM = "/api/feedback", LM = "/api/item-tag", RM = "/api/watch-later", zM = "/api/quality-goal", BM = "/api/preference", VM = class extends Error {};
+async function HM(e, t) {
+ let n = await z(ife(e), t);
+ if (n.error) throw new VM(n.error);
return n;
}
-async function VM(e, t, n) {
+async function UM(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([BM(r, n), t.mixRelated(r)]);
- return _.setQueryData(jM(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([HM(r, n), t.mixRelated(r)]);
+ return _.setQueryData(NM(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${I(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return HM(await z(`${NM}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return WM(await z(`${FM}?id=${e.playlistId}`, n));
let r = await z(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -39699,19 +39131,19 @@ async function VM(e, t, n) {
items: r.items
};
}
-var HM = (e) => ({
+var WM = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), UM = (e) => e.disposal === "vanished";
-function WM(e, t) {
+}), GM = (e) => e.disposal === "vanished";
+function KM(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !UM(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !GM(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Ofe(e, t) {
+function ofe(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -39719,15 +39151,15 @@ function Ofe(e, t) {
part_label: n
};
}
-async function kfe(e, t) {
+async function sfe(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = MM(n);
+ let o = PM(n);
try {
let r = n.fresh ? void 0 : _.getQueryData(o);
a = !r && n.kind === "mix", i = r || await _.fetchQuery({
queryKey: o,
- queryFn: () => VM(n, e.helpers, t),
+ queryFn: () => UM(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -39739,20 +39171,20 @@ async function kfe(e, t) {
return;
}
}
- let o = i ? WM(i, e.id) : e.id;
+ let o = i ? KM(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? _.getQueryData(jM(o)) : void 0;
+ let s, c = a && o === i?.seedId ? _.getQueryData(NM(o)) : void 0;
try {
s = c || await _.fetchQuery({
- queryKey: jM(o),
- queryFn: () => BM(o, t),
+ queryKey: NM(o),
+ queryFn: () => HM(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof zM) {
+ if (e instanceof VM) {
r.redirect({ kind: "gone" });
return;
}
@@ -39763,7 +39195,7 @@ async function kfe(e, t) {
id: Number(s.follow_item_id)
});
}
-function Afe(e) {
+function cfe(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = c(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -39785,42 +39217,42 @@ function Afe(e) {
unowned: !i.length && !l.length && !String(e.creator || "").trim()
};
}
-var GM = (e) => Math.min(Math.max(e || 0, 0), 100), KM = (e) => Math.round(GM(e) / 20), jfe = (e) => {
- let t = KM(e);
+var qM = (e) => Math.min(Math.max(e || 0, 0), 100), JM = (e) => Math.round(qM(e) / 20), lfe = (e) => {
+ let t = JM(e);
return t ? `${t} 星` : "未评分";
-}, Mfe = (e, t) => {
+}, ufe = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Nfe(e, t) {
+function dfe(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = c(t.tagLabel(e.k)), i = n.get(r);
(!i || c(e.k) === r && c(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var qM = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), JM = (e, t) => ({
+var YM = (e, t) => (e.tags || []).some((e) => c(e.k) === c(t)), XM = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => c(e.k) !== c(t))
-}), YM = (e, t) => qM(e, t.k) ? e : {
+}), ZM = (e, t) => YM(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, XM = "peach.recentTags";
-function ZM() {
+}, QM = "peach.recentTags";
+function $M() {
try {
- let e = JSON.parse(localStorage.getItem(XM) || "[]");
+ let e = JSON.parse(localStorage.getItem(QM) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Pfe(e) {
+function ffe(e) {
try {
- let t = ZM().filter((t) => c(t) !== c(e));
- localStorage.setItem(XM, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = $M().filter((t) => c(t) !== c(e));
+ localStorage.setItem(QM, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Ffe(e, t, n) {
+function pfe(e, t, n) {
let r = c(e), i = new Map(t.map((e) => [c(e.k), e])), a = t.filter((e) => !r || c(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(c(e)) || {
k: e,
n: 0
@@ -39831,73 +39263,73 @@ function Ffe(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Ife = {
+var mfe = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Lfe = {
+}, hfe = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Rfe(e) {
+function gfe(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Lfe[e.kind],
+ title: hfe[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var QM = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, zfe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(QM(e.part_label))}</small>` : "";
-function Bfe(e, t, n, r) {
+var eN = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, _fe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(eN(e.part_label))}</small>` : "";
+function vfe(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Vfe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Hfe(e, t) {
+var yfe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function bfe(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Ufe(e) {
+function xfe(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function $M(e, t) {
+function tN(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var Wfe = (e, t, n) => [
+var Sfe = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Gfe(e) {
+function Cfe(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var Kfe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function qfe(e, t = Math.random) {
+var wfe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function Tfe(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Jfe(e, t) {
- return qfe(((await z(`/api/items?${e}`)).items || []).filter((e) => Kfe(e, t)));
+async function Efe(e, t) {
+ return Tfe(((await z(`/api/items?${e}`)).items || []).filter((e) => wfe(e, t)));
}
-var eN = (e) => _.ensureQueryData({
- queryKey: jM(e),
- queryFn: ({ signal: t }) => BM(e, t)
+var nN = (e) => _.ensureQueryData({
+ queryKey: NM(e),
+ queryFn: ({ signal: t }) => HM(e, t)
});
-function Yfe(e, t) {
+function Dfe(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Xfe(e) {
+function Ofe(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -39906,313 +39338,313 @@ function Xfe(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Zfe(e, t, n) {
+function kfe(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function Qfe(e, t) {
+function Afe(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var $fe = 15e3, tN = {
+var jfe = 15e3, rN = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, nN = null, rN = null, iN = null, aN = null, oN = tN, sN = 0, cN = 0, lN = 0, uN = "", dN = [], fN = 0, pN = !1, mN = !1, hN = null, gN = /* @__PURE__ */ new Set(), _N = "", vN = null, yN = 0, bN = null, xN = !1;
-function SN() {
- if (!nN) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
- return nN;
-}
-function CN() {
- return (!rN || !iN?.isConnected) && (rN?.unmount(), iN = document.createElement("div"), iN.dataset.immerseHost = "", document.body.append(iN), rN = (0, At.createRoot)(iN)), rN;
-}
+}, iN = null, aN = null, oN = null, sN = null, cN = rN, lN = 0, uN = 0, dN = 0, fN = "", pN = [], mN = 0, hN = !1, gN = !1, _N = null, vN = /* @__PURE__ */ new Set(), yN = "", bN = null, xN = 0, SN = null, CN = !1;
function wN() {
- let e = CN();
- (0, kt.flushSync)(() => e.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(upe, { view: oN }) })));
+ if (!iN) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
+ return iN;
+}
+function Mfe() {
+ return (!aN || !oN?.isConnected) && (aN?.unmount(), oN = document.createElement("div"), oN.dataset.immerseHost = "", document.body.append(oN), aN = (0, At.createRoot)(oN)), aN;
}
function TN() {
- let e = vN ? eM(vN.id) : 0;
- return e ? `${_N} · ${nM(e)}` : _N;
+ let e = Mfe();
+ (0, kt.flushSync)(() => e.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(Xfe, { view: cN }) })));
+}
+function EN() {
+ let e = bN ? nM(bN.id) : 0;
+ return e ? `${yN} · ${iM(e)}` : yN;
}
-function EN(e, t = null) {
- if (clearInterval(yN), yN = 0, e === null) {
- oN = {
- ...oN,
+function DN(e, t = null) {
+ if (clearInterval(xN), xN = 0, e === null) {
+ cN = {
+ ...cN,
loading: null
- }, wN();
+ }, TN();
return;
}
- _N = e, vN = t, oN = {
- ...oN,
- loading: TN()
- }, wN(), yN = window.setInterval(() => {
- vN = dN[fN] ?? null, oN = {
- ...oN,
- loading: TN()
- }, wN();
+ yN = e, bN = t, cN = {
+ ...cN,
+ loading: EN()
+ }, TN(), xN = window.setInterval(() => {
+ bN = pN[mN] ?? null, cN = {
+ ...cN,
+ loading: EN()
+ }, TN();
}, 500);
}
-function DN(e) {
+function Nfe(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), aN.track.append(t);
- let r = cM(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), sN.track.append(t);
+ let r = uM(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => dM(r),
+ release: () => pM(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return gN.add(a), a;
+ return vN.add(a), a;
}
-function ON(e, t) {
+function Pfe(e, t) {
return new Promise((n) => {
- e.release = kM(e.video, {
+ e.release = jM(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- oN.open && zN(1);
+ cN.open && PN(1);
}
}), e.gone.then(n);
});
}
-function kN(e) {
- !e || e.disposed || (e.disposed = !0, gN.delete(e), e.leave(), e.release(), e.el.remove(), hN === e && (hN = null));
+function ON(e) {
+ !e || e.disposed || (e.disposed = !0, vN.delete(e), e.leave(), e.release(), e.el.remove(), _N === e && (_N = null));
}
-var AN = [
+var kN = [
"loadeddata",
"canplay",
"error"
];
-function jN(e) {
+function Ffe(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), AN.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), kN.forEach((e) => t.removeEventListener(e, i)), n());
};
- AN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, $fe);
+ kN.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, jfe);
e.gone.then(i);
});
}
-function MN(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Zfe(e.videoWidth, e.videoHeight, n);
+function AN(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = kfe(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var NN = () => aN?.track.querySelectorAll("video").forEach(MN);
-function PN(e) {
- delete e.dataset.fit, e.readyState >= 1 ? MN(e) : e.addEventListener("loadedmetadata", () => MN(e), { once: !0 });
+var jN = () => sN?.track.querySelectorAll("video").forEach(AN);
+function Ife(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? AN(e) : e.addEventListener("loadedmetadata", () => AN(e), { once: !0 });
}
-function FN(e) {
- oN = {
- ...oN,
+function Lfe(e) {
+ cN = {
+ ...cN,
wide: e
- }, wN(), NN();
+ }, TN(), jN();
}
-var IN = () => {
- let e = uN;
+var MN = () => {
+ let e = fN;
return _.fetchQuery({
- queryKey: Wfe(e, cN, lN),
- queryFn: () => Jfe(e, SN().sourceOffline),
+ queryKey: Sfe(e, uN, dN),
+ queryFn: () => Efe(e, wN().sourceOffline),
staleTime: Infinity
});
};
-function LN(e, t) {
+function Rfe(e, t) {
let n = () => p(e.duration) || p(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && aN && (aN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), bN = {
+ t && sN && (sN.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), SN = {
video: e,
duration: n
};
}
-async function RN(e = 0) {
- let t = dN[fN];
- if (!t || pN) return;
- let n = sN;
- SN().route(t.id), pN = !0, EN(e ? "切换中…" : "加载中…", t);
+async function NN(e = 0) {
+ let t = pN[mN];
+ if (!t || hN) return;
+ let n = lN;
+ wN().route(t.id), hN = !0, DN(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await eN(t.id).catch((e) => {
- if (!(e instanceof zM)) throw e;
- }), n !== sN) return;
- let i = hN, a = !!(e && i);
- a || kN(i);
- let o = DN(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, PN(o.video), await ON(o, t), await jN(o), o.disposed || (FN(Qfe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await nN(t.id).catch((e) => {
+ if (!(e instanceof VM)) throw e;
+ }), n !== lN) return;
+ let i = _N, a = !!(e && i);
+ a || ON(i);
+ let o = Nfe(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Ife(o.video), await Pfe(o, t), await Ffe(o), o.disposed || (Lfe(Afe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), kN(i), o.el.style.transform = ""), o.disposed)) return;
- hN = o, r = null, o.video.play()?.catch(() => {}), oN = {
- ...oN,
+ })), await new Promise((e) => setTimeout(e, 210)), ON(i), o.el.style.transform = ""), o.disposed)) return;
+ _N = o, r = null, o.video.play()?.catch(() => {}), cN = {
+ ...cN,
idle: !1,
shown: {
item: t,
- index: fN,
- length: dN.length
+ index: mN,
+ length: pN.length
}
- }, LN(o.video, t), B("/api/play", { id: t.id }).catch(() => {}), EN(null);
+ }, Rfe(o.video, t), B("/api/play", { id: t.id }).catch(() => {}), DN(null);
} catch {
- kN(r), n === sN && EN(null);
+ ON(r), n === lN && DN(null);
} finally {
- n === sN && (pN = !1);
+ n === lN && (hN = !1);
}
}
-async function zN(e) {
- if (pN || !oN.open) return;
- let t = sN;
- if (fN += e, EN("切换中…", dN[fN] ?? null), fN >= dN.length - 3 && !mN) {
- mN = !0;
+async function PN(e) {
+ if (hN || !cN.open) return;
+ let t = lN;
+ if (mN += e, DN("切换中…", pN[mN] ?? null), mN >= pN.length - 3 && !gN) {
+ gN = !0;
try {
- lN += 1;
- let e = await IN();
- t === sN && (dN = Yfe(dN, e));
+ dN += 1;
+ let e = await MN();
+ t === lN && (pN = Dfe(pN, e));
} catch {} finally {
- mN = !1;
+ gN = !1;
}
}
- t === sN && (fN >= dN.length && (fN = 0), fN < 0 && (fN = dN.length - 1), await RN(e));
+ t === lN && (mN >= pN.length && (mN = 0), mN < 0 && (mN = pN.length - 1), await NN(e));
}
-async function BN(e) {
- let t = ++sN;
- VN(), cN += 1, lN = 0, uN = Gfe(SN().filters()), _.removeQueries({ queryKey: ["immerse-list"] }), oN = {
- ...oN,
+async function zfe(e) {
+ let t = ++lN;
+ FN(), uN += 1, dN = 0, fN = Cfe(wN().filters()), _.removeQueries({ queryKey: ["immerse-list"] }), cN = {
+ ...cN,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), EN("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), DN("加载内容…");
try {
- let n = await IN();
+ let n = await MN();
if (e && !n.some((t) => t.id === e)) {
- let t = await eN(e).catch((e) => {
- if (e instanceof zM) return null;
+ let t = await nN(e).catch((e) => {
+ if (e instanceof VM) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== sN) return;
- if (dN = n, !dN.length) {
- HN(), SN().warn("当前筛选下没有可直接播放的内容");
+ if (t !== lN) return;
+ if (pN = n, !pN.length) {
+ IN(), wN().warn("当前筛选下没有可直接播放的内容");
return;
}
- fN = Math.max(0, dN.findIndex((t) => t.id === e)), await RN();
+ mN = Math.max(0, pN.findIndex((t) => t.id === e)), await NN();
} catch {
- if (t !== sN) return;
- EN(null), HN();
+ if (t !== lN) return;
+ DN(null), IN();
}
}
-function VN() {
- clearInterval(yN), yN = 0, JN(), KN = null, bN = null, xN = !1, [...gN].forEach(kN), pN = !1;
+function FN() {
+ clearInterval(xN), xN = 0, HN(), BN = null, SN = null, CN = !1, [...vN].forEach(ON), hN = !1;
}
-function HN() {
- oN.open && (sN++, VN(), oN = tN, document.body.removeAttribute("data-immerse-open"), wN(), SN().closed());
+function IN() {
+ cN.open && (lN++, FN(), cN = rN, document.body.removeAttribute("data-immerse-open"), TN(), wN().closed());
}
-var UN = 0, WN = null, GN = 0, KN = null, qN = 0;
-function JN() {
- clearTimeout(UN), UN = 0, WN = null;
+var LN = 0, RN = null, zN = 0, BN = null, VN = 0;
+function HN() {
+ clearTimeout(LN), LN = 0, RN = null;
}
-function epe(e) {
- let t = hN?.video;
+function Bfe(e) {
+ let t = _N?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (WN && WN.side === n && r - WN.at <= 280) {
- JN(), wfe(t, SN().seekSeconds() * n);
+ if (RN && RN.side === n && r - RN.at <= 280) {
+ HN(), nfe(t, wN().seekSeconds() * n);
return;
}
- UN && (clearTimeout(UN), UN = 0, AM(t)), WN = {
+ LN && (clearTimeout(LN), LN = 0, MM(t)), RN = {
side: n,
at: r
- }, UN = window.setTimeout(() => {
- UN = 0, WN = null, oN.open && AM(hN?.video);
+ }, LN = window.setTimeout(() => {
+ LN = 0, RN = null, cN.open && MM(_N?.video);
}, 280);
}
-function tpe() {
- Date.now() < GN || AM(hN?.video);
+function Vfe() {
+ Date.now() < zN || MM(_N?.video);
}
-var YN = (e) => aN?.bar.toggleAttribute("data-scrubbing", e);
-function XN(e) {
- aN && (aN.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var UN = (e) => sN?.bar.toggleAttribute("data-scrubbing", e);
+function WN(e) {
+ sN && (sN.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function ZN(e) {
+function GN(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- KN = null;
+ BN = null;
return;
}
- let n = hN?.video;
- KN = {
+ let n = _N?.video;
+ BN = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function QN(e) {
- if (!KN || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - KN.x, n = e.touches[0].clientY - KN.y;
- if (!KN.axis) {
+function KN(e) {
+ if (!BN || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - BN.x, n = e.touches[0].clientY - BN.y;
+ if (!BN.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- KN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", KN.axis === "x" && YN(!0);
+ BN.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", BN.axis === "x" && UN(!0);
}
- if (KN.axis !== "x") return;
- let r = hN?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), KN.to = Math.min(i, Math.max(0, KN.from + t / window.innerWidth * i)), XN(KN.to / i));
+ if (BN.axis !== "x") return;
+ let r = _N?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), BN.to = Math.min(i, Math.max(0, BN.from + t / window.innerWidth * i)), WN(BN.to / i));
}
-function $N(e) {
- if (!KN) return;
- let t = KN;
- if (KN = null, GN = Date.now() + 700, YN(!1), t.axis === "x") {
- let e = hN?.video;
+function qN(e) {
+ if (!BN) return;
+ let t = BN;
+ if (BN = null, zN = Date.now() + 700, UN(!1), t.axis === "x") {
+ let e = _N?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
if (Math.abs(i) > 60) {
- JN(), zN(i > 0 ? 1 : -1);
+ HN(), PN(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), epe(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Bfe(n.clientX));
}
-function eP() {
- KN = null, YN(!1);
+function JN() {
+ BN = null, UN(!1);
}
-function tP(e) {
+function YN(e) {
let t = Date.now();
- t - qN < 260 || (qN = t, zN(e.deltaY > 0 ? 1 : -1));
+ t - VN < 260 || (VN = t, PN(e.deltaY > 0 ? 1 : -1));
}
-function nP(e) {
- let t = aN.bar.getBoundingClientRect();
+function XN(e) {
+ let t = sN.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function npe(e) {
- bN?.duration() && (xN = !0, YN(!0), e.currentTarget.setPointerCapture(e.pointerId), XN(nP(e)), e.preventDefault());
+function Hfe(e) {
+ SN?.duration() && (CN = !0, UN(!0), e.currentTarget.setPointerCapture(e.pointerId), WN(XN(e)), e.preventDefault());
}
-function rpe(e) {
- xN && XN(nP(e));
+function Ufe(e) {
+ CN && WN(XN(e));
}
-function ipe(e) {
- if (!xN) return;
- xN = !1, YN(!1);
- let t = bN?.duration();
- bN && t && (bN.video.currentTime = t * nP(e));
+function Wfe(e) {
+ if (!CN) return;
+ CN = !1, UN(!1);
+ let t = SN?.duration();
+ SN && t && (SN.video.currentTime = t * XN(e));
}
-function ape() {
- xN = !1, YN(!1);
+function Gfe() {
+ CN = !1, UN(!1);
}
-async function rP(e, t) {
- let n = await B(PM, {
+async function ZN(e, t) {
+ let n = await B(IM, {
id: e,
kind: t
- }), r = _.getQueryData(jM(e));
+ }), r = _.getQueryData(NM(e));
if (!r) return Qt(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
@@ -40222,7 +39654,7 @@ async function rP(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return _.setQueryData(jM(e), i), Qt(e, {
+ return _.setQueryData(NM(e), i), Qt(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -40230,7 +39662,7 @@ async function rP(e, t) {
o_count: i.o_count
}), n;
}
-var ope = [
+var Kfe = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -40247,31 +39679,31 @@ var ope = [
label: "记一次高潮"
}
];
-function iP(e) {
+function QN(e) {
return Cn({
- queryKey: jM(e ?? 0),
- queryFn: ({ signal: t }) => BM(e, t),
+ queryKey: NM(e ?? 0),
+ queryFn: ({ signal: t }) => HM(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function spe({ kind: e, glyph: t, label: n, id: r }) {
- let i = iP(r), a = Fn({
+function qfe({ kind: e, glyph: t, label: n, id: r }) {
+ let i = QN(r), a = Fn({
mutationFn: async (t) => {
- let n = _.getQueryData(jM(t))?.feedback || null;
+ let n = _.getQueryData(NM(t))?.feedback || null;
return {
- result: await rP(t, e),
+ result: await ZN(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- SN().toast($M(e, t), { undo: async () => {
- e === "o" ? await rP(r, "o-undo") : (t.feedback && await rP(r, t.feedback), n && await rP(r, n));
+ wN().toast(tN(e, t), { undo: async () => {
+ e === "o" ? await ZN(r, "o-undo") : (t.feedback && await ZN(r, t.feedback), n && await ZN(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- zN(1);
+ PN(1);
}, 260);
},
- onError: (e) => SN().failure("更新反馈", e)
+ onError: (e) => wN().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-immerse-action": "",
@@ -40302,11 +39734,11 @@ function spe({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function cpe({ shown: e }) {
- let t = e?.item ?? null, n = iP(t?.id ?? null), r = n ? Xfe(n) : null, i = SN(), a = (e) => {
- e.preventDefault(), n && (HN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Jfe({ shown: e }) {
+ let t = e?.item ?? null, n = QN(t?.id ?? null), r = n ? Ofe(n) : null, i = wN(), a = (e) => {
+ e.preventDefault(), n && (IN(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, s = () => {
- t && (HN(), i.openItem(t.id));
+ t && (IN(), i.openItem(t.id));
}, c = r ? D(r.name, r.ref, ce(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-immerse-ui": "",
@@ -40335,18 +39767,18 @@ function cpe({ shown: e }) {
})]
});
}
-var lpe = { __html: Ne("媒体加载中") };
-function upe({ view: e }) {
+var Yfe = { __html: Ne("媒体加载中") };
+function Xfe({ view: e }) {
let t = (0, V.useRef)(null), n = (0, V.useRef)(null), r = (0, V.useRef)(null), i = (0, V.useRef)(null);
(0, V.useLayoutEffect)(() => {
let e = t.current;
- return aN = {
+ return sN = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", ZN, { passive: !0 }), e.addEventListener("touchmove", QN, { passive: !1 }), e.addEventListener("touchend", $N, { passive: !1 }), e.addEventListener("touchcancel", eP, { passive: !0 }), e.addEventListener("wheel", tP, { passive: !0 }), () => {
- e.removeEventListener("touchstart", ZN), e.removeEventListener("touchmove", QN), e.removeEventListener("touchend", $N), e.removeEventListener("touchcancel", eP), e.removeEventListener("wheel", tP), aN = null;
+ }, e.addEventListener("touchstart", GN, { passive: !0 }), e.addEventListener("touchmove", KN, { passive: !1 }), e.addEventListener("touchend", qN, { passive: !1 }), e.addEventListener("touchcancel", JN, { passive: !0 }), e.addEventListener("wheel", YN, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", GN), e.removeEventListener("touchmove", KN), e.removeEventListener("touchend", qN), e.removeEventListener("touchcancel", JN), e.removeEventListener("wheel", YN), sN = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -40363,10 +39795,10 @@ function upe({ view: e }) {
children: [/* @__PURE__ */ (0, H.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: tpe
+ onClick: Vfe
}), /* @__PURE__ */ (0, H.jsx)("div", {
"data-immerse-actions": "",
- children: ope.map((e) => /* @__PURE__ */ (0, H.jsx)(spe, {
+ children: Kfe.map((e) => /* @__PURE__ */ (0, H.jsx)(qfe, {
...e,
id: a
}, e.kind))
@@ -40379,7 +39811,7 @@ function upe({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, H.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: lpe
+ dangerouslySetInnerHTML: Yfe
}), /* @__PURE__ */ (0, H.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, H.jsx)("button", {
@@ -40387,7 +39819,7 @@ function upe({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: HN,
+ onClick: IN,
children: /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, H.jsx)("use", { href: "#i-x" })
@@ -40396,71 +39828,71 @@ function upe({ view: e }) {
/* @__PURE__ */ (0, H.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: npe,
- onPointerMove: rpe,
- onPointerUp: ipe,
- onPointerCancel: ape,
+ onPointerDown: Hfe,
+ onPointerMove: Ufe,
+ onPointerUp: Wfe,
+ onPointerCancel: Gfe,
children: /* @__PURE__ */ (0, H.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, H.jsx)(cpe, { shown: e.shown })
+ /* @__PURE__ */ (0, H.jsx)(Jfe, { shown: e.shown })
]
});
}
-var dpe = {
- open: BN,
- close: HN,
- isOpen: () => oN.open,
- activeVideo: () => oN.open ? hN?.video ?? null : null
+var Zfe = {
+ open: zfe,
+ close: IN,
+ isOpen: () => cN.open,
+ activeVideo: () => cN.open ? _N?.video ?? null : null
};
-function fpe(e) {
- if (!oN.open) return;
+function Qfe(e) {
+ if (!cN.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && zN(1), e.key === "ArrowUp" && zN(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && PN(1), e.key === "ArrowUp" && PN(-1));
}
-function ppe(e) {
- let t = !nN;
- return nN = e, wN(), t && (document.addEventListener("keydown", fpe), addEventListener("resize", () => {
- oN.open && NN();
+function $fe(e) {
+ let t = !iN;
+ return iN = e, TN(), t && (document.addEventListener("keydown", Qfe), addEventListener("resize", () => {
+ cN.open && jN();
}), addEventListener("pagehide", () => {
- gN.forEach((e) => dM(e.session));
- })), dpe;
+ vN.forEach((e) => pM(e.session));
+ })), Zfe;
}
//#endregion
//#region src/manage-header.ts
-var mpe = {
+var epe = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, hpe = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), gpe = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function _pe(e) {
+}, tpe = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), npe = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function rpe(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = mpe[e.path] ?? "";
+ let n = epe[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
crumb: n,
- compact: hpe.has(e.path) || e.section === "configuration",
+ compact: tpe.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: gpe(e.trash),
+ text: npe(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var vpe = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+var ipe = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function aP({ name: e }) {
+function $N({ name: e }) {
return /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
});
}
-function ype({ name: e }) {
+function ape({ name: e }) {
return /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -40469,29 +39901,29 @@ function ype({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var oP = null, sP = null, cP = null;
-function bpe() {
- let e = oP, t = cP;
- !e || !sP || !t || (0, kt.flushSync)(() => sP.render(/* @__PURE__ */ (0, H.jsx)(Cpe, {
+var eP = null, tP = null, nP = null;
+function ope() {
+ let e = eP, t = nP;
+ !e || !tP || !t || (0, kt.flushSync)(() => tP.render(/* @__PURE__ */ (0, H.jsx)(lpe, {
host: e,
props: t
})));
}
-var xpe = { render(e) {
- cP = e, bpe();
+var spe = { render(e) {
+ nP = e, ope();
} };
-function Spe(e) {
- return oP = e, cP = null, e.root.replaceChildren(), sP = (0, At.createRoot)(e.root), xpe;
+function cpe(e) {
+ return eP = e, nP = null, e.root.replaceChildren(), tP = (0, At.createRoot)(e.root), spe;
}
-function Cpe({ host: e, props: t }) {
- let n = _pe(t);
+function lpe({ host: e, props: t }) {
+ let n = rpe(t);
return n ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(wpe, {
+ /* @__PURE__ */ (0, H.jsx)(upe, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, H.jsx)(Tpe, {
+ n.crumb ? /* @__PURE__ */ (0, H.jsx)(dpe, {
host: e,
label: n.crumb
}) : null,
@@ -40500,29 +39932,29 @@ function Cpe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, H.jsx)(Epe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, H.jsx)(fpe, {
host: e,
lede: n.lede
})
] }) : null;
}
-var lP = null;
-function uP(e, t, n) {
+var rP = null;
+function iP(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function wpe({ host: e, section: t, menu: n }) {
+function upe({ host: e, section: t, menu: n }) {
let r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = () => {
let e = r.current, t = i.current;
if (!e || !t) return;
let n = e.querySelector("button[aria-pressed=\"true\"]");
- n && !n.offsetWidth || (uP(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (lP = {
+ n && !n.offsetWidth || (iP(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (rP = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, V.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- lP ? uP(t, lP.x, lP.width) : a();
+ rP ? iP(t, rP.x, rP.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -40545,7 +39977,7 @@ function wpe({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, H.jsx)(aP, { name: i }), /* @__PURE__ */ (0, H.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, H.jsx)($N, { name: i }), /* @__PURE__ */ (0, H.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, H.jsx)("span", {
ref: i,
@@ -40555,7 +39987,7 @@ function wpe({ host: e, section: t, menu: n }) {
})
});
}
-function Tpe({ host: e, label: t }) {
+function dpe({ host: e, label: t }) {
return /* @__PURE__ */ (0, H.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -40565,20 +39997,20 @@ function Tpe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-right" })] }), /* @__PURE__ */ (0, H.jsx)("li", {
+ }), /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-right" })] }), /* @__PURE__ */ (0, H.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, H.jsx)("span", { children: t })
})] })
});
}
-function Epe({ host: e, lede: t }) {
+function fpe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, H.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: vpe }
- }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Dpe, { text: t.text }), t.total ? /* @__PURE__ */ (0, H.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: ipe }
+ }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(ppe, { text: t.text }), t.total ? /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -40588,7 +40020,7 @@ function Epe({ host: e, lede: t }) {
}) : null] })
});
}
-function Dpe({ text: e }) {
+function ppe({ text: e }) {
let t = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
Pe(t.current, e);
@@ -40599,7 +40031,7 @@ function Dpe({ text: e }) {
}
//#endregion
//#region src/react/components/page.tsx
-function dP({ children: e }) {
+function aP({ children: e }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -40607,7 +40039,7 @@ function dP({ children: e }) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Ope(e) {
+function mpe(e) {
return /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -40621,7 +40053,7 @@ function Ope(e) {
})
});
}
-function kpe(e) {
+function hpe(e) {
return /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -40635,7 +40067,7 @@ function kpe(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Ape(e, t, n) {
+function gpe(e, t, n) {
(0, V.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -40649,7 +40081,7 @@ function Ape(e, t, n) {
n
]);
}
-function jpe(e, t) {
+function _pe(e, t) {
let n = (0, V.useRef)(!1);
return (0, V.useEffect)(() => {
if (!e) return;
@@ -40663,12 +40095,12 @@ function jpe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var fP = (0, V.createContext)("md");
-function pP({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var oP = (0, V.createContext)("md");
+function sP({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, V.useRef)(null), u = (0, V.useRef)(null), [d, f] = (0, V.useState)(!1);
- Ape(d, () => f(!1), [l, u]);
- let p = jpe(d, l);
- return /* @__PURE__ */ (0, H.jsx)(Bee, {
+ gpe(d, () => f(!1), [l, u]);
+ let p = _pe(d, l);
+ return /* @__PURE__ */ (0, H.jsx)(Hee, {
ref: s,
...c,
isOpen: d,
@@ -40677,19 +40109,19 @@ function pP({ className: e, triggerClassName: t, popoverClassName: n, size: r =
children: ({ isOpen: e }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)(bu, {
ref: l,
className: ra("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, H.jsx)(Uee, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Gee, {
className: ra("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, H.jsx)(Ope, { className: ra("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, H.jsx)(mpe, { className: ra("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
}), /* @__PURE__ */ (0, H.jsx)(qh, {
ref: u,
isNonModal: !0,
offset: 4,
- className: ra(jse, aD, "p-2", n),
+ className: ra(Dse, lD, "p-2", n),
children: /* @__PURE__ */ (0, H.jsx)(Kp, {
items: a,
- className: ra(Mse, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, H.jsx)(fP.Provider, {
+ className: ra(Ose, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, H.jsx)(oP.Provider, {
value: r,
children: i
})
@@ -40697,21 +40129,21 @@ function pP({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function mP({ className: e, children: t, ...n }) {
- let r = (0, V.useContext)(fP);
+function cP({ className: e, children: t, ...n }) {
+ let r = (0, V.useContext)(oP);
return /* @__PURE__ */ (0, H.jsx)(Xp, {
...n,
- className: (t) => ra(oD, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => ra(uD, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/activity/tasks.ts
-var hP = "/api/tasks", gP = ["tasks"], Mpe = (e, t) => z(`${hP}?${new URLSearchParams({
+var lP = "/api/tasks", uP = ["tasks"], vpe = (e, t) => z(`${lP}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function _P(...e) {
+function dP(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -40719,26 +40151,26 @@ function _P(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Npe = 2e3, Ppe = 1e4, Fpe = (e) => e?.running.length ? Npe : Ppe, vP = (e) => z(hP, e);
-async function Ipe(e) {
+var ype = 2e3, bpe = 1e4, xpe = (e) => e?.running.length ? ype : bpe, fP = (e) => z(lP, e);
+async function Spe(e) {
await _.fetchQuery({
- queryKey: gP,
- queryFn: () => vP(e)
+ queryKey: uP,
+ queryFn: () => fP(e)
});
}
-var yP = {
+var pP = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Lpe = {
+}, Cpe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Rpe = (e) => Lpe[e] || e, zpe = {
+}, wpe = (e) => Cpe[e] || e, Tpe = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -40768,7 +40200,7 @@ var yP = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Bpe(e) {
+function Epe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -40777,7 +40209,7 @@ function Bpe(e) {
}
return t;
}
-function Vpe(e, t) {
+function Dpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -40799,19 +40231,19 @@ function Vpe(e, t) {
}
return n;
}
-var Hpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), bP = (e) => e.status === "pending" || e.status === "running";
-function Upe(e) {
+var Ope = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), mP = (e) => e.status === "pending" || e.status === "running";
+function kpe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || CP(e.result_summary) || (bP(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || _P(e.result_summary) || (mP(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function xP(e) {
+function hP(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function SP(e) {
+function gP(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -40821,7 +40253,7 @@ function SP(e) {
minute: "2-digit"
});
}
-var Wpe = /* @__PURE__ */ new Set([
+var Ape = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -40830,28 +40262,28 @@ var Wpe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function CP(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Wpe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${zpe[e] || e} ${t}`).join(" · ");
+function _P(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Ape.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Tpe[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var wP = "/api/downloads", TP = ["downloads"], Gpe = "/api/downloads/cancel", Kpe = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, qpe = {
+var vP = "/api/downloads", yP = ["downloads"], jpe = "/api/downloads/cancel", Mpe = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Npe = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Jpe = {
+}, Ppe = {
submitted: "已提交,远端开始下载后这里会显示进度。",
adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",
adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",
refused: "这个资源被判为违规,不再提交。",
failed: "提交没有成功。"
-}, Ype = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, EP = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function Xpe({ prefill: e }) {
+}, Fpe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, bP = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function Ipe({ prefill: e }) {
let t = Cn({
- queryKey: TP,
- queryFn: ({ signal: e }) => z(`${wP}?limit=50`, e),
- refetchInterval: (e) => Kpe(e.state.data)
+ queryKey: yP,
+ queryFn: ({ signal: e }) => z(`${vP}?limit=50`, e),
+ refetchInterval: (e) => Mpe(e.state.data)
}), n = t.data;
if (!n) return t.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
@@ -40863,7 +40295,7 @@ function Xpe({ prefill: e }) {
tone: "error",
children: R(t.error)
}) : null,
- n.available ? r.length ? /* @__PURE__ */ (0, H.jsx)(Zpe, {
+ n.available ? r.length ? /* @__PURE__ */ (0, H.jsx)(Lpe, {
snapshot: n,
prefill: e
}) : /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -40876,15 +40308,15 @@ function Xpe({ prefill: e }) {
n.tasks.length ? /* @__PURE__ */ (0, H.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, H.jsx)($pe, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, H.jsx)(zpe, {
task: e,
writable: n.available
}, e.id))
}) : null
] });
}
-function Zpe({ snapshot: e, prefill: t }) {
- let n = rn(), r = e.providers.filter((e) => e.configured), [i, a] = (0, V.useState)(r[0].key), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(t?.code ?? ""), [u, d] = (0, V.useState)(r[0].target), [f, p] = (0, V.useState)(null), m = GE(), h = (0, V.useRef)(null);
+function Lpe({ snapshot: e, prefill: t }) {
+ let n = rn(), r = e.providers.filter((e) => e.configured), [i, a] = (0, V.useState)(r[0].key), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(t?.code ?? ""), [u, d] = (0, V.useState)(r[0].target), [f, p] = (0, V.useState)(null), m = YE(), h = (0, V.useRef)(null);
(0, V.useEffect)(() => {
t && h.current?.focus();
}, [t]);
@@ -40904,14 +40336,14 @@ function Zpe({ snapshot: e, prefill: t }) {
title: t?.title,
origin: t?.origin
};
- p(null), m.run("submit", (e) => B(wP, r, "POST", e), (e) => {
- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: TP });
+ p(null), m.run("submit", (e) => B(vP, r, "POST", e), (e) => {
+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: yP });
});
},
- children: /* @__PURE__ */ (0, H.jsxs)(ej, { children: [
- /* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- t?.title ? /* @__PURE__ */ (0, H.jsx)(sj, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: /* @__PURE__ */ (0, H.jsxs)(wk, { children: [
+ /* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ t?.title ? /* @__PURE__ */ (0, H.jsx)(jk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,
+ /* @__PURE__ */ (0, H.jsx)(FE, {
ref: h,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -40922,19 +40354,19 @@ function Zpe({ snapshot: e, prefill: t }) {
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "下载到" }), /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "下载到" }), /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "下载到",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && _(String(e));
},
- children: r.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: r.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e.key,
children: e.label
}, e.key))
})]
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "目标目录",
placeholder: g.target || "/云下载",
autoComplete: "off",
@@ -40943,7 +40375,7 @@ function Zpe({ snapshot: e, prefill: t }) {
value: u,
onChange: d
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -40952,15 +40384,15 @@ function Zpe({ snapshot: e, prefill: t }) {
onChange: l
})
] }),
- f ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ f ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(Qpe, { result: f })
+ children: /* @__PURE__ */ (0, H.jsx)(Rpe, { result: f })
}) : null,
- m.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ m.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: m.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: m.error })
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, {
+ /* @__PURE__ */ (0, H.jsx)(Ak, {
status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,
children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
@@ -40972,23 +40404,23 @@ function Zpe({ snapshot: e, prefill: t }) {
] })
});
}
-function Qpe({ result: e }) {
- let t = EP(e.task), n = Jpe[e.outcome];
- return e.outcome === "failed" ? /* @__PURE__ */ (0, H.jsx)(cj, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, H.jsx)(cj, { children: n }) : /* @__PURE__ */ (0, H.jsx)(sj, {
+function Rpe({ result: e }) {
+ let t = bP(e.task), n = Ppe[e.outcome];
+ return e.outcome === "failed" ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: n }) : /* @__PURE__ */ (0, H.jsx)(jk, {
role: "status",
children: n
});
}
-function $pe({ task: e, writable: t }) {
- let n = rn(), r = GE(), [i, a] = (0, V.useState)(!1), o = EP(e), s = e.state === "failed", c = [
+function zpe({ task: e, writable: t }) {
+ let n = rn(), r = YE(), [i, a] = (0, V.useState)(!1), o = bP(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- SP(e.submitted_at)
+ gP(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: TP });
+ n.invalidateQueries({ queryKey: yP });
}, u = () => {
- r.run("cancel", (t) => B(Gpe, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => B(jpe, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -40998,14 +40430,14 @@ function $pe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => B(wP, t, "POST", e), l);
+ r.run("resubmit", (e) => B(vP, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, H.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: kT({
+ className: NT({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -41017,9 +40449,9 @@ function $pe({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, H.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Ype(e)
- }), /* @__PURE__ */ (0, H.jsx)(SE, {
- color: qpe[e.state] ?? "neutral",
+ children: Fpe(e)
+ }), /* @__PURE__ */ (0, H.jsx)(EE, {
+ color: Npe[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -41027,7 +40459,7 @@ function $pe({ task: e, writable: t }) {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: c
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, H.jsx)(QA, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, H.jsx)(Sk, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -41036,7 +40468,7 @@ function $pe({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: r.error }) : null,
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -41074,23 +40506,23 @@ function $pe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var eme = {
+var Bpe = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function DP({ status: e }) {
- return /* @__PURE__ */ (0, H.jsx)(SE, {
- color: eme[e] ?? "neutral",
- children: Rpe(e)
+function xP({ status: e }) {
+ return /* @__PURE__ */ (0, H.jsx)(EE, {
+ color: Bpe[e] ?? "neutral",
+ children: wpe(e)
});
}
-function tme({ rows: e }) {
+function Vpe({ rows: e }) {
return /* @__PURE__ */ (0, H.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Upe(e);
+ let t = kpe(e);
return /* @__PURE__ */ (0, H.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -41100,7 +40532,7 @@ function tme({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, H.jsx)(DP, { status: e.status }),
+ /* @__PURE__ */ (0, H.jsx)(xP, { status: e.status }),
t ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -41110,12 +40542,12 @@ function tme({ rows: e }) {
})
});
}
-function OP({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function SP({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, H.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: kT({
+ className: NT({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -41129,7 +40561,7 @@ function OP({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, H.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, H.jsx)(DP, { status: e.status })]
+ }), /* @__PURE__ */ (0, H.jsx)(xP, { status: e.status })]
}),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -41138,7 +40570,7 @@ function OP({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, H.jsx)(tme, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, H.jsx)(Vpe, { rows: i }) : null,
r ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, H.jsx)("p", {
@@ -41149,15 +40581,15 @@ function OP({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function nme({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = xP(e.elapsed_seconds), o = [yP[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, H.jsx)(OP, {
+function Hpe({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = hP(e.elapsed_seconds), o = [pP[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, H.jsx)(SP, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, H.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Sk, {
label: i,
value: r,
max: n
@@ -41172,20 +40604,20 @@ function nme({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, H.jsx)(WO, { label: i })
+ }) : /* @__PURE__ */ (0, H.jsx)(yk, { label: i })
});
}
-function kP({ run: e, followups: t, runs: n }) {
- let r = CP(e.result_summary), i = xP(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- yP[e.trigger] || e.trigger,
+function CP({ run: e, followups: t, runs: n }) {
+ let r = _P(e.result_summary), i = hP(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ pP[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${SP(a.finished_at)} – ${SP(e.finished_at)}`
+ `${gP(a.finished_at)} – ${gP(e.finished_at)}`
] : [
- yP[e.trigger] || e.trigger,
- SP(e.finished_at),
+ pP[e.trigger] || e.trigger,
+ gP(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, H.jsx)(OP, {
+ return /* @__PURE__ */ (0, H.jsx)(SP, {
run: e,
meta: o,
footer: e.error,
@@ -41196,7 +40628,7 @@ function kP({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function AP({ title: e, children: t }) {
+function wP({ title: e, children: t }) {
let n = (0, V.useId)();
return /* @__PURE__ */ (0, H.jsxs)("section", {
"aria-labelledby": n,
@@ -41208,41 +40640,41 @@ function AP({ title: e, children: t }) {
}), t]
});
}
-function jP({ live: e = !1, children: t }) {
+function TP({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, H.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function rme({ prefill: e }) {
+function Upe({ prefill: e }) {
let t = Cn({
- queryKey: gP,
- queryFn: ({ signal: e }) => vP(e),
- refetchInterval: (e) => Fpe(e.state.data)
+ queryKey: uP,
+ queryFn: ({ signal: e }) => fP(e),
+ refetchInterval: (e) => xpe(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, V.useState)([]), [o, s] = (0, V.useState)(!1), [c, l] = (0, V.useState)(r);
- r !== c && (l(r), i.length && c && a(_P(i, c)));
+ r !== c && (l(r), i.length && c && a(dP(i, c)));
let u = Fn({
- mutationFn: ({ oldest: e }) => Mpe(e),
+ mutationFn: ({ oldest: e }) => vpe(e),
onSuccess: (e, { shown: t }) => {
- a((n) => _P(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => dP(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? R(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = _P(n.finished || [], i), p = [
+ let f = dP(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = Bpe(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = Epe(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(bP)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Vpe(w, (e) => Hpe(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(mP)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Dpe(w, (e) => Ope(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
d ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: d
@@ -41251,20 +40683,20 @@ function rme({ prefill: e }) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, H.jsx)(UO, {
+ E ? /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: mE,
+ icon: vE,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(AP, {
+ /* @__PURE__ */ (0, H.jsx)(wP, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, H.jsxs)(jP, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, H.jsxs)(TP, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, H.jsx)(nme, {
+ children: [S.map((e) => /* @__PURE__ */ (0, H.jsx)(Hpe, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, H.jsx)(kP, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, H.jsx)(CP, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -41273,17 +40705,17 @@ function rme({ prefill: e }) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, H.jsx)(AP, {
+ C.length ? /* @__PURE__ */ (0, H.jsx)(wP, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, H.jsx)(jP, { children: C.map((e) => /* @__PURE__ */ (0, H.jsx)(kP, {
+ children: /* @__PURE__ */ (0, H.jsx)(TP, { children: C.map((e) => /* @__PURE__ */ (0, H.jsx)(CP, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, H.jsxs)(AP, {
+ w.length || y ? /* @__PURE__ */ (0, H.jsxs)(wP, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, H.jsx)(jP, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, H.jsx)(kP, {
+ w.length ? /* @__PURE__ */ (0, H.jsx)(TP, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, H.jsx)(CP, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -41295,7 +40727,7 @@ function rme({ prefill: e }) {
y ? /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: nE,
+ leadingIcon: oE,
className: "self-start",
...X(u.isPending),
onClick: b,
@@ -41304,40 +40736,40 @@ function rme({ prefill: e }) {
]
}) : null
] }),
- /* @__PURE__ */ (0, H.jsx)(AP, {
+ /* @__PURE__ */ (0, H.jsx)(wP, {
title: "云下载",
- children: /* @__PURE__ */ (0, H.jsx)(Xpe, { prefill: e })
+ children: /* @__PURE__ */ (0, H.jsx)(Ipe, { prefill: e })
})
] });
}
//#endregion
//#region src/react/media-sources.ts
-var ime = "/api/sources", MP = ["media-sources"], NP = (e) => z(ime, e);
-async function PP(e) {
+var Wpe = "/api/sources", EP = ["media-sources"], DP = (e) => z(Wpe, e);
+async function OP(e) {
await _.fetchQuery({
- queryKey: MP,
- queryFn: () => NP(e)
+ queryKey: EP,
+ queryFn: () => DP(e)
});
}
-var ame = [
+var Gpe = [
"local",
"115",
"pikpak"
-], ome = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), sme = "/api/duplicates?limit=120", FP = ["duplicates"], IP = "/api/batch", LP = (e) => z(sme, e);
-async function cme(e) {
+], Kpe = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), qpe = "/api/duplicates?limit=120", kP = ["duplicates"], AP = "/api/batch", jP = (e) => z(qpe, e);
+async function Jpe(e) {
await Promise.all([_.fetchQuery({
- queryKey: FP,
- queryFn: () => LP(e)
- }), PP(e)]);
+ queryKey: kP,
+ queryFn: () => jP(e)
+ }), OP(e)]);
}
-var RP = {
+var MP = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, lme = (e, t) => t.filter((t) => e.some((e) => e.location === t)), zP = (e, t) => lme(e, t).filter((t) => e.some((e) => e.location !== t)), ume = (e, t) => t.filter((t) => e.some((e) => zP(e.files, [t]).length));
-function dme(e, t) {
+}, Ype = (e, t) => t.filter((t) => e.some((e) => e.location === t)), NP = (e, t) => Ype(e, t).filter((t) => e.some((e) => e.location !== t)), Xpe = (e, t) => t.filter((t) => e.some((e) => NP(e.files, [t]).length));
+function Zpe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -41356,19 +40788,19 @@ function dme(e, t) {
}
return n;
}
-function fme(e, t) {
+function Qpe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function BP(e, t) {
- for (let n = 0; n < e.length; n += 200) await B(IP, {
+async function PP(e, t) {
+ for (let n = 0; n < e.length; n += 200) await B(AP, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var VP = "/api/media-repair", HP = ["media-repair"], UP = ["media-repair", "libraries"], pme = {
+var FP = "/api/media-repair", IP = ["media-repair"], LP = ["media-repair", "libraries"], $pe = {
status: "idle",
library: "",
stage: "",
@@ -41380,41 +40812,41 @@ var VP = "/api/media-repair", HP = ["media-repair"], UP = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, WP = (e) => z(VP, e), GP = async (e) => (await z("/api/libraries", e)).libraries || [];
-async function mme(e) {
+}, RP = (e) => z(FP, e), zP = async (e) => (await z("/api/libraries", e)).libraries || [];
+async function eme(e) {
await Promise.all([_.fetchQuery({
- queryKey: HP,
- queryFn: () => WP(e)
+ queryKey: IP,
+ queryFn: () => RP(e)
}), _.fetchQuery({
- queryKey: UP,
- queryFn: () => GP(e)
+ queryKey: LP,
+ queryFn: () => zP(e)
})]);
}
-var KP = (e) => Number(e).toLocaleString();
-function hme(e) {
+var BP = (e) => Number(e).toLocaleString();
+function tme(e) {
if (e.status === "running") {
- let t = e.total ? `${KP(e.checked)} / ${KP(e.total)}` : "准备中";
+ let t = e.total ? `${BP(e.checked)} / ${BP(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${KP(e.repaired)} 部,${KP(e.failed)} 部修不了` : `修好 ${KP(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${BP(e.repaired)} 部,${BP(e.failed)} 部修不了` : `修好 ${BP(e.repaired)} 部` : "";
}
-var gme = (e) => `${KP(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, _me = "/api/quality-goals?limit=200", qP = ["quality-goals"], JP = (e) => z(_me, e);
-async function vme(e) {
+var nme = (e) => `${BP(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, rme = "/api/quality-goals?limit=200", VP = ["quality-goals"], HP = (e) => z(rme, e);
+async function ime(e) {
await _.fetchQuery({
- queryKey: qP,
- queryFn: () => JP(e)
+ queryKey: VP,
+ queryFn: () => HP(e)
});
}
-var yme = (e) => e.has_cover ? A(e) : `/poster?id=${e.id}&c=4`;
+var ame = (e) => e.has_cover ? A(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
-function bme(e, t, n, r, i, a = i || !e.has(r)) {
+function ome(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/review/review.ts
-var xme = "/api/review", Sme = "/api/review/decision", Cme = "/api/review/genre", YP = ["review"], XP = {
+var sme = "/api/review", cme = "/api/review/decision", lme = "/api/review/genre", UP = ["review"], WP = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -41424,15 +40856,15 @@ var xme = "/api/review", Sme = "/api/review/decision", Cme = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, wme = Object.keys(XP), Tme = "metadata_fields", ZP = (e) => typeof e == "string" && Object.hasOwn(XP, e), Eme = {
+}, ume = Object.keys(WP), dme = "metadata_fields", GP = (e) => typeof e == "string" && Object.hasOwn(WP, e), fme = {
creator_tags: "creator",
western_identity: "creator"
};
-function Dme(e, t) {
+function pme(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function QP(e, t) {
+function KP(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -41449,43 +40881,43 @@ function QP(e, t) {
}
return [...n.values()];
}
-function Ome(e, t, n) {
- return n && QP(e, t).find((e) => e.key === n)?.rows || e;
+function mme(e, t, n) {
+ return n && KP(e, t).find((e) => e.key === n)?.rows || e;
}
-function kme(e, t) {
- let n = vD(e.length, 20), r = yD(t, n);
+function hme(e, t) {
+ let n = SD(e.length, 20), r = CD(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function Ame(e) {
+function gme(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function jme(e, t, n, r, i, a) {
- return bme(e, t, n, r, i, a);
+function _me(e, t, n, r, i, a) {
+ return ome(e, t, n, r, i, a);
}
-function $P(e, t) {
+function qP(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function eF(e, t) {
+function JP(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var tF = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function Mme(e, t) {
- let n = eF(e, t), r = tF(e, t);
+var YP = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function vme(e, t) {
+ let n = JP(e, t), r = YP(e, t);
return r ? `${n} · ${r}` : n;
}
-var Nme = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Pme = (e) => String(e.tags || "").split("|").filter(Boolean), Fme = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Ime(e) {
+var yme = (e) => e.reason || e.evidence || e.note || e.decision_note || "", bme = (e) => String(e.tags || "").split("|").filter(Boolean), xme = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Sme(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function nF(e, t, n, r) {
+function XP(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -41501,19 +40933,19 @@ function nF(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var Lme = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", rF = (e) => z(xme, e), iF = (e) => B(Sme, e), Rme = (e, t) => B(Cme, {
+var Cme = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", ZP = (e) => z(sme, e), QP = (e) => B(cme, e), wme = (e, t) => B(lme, {
genre: e,
tag: t
});
-async function zme(e) {
+async function Tme(e) {
await _.fetchQuery({
- queryKey: YP,
- queryFn: () => rF(e)
+ queryKey: UP,
+ queryFn: () => ZP(e)
});
}
-function aF(e, t) {
+function $P(e, t) {
let n = new Set(t);
- n.size && _.setQueryData(YP, (t) => {
+ n.size && _.setQueryData(UP, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -41529,207 +40961,207 @@ function aF(e, t) {
};
});
}
-var Bme = () => _.invalidateQueries({
- queryKey: YP,
+var Eme = () => _.invalidateQueries({
+ queryKey: UP,
exact: !0
});
-function Vme(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${bD(e.fetched_at)} 的缓存` : e?.error || t;
+function Dme(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${wD(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Hme = "/api/links", oF = "/api/links/check", sF = "/api/links/prune", cF = ["links"], lF = ["links", "check"], uF = ["links", "prune"], dF = {
+var Ome = "/api/links", eF = "/api/links/check", tF = "/api/links/prune", nF = ["links"], rF = ["links", "check"], iF = ["links", "prune"], aF = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function fF(e) {
+async function oF(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var pF = (e) => z(Hme, e), mF = (e) => B(oF, { status_only: !0 }, "POST", e), Ume = ({ retry: e, checkId: t }) => fF(B(oF, e ? {
+var sF = (e) => z(Ome, e), cF = (e) => B(eF, { status_only: !0 }, "POST", e), kme = ({ retry: e, checkId: t }) => oF(B(eF, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), hF = (e) => z(sF, e), Wme = (e) => fF(B(sF, {
+} : { restart: !0 })), lF = (e) => z(tF, e), Ame = (e) => oF(B(tF, {
confirm: !0,
check_id: e,
background: !0
-})), gF = (e) => Number(e || 0).toLocaleString(), Gme = (e) => `已删除 ${gF(e.removed)} 条;${e.marked ? `已隐退女优的 ${gF(e.marked)} 条留作不可点的记录;` : ""}保留 ${gF(e.recovered)} 条未确认失效的链接。`;
-function Kme(e) {
+})), uF = (e) => Number(e || 0).toLocaleString(), jme = (e) => `已删除 ${uF(e.removed)} 条;${e.marked ? `已隐退女优的 ${uF(e.marked)} 条留作不可点的记录;` : ""}保留 ${uF(e.recovered)} 条未确认失效的链接。`;
+function Mme(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${gF(e.checked)} / ${gF(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${uF(e.checked)} / ${uF(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var _F = "/api/settings", vF = "/api/follow/schedule", yF = "/api/thumbnail-jobs", bF = ["settings"], xF = ["follow-schedule"], SF = ["thumbnail-jobs"], qme = (e) => z(_F, e), CF = (e) => z(vF, e), wF = (e) => z(yF, e);
-function Jme(e = _) {
+var dF = "/api/settings", fF = "/api/follow/schedule", pF = "/api/thumbnail-jobs", mF = ["settings"], hF = ["follow-schedule"], gF = ["thumbnail-jobs"], Nme = (e) => z(dF, e), _F = (e) => z(fF, e), vF = (e) => z(pF, e);
+function Pme(e = _) {
return e.fetchQuery({
- queryKey: xF,
- queryFn: ({ signal: e }) => CF(e),
+ queryKey: hF,
+ queryFn: ({ signal: e }) => _F(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: SF,
- queryFn: ({ signal: e }) => wF(e),
+ queryKey: gF,
+ queryFn: ({ signal: e }) => vF(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: bF,
- queryFn: ({ signal: e }) => qme(e),
+ queryKey: mF,
+ queryFn: ({ signal: e }) => Nme(e),
staleTime: 0
}).catch(() => null);
}
-function TF() {
+function yF() {
return Fn({
- mutationFn: (e) => B(_F, e),
- onSuccess: (e) => _.setQueryData(bF, e)
+ mutationFn: (e) => B(dF, e),
+ onSuccess: (e) => _.setQueryData(mF, e)
});
}
-function Yme() {
+function Fme() {
return Fn({
- mutationFn: (e) => B(vF, {
+ mutationFn: (e) => B(fF, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => _.setQueryData(xF, e)
+ onSuccess: (e) => _.setQueryData(hF, e)
});
}
-function Xme() {
+function Ime() {
return Fn({
- mutationFn: (e) => B(yF, { mode: e }),
- onSuccess: (e) => _.setQueryData(SF, e)
+ mutationFn: (e) => B(pF, { mode: e }),
+ onSuccess: (e) => _.setQueryData(gF, e)
});
}
-function Zme(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${bD(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${bD(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+function Lme(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${wD(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${wD(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function Qme(e) {
+function Rme(e) {
return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var $me = "/api/organize", ehe = "/api/organize/preview", the = "/api/organize/apply", nhe = "/api/organize/rollback", EF = ["organize"], DF = (e) => z($me, e);
-async function rhe(e) {
+var zme = "/api/organize", Bme = "/api/organize/preview", Vme = "/api/organize/apply", Hme = "/api/organize/rollback", bF = ["organize"], xF = (e) => z(zme, e);
+async function Ume(e) {
await _.fetchQuery({
- queryKey: EF,
- queryFn: () => DF(e)
+ queryKey: bF,
+ queryFn: () => xF(e)
});
}
-var ihe = (e) => B(ehe, e), ahe = (e) => e.kind === "apply" ? B(the, {
+var Wme = (e) => B(Bme, e), Gme = (e) => e.kind === "apply" ? B(Vme, {
...e.request,
confirm: !0
-}) : B(nhe, { confirm: !0 });
-async function ohe(e) {
- _.setQueryData(EF, (t) => t && {
+}) : B(Hme, { confirm: !0 });
+async function Kme(e) {
+ _.setQueryData(bF, (t) => t && {
...t,
templates: e
});
try {
- await B(_F, { organizeTemplates: e });
+ await B(dF, { organizeTemplates: e });
} catch {}
}
-var she = (e, t) => e && {
+var qme = (e, t) => e && {
...e,
...t
-}, che = /目录模板|分隔符|盘符|`\.`/;
-function OF(e) {
+}, Jme = /目录模板|分隔符|盘符|`\.`/;
+function SF(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var kF = (e) => Number(e || 0).toLocaleString();
-function lhe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${kF(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${kF(e.counts.change)} 个文件会改名或移动,${kF(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var CF = (e) => Number(e || 0).toLocaleString();
+function Yme(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${CF(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${CF(e.counts.change)} 个文件会改名或移动,${CF(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function AF(e) {
+function wF(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${kF(r)} 个文件${n ? `,${kF(n)} 行未能退回` : ""}。` : `已整理 ${kF(r)} 个文件${n ? `,${kF(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${CF(r)} 个文件${n ? `,${CF(n)} 行未能退回` : ""}。` : `已整理 ${CF(r)} 个文件${n ? `,${CF(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var jF = "/api/resource-sync/scan", MF = "/api/resource-sync/apply", NF = ["resource-sync", "scan"], PF = ["resource-sync", "apply"], FF = (e) => B(jF, {
+var TF = "/api/resource-sync/scan", EF = "/api/resource-sync/apply", DF = ["resource-sync", "scan"], OF = ["resource-sync", "apply"], kF = (e) => B(TF, {
background: !0,
status_only: !0
-}, "POST", e), uhe = () => B(jF, {
+}, "POST", e), Xme = () => B(TF, {
background: !0,
restart: !0
-}), IF = (e) => z(MF, e), dhe = (e) => B(MF, {
+}), AF = (e) => z(EF, e), Zme = (e) => B(EF, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), LF = (e) => (e?.sources ?? []).some((e) => ame.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function fhe(e) {
- LF(_.getQueryData(MP)) && await Promise.all([_.fetchQuery({
- queryKey: NF,
- queryFn: () => FF(e)
+}), jF = (e) => (e?.sources ?? []).some((e) => Gpe.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Qme(e) {
+ jF(_.getQueryData(EP)) && await Promise.all([_.fetchQuery({
+ queryKey: DF,
+ queryFn: () => kF(e)
}), _.fetchQuery({
- queryKey: PF,
- queryFn: () => IF(e)
+ queryKey: OF,
+ queryFn: () => AF(e)
})]);
}
-var phe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), mhe = {
+var $me = (e) => !!(e?.missing || e?.empty || e?.cache?.files), ehe = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, RF = (e) => Number(e || 0).toLocaleString(), hhe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", zF = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), BF = (e) => e.vanish ? `${RF(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", VF = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ghe = (e) => `将永久删除文件已不在盘上的 ${RF(zF(e))} 条记录和 ${RF(e.empty)} 个空文件夹,并清理 ${RF(e.cache?.files)} 个闲置缓存。${VF(e)}${BF(e)}`, _he = (e) => `将永久删除文件已不在盘上的 ${RF(zF(e))} 条记录(含回收站里的)、${RF(e.empty)} 个空文件夹,并清理 ${RF(e.cache?.files)} 个闲置缓存。来源根目录保留。${VF(e)}${BF(e)}`, vhe = (e) => e.online ? [
- `找不到文件 · 共 ${RF(e.total)} 项`,
- e.vanish ? `${RF(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${RF(e.empty)} 个` : "",
- e.unreadable ? `${RF(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${RF(e.total)} 项`;
-function HF(e) {
+}, MF = (e) => Number(e || 0).toLocaleString(), the = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", NF = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), PF = (e) => e.vanish ? `${MF(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", FF = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", nhe = (e) => `将永久删除文件已不在盘上的 ${MF(NF(e))} 条记录和 ${MF(e.empty)} 个空文件夹,并清理 ${MF(e.cache?.files)} 个闲置缓存。${FF(e)}${PF(e)}`, rhe = (e) => `将永久删除文件已不在盘上的 ${MF(NF(e))} 条记录(含回收站里的)、${MF(e.empty)} 个空文件夹,并清理 ${MF(e.cache?.files)} 个闲置缓存。来源根目录保留。${FF(e)}${PF(e)}`, ihe = (e) => e.online ? [
+ `找不到文件 · 共 ${MF(e.total)} 项`,
+ e.vanish ? `${MF(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${MF(e.empty)} 个` : "",
+ e.unreadable ? `${MF(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${MF(e.total)} 项`;
+function IF(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${RF(t.length)} 条记录没有删除(${o})` : "",
- n ? `${RF(n)} 个文件夹没有删除` : "",
- r.length ? `${RF(r.length)} 个缓存没有清理` : ""
+ t.length ? `${MF(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${MF(n)} 个文件夹没有删除` : "",
+ r.length ? `${MF(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var yhe = (e, t) => {
- let { rest: n } = HF(e), r = `已永久删除 ${RF(e.purged)} 条失效记录和 ${RF(e.dirs_removed)} 个空文件夹,清理 ${RF(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${RF(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${RF(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var ahe = (e, t) => {
+ let { rest: n } = IF(e), r = `已永久删除 ${MF(e.purged)} 条失效记录和 ${MF(e.dirs_removed)} 个空文件夹,清理 ${MF(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${MF(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${MF(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, bhe = "/api/review?counts=1", UF = ["review", "counts"], xhe = "/api/ads?limit=1", WF = ["junk-summary"], GF = "/api/items?state=trash&limit=1", KF = ["trash-summary"], She = [
+}, ohe = "/api/review?counts=1", LF = ["review", "counts"], she = "/api/ads?limit=1", RF = ["junk-summary"], zF = "/api/items?state=trash&limit=1", BF = ["trash-summary"], che = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], qF = (e) => z(bhe, e), JF = (e) => z(xhe, e), YF = (e) => {
+], VF = (e) => z(ohe, e), HF = (e) => z(she, e), UF = (e) => {
let t = sessionStorage.getItem("peach.library");
- return z(t ? `${GF}&library=${encodeURIComponent(t)}` : GF, e);
-}, XF = (e) => Number(e || 0).toLocaleString();
-function Che(e) {
- let t = XP, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return z(t ? `${zF}&library=${encodeURIComponent(t)}` : zF, e);
+}, WF = (e) => Number(e || 0).toLocaleString();
+function lhe(e) {
+ let t = WP, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function whe(e) {
+function uhe(e) {
if (!e) return "";
- let t = She.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${XF(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${XF(e.dismissed_total)}`), t.join(" · ");
-}
-var The = [
- [UF, ({ signal: e }) => qF(e)],
- [qP, ({ signal: e }) => JP(e)],
- [KF, ({ signal: e }) => YF(e)],
- [cF, ({ signal: e }) => pF(e)],
- [lF, ({ signal: e }) => mF(e)],
- [uF, ({ signal: e }) => hF(e)]
+ let t = che.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${WF(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${WF(e.dismissed_total)}`), t.join(" · ");
+}
+var dhe = [
+ [LF, ({ signal: e }) => VF(e)],
+ [VP, ({ signal: e }) => HP(e)],
+ [BF, ({ signal: e }) => UF(e)],
+ [nF, ({ signal: e }) => sF(e)],
+ [rF, ({ signal: e }) => cF(e)],
+ [iF, ({ signal: e }) => lF(e)]
];
-async function Ehe(e) {
- let t = location.hash === "#resource-sync", n = The.map(([n, r]) => {
+async function fhe(e) {
+ let t = location.hash === "#resource-sync", n = dhe.map(([n, r]) => {
if (t) return _.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -41742,49 +41174,49 @@ async function Ehe(e) {
await Promise.all([
...n,
_.fetchQuery({
- queryKey: WF,
- queryFn: () => JF(e)
+ queryKey: RF,
+ queryFn: () => HF(e)
}),
_.fetchQuery({
- queryKey: FP,
- queryFn: () => LP(e)
+ queryKey: kP,
+ queryFn: () => jP(e)
}),
- PP(e).then(() => fhe(e)),
- LA(e),
- mme(e),
- rhe(e)
+ OP(e).then(() => Qme(e)),
+ ak(e),
+ eme(e),
+ Ume(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Dhe = [
+var phe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Ohe = [
+], mhe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function ZF(e = {}) {
- return `${kT({
+function GF(e = {}) {
+ return `${NT({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var QF = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", khe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function $F({ interactive: e = !1 } = {}) {
- return kT({
+var KF = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", hhe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function qF({ interactive: e = !1 } = {}) {
+ return NT({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Ahe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function eI({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var ghe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function JF({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -41817,13 +41249,13 @@ function eI({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function tI({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function YF({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, H.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Dhe[n % 4]} ${Ohe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${phe[n % 4]} ${mhe[n % 4]}`,
children: /* @__PURE__ */ (0, H.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -41845,9 +41277,9 @@ function tI({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/background-job.ts
-var nI = 2e3, jhe = (e) => e, Mhe = (e, t) => t;
-function rI(e) {
- let { queryKey: t, jobOf: n = jhe, withJob: r = Mhe, idlePollMs: i } = e, [a, o] = (0, V.useState)(!1), [s, c] = (0, V.useState)(null), l = (0, V.useRef)(e);
+var XF = 2e3, _he = (e) => e, vhe = (e, t) => t;
+function ZF(e) {
+ let { queryKey: t, jobOf: n = _he, withJob: r = vhe, idlePollMs: i } = e, [a, o] = (0, V.useState)(!1), [s, c] = (0, V.useState)(null), l = (0, V.useRef)(e);
(0, V.useEffect)(() => {
l.current = e;
});
@@ -41856,7 +41288,7 @@ function rI(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? nI : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? XF : i ?? !1;
}
}), d = Fn({
mutationFn: (e) => l.current.start(e),
@@ -41887,32 +41319,32 @@ function rI(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Nhe = (e) => ue[e] || e, iI = (e) => _.setQueryData(HP, e);
-function Phe() {
+var yhe = (e) => ue[e] || e, QF = (e) => _.setQueryData(IP, e);
+function bhe() {
let e = Cn({
- queryKey: HP,
- queryFn: ({ signal: e }) => WP(e),
- refetchInterval: (e) => e.state.data?.status === "running" && nI
+ queryKey: IP,
+ queryFn: ({ signal: e }) => RP(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && XF
}), t = Cn({
- queryKey: UP,
- queryFn: ({ signal: e }) => GP(e)
- }), [n, r] = (0, V.useState)(""), i = GE(), a = e.data ?? pme, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryKey: LP,
+ queryFn: ({ signal: e }) => zP(e)
+ }), [n, r] = (0, V.useState)(""), i = YE(), a = e.data ?? $pe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && fe({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => iI(await B(VP, {
+ onConfirm: async () => QF(await B(FP, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => B(VP, { stop: !0 }, "POST", e), iI), d = hme(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => B(FP, { stop: !0 }, "POST", e), QF), d = tme(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, H.jsx)(YA, {
+ children: [/* @__PURE__ */ (0, H.jsx)(_k, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(pP, {
+ footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -41920,10 +41352,10 @@ function Phe() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, H.jsxs)(mP, {
+ children: o.map((e) => /* @__PURE__ */ (0, H.jsxs)(cP, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: Nhe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: yhe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, H.jsx)(J, {
onClick: u,
@@ -41937,12 +41369,12 @@ function Phe() {
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(JA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, H.jsx)(gk, { children: "媒体修复" }),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: cde
+ children: Wle
}),
- s && a.total ? /* @__PURE__ */ (0, H.jsx)(QA, {
+ s && a.total ? /* @__PURE__ */ (0, H.jsx)(Sk, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -41966,7 +41398,7 @@ function Phe() {
f && a.missing_tool ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: gme(a)
+ children: nme(a)
}) : null,
p ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
@@ -41977,11 +41409,70 @@ function Phe() {
});
}
//#endregion
+//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
+var $F = {
+ md: {
+ box: "size-4",
+ glyph: "size-4",
+ label: "text-body-medium",
+ gap: "gap-2"
+ },
+ sm: {
+ box: "size-3.5",
+ glyph: "size-3.5",
+ label: "text-body-2-medium",
+ gap: "gap-1.5"
+ }
+};
+function eI({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = $F[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, H.jsx)("span", {
+ "aria-hidden": !0,
+ className: ra("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? ra("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : ra("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ children: /* @__PURE__ */ (0, H.jsx)("svg", {
+ viewBox: "0 0 16 16",
+ fill: "none",
+ className: s.glyph,
+ children: r ? /* @__PURE__ */ (0, H.jsx)("path", {
+ d: "M4.5 8H8H11.5",
+ stroke: "white",
+ strokeWidth: "2",
+ strokeLinecap: "round"
+ }) : n ? /* @__PURE__ */ (0, H.jsx)("path", {
+ d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
+ stroke: "white",
+ strokeWidth: "2",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ pathLength: 1,
+ className: "animate-check-draw"
+ }) : null
+ })
+ });
+}
+//#endregion
+//#region src/react/boardui/components/base/checkbox/checkbox.tsx
+function tI({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = $F[n];
+ return /* @__PURE__ */ (0, H.jsx)(_d, {
+ ref: r,
+ ...i,
+ className: (t) => ra("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(eI, {
+ state: e,
+ size: n
+ }), t != null && /* @__PURE__ */ (0, H.jsx)("span", {
+ className: ra(a.label, "text-text-primary"),
+ children: t
+ })] })
+ });
+}
+//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function aI({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function nI({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
className: ra("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, H.jsx)(yte, {
+ children: /* @__PURE__ */ (0, H.jsx)(xte, {
ref: r,
...i,
className: ra("bui-table", e === "sm" && "bui-table-sm", t)
@@ -41990,7 +41481,7 @@ function aI({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/row-click.ts
-var Fhe = [
+var xhe = [
"a",
"button",
"input",
@@ -42003,15 +41494,15 @@ var Fhe = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function oI(e, t) {
+function rI(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Fhe);
+ let r = n.closest(xhe);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function sI({ children: e, follow: t = !1, onRowClick: n }) {
+function iI({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -42019,15 +41510,15 @@ function sI({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && oI(e, r) && n(r.dataset.key);
+ r && rI(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Ihe = rr("unlink"), cI = rr("rotate-cw"), Lhe = "站点返回 404 或 410,确认这个地址不存在。", Rhe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", zhe = "删除前会逐条重验一次;此操作不可撤销。", Bhe = "暂时无法读取进度,正在重新连接…", lI = (e) => Number(e || 0).toLocaleString();
-function uI({ label: e, value: t, note: n }) {
+var She = rr("unlink"), aI = rr("rotate-cw"), Che = "站点返回 404 或 410,确认这个地址不存在。", whe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", The = "删除前会逐条重验一次;此操作不可撤销。", Ehe = "暂时无法读取进度,正在重新连接…", oI = (e) => Number(e || 0).toLocaleString();
+function sI({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -42046,11 +41537,11 @@ function uI({ label: e, value: t, note: n }) {
]
});
}
-function dI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function cI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: GA,
+ className: pk,
children: [
/* @__PURE__ */ (0, H.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -42063,13 +41554,13 @@ function dI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, H.jsx)(sI, { children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ /* @__PURE__ */ (0, H.jsx)(iI, { children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, H.jsxs)(Xv, { children: [
- i ? /* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Jv, { children: [
+ i ? /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "pick",
- children: /* @__PURE__ */ (0, H.jsx)(qO, {
+ children: /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -42077,44 +41568,44 @@ function dI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, H.jsx)($v, { children: t.map((e) => /* @__PURE__ */ (0, H.jsxs)(ny, {
+ ] }), /* @__PURE__ */ (0, H.jsx)(Zv, { children: t.map((e) => /* @__PURE__ */ (0, H.jsxs)(ey, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)(qO, {
+ i ? /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, H.jsx)(iy, { children: e.entity }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: dF[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: e.label || "" }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)("span", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: e.entity }),
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: aF[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: e.label || "" }),
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsxs)("a", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -42124,7 +41615,7 @@ function dI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, H.jsx)(dE, {
+ }), /* @__PURE__ */ (0, H.jsx)(hE, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -42136,27 +41627,27 @@ function dI({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Vhe() {
+function Dhe() {
let e = Cn({
- queryKey: cF,
- queryFn: ({ signal: e }) => pF(e)
- }), [t, n] = (0, V.useState)([]), r = rI({
- queryKey: uF,
- queryFn: ({ signal: e }) => hF(e),
- start: Wme,
+ queryKey: nF,
+ queryFn: ({ signal: e }) => sF(e)
+ }), [t, n] = (0, V.useState)([]), r = ZF({
+ queryKey: iF,
+ queryFn: ({ signal: e }) => lF(e),
+ start: Ame,
onFinish: () => {
_.invalidateQueries({
- queryKey: cF,
+ queryKey: nF,
exact: !0
}), _.invalidateQueries({
- queryKey: lF,
+ queryKey: rF,
exact: !0
});
}
- }), i = rI({
- queryKey: lF,
- queryFn: ({ signal: e }) => mF(e),
- start: Ume,
+ }), i = ZF({
+ queryKey: rF,
+ queryFn: ({ signal: e }) => cF(e),
+ start: kme,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -42186,7 +41677,7 @@ function Vhe() {
else if (v) x = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "success",
title: "完成",
- children: Gme(v)
+ children: jme(v)
});
else if (y) x = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
@@ -42196,7 +41687,7 @@ function Vhe() {
else if (i.query.isError && a) x = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Bhe
+ children: Ehe
});
else if (a?.status === "failed") x = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
@@ -42204,12 +41695,12 @@ function Vhe() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- b = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, H.jsx)($A, {
+ b = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
- label: Kme(a),
+ label: Mme(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, H.jsx)($A, {
+ }) : null, c ? /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -42217,38 +41708,38 @@ function Vhe() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
x = l || u.length || d.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
- className: mde,
+ className: Xle,
children: [
- /* @__PURE__ */ (0, H.jsx)(dI, {
+ /* @__PURE__ */ (0, H.jsx)(cI, {
title: "地址已失效",
items: u,
- hint: Lhe
+ hint: Che
}),
- /* @__PURE__ */ (0, H.jsx)(dI, {
+ /* @__PURE__ */ (0, H.jsx)(cI, {
title: "本次未访问成功",
items: d,
- hint: Rhe,
+ hint: whe,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, H.jsxs)(KA, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
- leadingIcon: cI,
+ children: /* @__PURE__ */ (0, H.jsxs)(mk, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
+ leadingIcon: aI,
disabled: !t.length,
...X(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, H.jsx)(J, {
- leadingIcon: cI,
+ leadingIcon: aI,
...X(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, H.jsx)(KA, {
+ l && u.length ? /* @__PURE__ */ (0, H.jsx)(mk, {
tone: "error",
- status: zhe,
+ status: The,
children: /* @__PURE__ */ (0, H.jsx)(J, {
variant: "danger",
...X(c),
@@ -42257,7 +41748,7 @@ function Vhe() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, H.jsx)("p", {
- className: `${GA} text-body-regular text-notification-success-foreground`,
+ className: `${pk} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -42268,21 +41759,21 @@ function Vhe() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, H.jsx)(qA, {
+ /* @__PURE__ */ (0, H.jsx)(hk, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, H.jsxs)(YA, {
+ /* @__PURE__ */ (0, H.jsxs)(_k, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, H.jsx)(J, {
- leadingIcon: Ihe,
+ leadingIcon: She,
...X(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, H.jsx)(JA, {
+ /* @__PURE__ */ (0, H.jsx)(gk, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -42293,13 +41784,13 @@ function Vhe() {
children: R(e.error)
}) : p ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, H.jsx)(uI, {
+ children: [/* @__PURE__ */ (0, H.jsx)(sI, {
label: "链接总数",
- value: lI(p.total),
- note: `分布在 ${lI(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(uI, {
- label: dF[e] || e,
- value: lI(t)
+ value: oI(p.total),
+ note: `分布在 ${oI(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(sI, {
+ label: aF[e] || e,
+ value: oI(t)
}, e))]
}), m ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -42328,18 +41819,18 @@ function Vhe() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Hhe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Uhe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Whe = 8;
-function Ghe({ plan: e }) {
+var Ohe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, khe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Ahe = 8;
+function jhe({ plan: e }) {
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Whe).map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
+ children: e.rows.slice(0, Ahe).map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, H.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: OF(e.current_path)
+ children: SF(e.current_path)
}),
/* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
@@ -42349,7 +41840,7 @@ function Ghe({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: OF(e.target_path)
+ children: SF(e.target_path)
})
]
}, e.current_path))
@@ -42358,10 +41849,10 @@ function Ghe({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Khe({ toast: t, failure: n }) {
+function Mhe({ toast: t, failure: n }) {
let r = Cn({
- queryKey: EF,
- queryFn: ({ signal: e }) => DF(e)
+ queryKey: bF,
+ queryFn: ({ signal: e }) => xF(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, V.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, V.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -42374,8 +41865,8 @@ function Khe({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), b = Fn({
- mutationFn: ihe,
- onSuccess: (e, t) => void ohe({
+ mutationFn: Wme,
+ onSuccess: (e, t) => void Kme({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -42383,29 +41874,29 @@ function Khe({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = che.test(R(e)) ? "dir" : "file";
+ let t = Jme.test(R(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
- }), x = rI({
- queryKey: EF,
- queryFn: ({ signal: e }) => DF(e),
- start: ahe,
+ }), x = ZF({
+ queryKey: bF,
+ queryFn: ({ signal: e }) => xF(e),
+ start: Gme,
jobOf: (e) => e,
- withJob: she,
+ withJob: qme,
onStarted: () => b.reset(),
onFinish: (e) => {
if (_.invalidateQueries({
- queryKey: EF,
+ queryKey: bF,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = AF(e);
+ let { text: r, failed: i } = wF(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), S = x.running || x.start.isPending, C = b.data, w = Number(C?.counts?.change || 0), T = e[c] || c, E = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
b.isPending || !c || (h(null), b.mutate(y()));
}, O = () => void fe({
title: "按模板整理文件",
- body: Hhe(T),
+ body: Ohe(T),
confirmLabel: "整理文件",
onConfirm: () => x.start.mutateAsync({
kind: "apply",
@@ -42413,13 +41904,13 @@ function Khe({ toast: t, failure: n }) {
})
}), k = () => void fe({
title: "回滚上一批整理",
- body: Uhe,
+ body: khe,
confirmLabel: "回滚整理",
onConfirm: () => x.start.mutateAsync({ kind: "rollback" })
}), A = null, j = x.job, M = x.outcome;
if (j?.status === "running") {
let e = j.message || j.stage || "正在整理文件…";
- A = /* @__PURE__ */ (0, H.jsx)($A, {
+ A = /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: e,
value: j.checked,
@@ -42431,7 +41922,7 @@ function Khe({ toast: t, failure: n }) {
children: M.error || "请查看任务记录,核对已处理的文件。"
});
else if (M) {
- let { text: e, failed: t } = AF(M);
+ let { text: e, failed: t } = wF(M);
A = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -42441,7 +41932,7 @@ function Khe({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: R(x.start.error)
- }) : b.isPending ? A = /* @__PURE__ */ (0, H.jsx)($A, {
+ }) : b.isPending ? A = /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: "正在按模板算计划…"
}) : b.isError ? A = /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -42451,9 +41942,9 @@ function Khe({ toast: t, failure: n }) {
}) : C && (A = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: lhe(C)
- }), w ? /* @__PURE__ */ (0, H.jsx)(Ghe, { plan: C }) : null] }));
- return /* @__PURE__ */ (0, H.jsxs)(YA, {
+ children: Yme(C)
+ }), w ? /* @__PURE__ */ (0, H.jsx)(jhe, { plan: C }) : null] }));
+ return /* @__PURE__ */ (0, H.jsxs)(_k, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -42477,7 +41968,7 @@ function Khe({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, H.jsx)(JA, {
+ /* @__PURE__ */ (0, H.jsx)(gk, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -42497,20 +41988,20 @@ function Khe({ toast: t, failure: n }) {
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, H.jsx)(pP, {
+ a.length ? /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), h(null), b.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, H.jsxs)(mP, {
+ children: a.map((t) => /* @__PURE__ */ (0, H.jsxs)(cP, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: ue[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: ue[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -42521,7 +42012,7 @@ function Khe({ toast: t, failure: n }) {
p({ file: e }), h(null);
}
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -42561,56 +42052,56 @@ function Khe({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var qhe = "/api/orphan-records", Jhe = "/api/orphan-records/attach", fI = ["orphan-records"], Yhe = [
+var Nhe = "/api/orphan-records", Phe = "/api/orphan-records/attach", lI = ["orphan-records"], Fhe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Xhe = (e) => z(qhe, e), Zhe = (e, t) => B(Jhe, {
+], Ihe = (e) => z(Nhe, e), Lhe = (e, t) => B(Phe, {
id: e,
target: t
-}), Qhe = (e) => B(IP, {
+}), Rhe = (e) => B(AP, {
ids: [e],
operation: "delete"
-}), $he = (e) => [
+}), zhe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], pI = (e) => [...Yhe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...$he(e)].filter(Boolean).join(" · "), ege = (e) => e ? `${Math.round(e / 60)} 分钟` : "", mI = (e) => [e.name, ege(e.duration)].filter(Boolean).join(" · "), tge = rr("play"), hI = () => _.invalidateQueries({
- queryKey: fI,
+], uI = (e) => [...Fhe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...zhe(e)].filter(Boolean).join(" · "), Bhe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", dI = (e) => [e.name, Bhe(e.duration)].filter(Boolean).join(" · "), Vhe = rr("play"), fI = () => _.invalidateQueries({
+ queryKey: lI,
exact: !0
});
-function nge({ item: t, toast: n }) {
+function Hhe({ item: t, toast: n }) {
let [r, i] = (0, V.useState)(t.candidates[0]?.id ?? null), a = Fn({
- mutationFn: () => Zhe(t.id, Number(r)),
+ mutationFn: () => Lhe(t.id, Number(r)),
onSuccess: (e) => {
- n(`记录已接到新文件,批次 ${e.batch}`), hI();
+ n(`记录已接到新文件,批次 ${e.batch}`), fI();
},
onError: (e) => n(R(e))
}), o = Fn({
- mutationFn: () => Qhe(t.id),
+ mutationFn: () => Rhe(t.id),
onSuccess: (e) => {
- n(e.blocked.length ? `${t.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${t.name}`), hI();
+ n(e.blocked.length ? `${t.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${t.name}`), fI();
}
}), s = () => {
fe({
title: "彻底删除",
- body: `将删除「${t.name}」这一条和它带的记录(${pI(t.records)})。此操作不可撤销。`,
+ body: `将删除「${t.name}」这一条和它带的记录(${uI(t.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => o.mutateAsync()
});
}, c = a.isPending || o.isPending;
- return /* @__PURE__ */ (0, H.jsxs)(ny, {
+ return /* @__PURE__ */ (0, H.jsxs)(ey, {
id: t.id,
children: [
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsxs)("span", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, H.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, H.jsx)(tge, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Vhe, {
"aria-hidden": !0,
className: "size-5"
}), t.has_thumb ? /* @__PURE__ */ (0, H.jsx)("img", {
@@ -42632,27 +42123,27 @@ function nge({ item: t, toast: n }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)("span", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)("span", {
className: "block min-w-44",
- children: pI(t.records)
+ children: uI(t.records)
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: t.candidates.length ? /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: t.candidates.length ? /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": `把 ${t.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: r,
onSelectionChange: (e) => {
e !== null && i(Number(e));
},
- children: t.candidates.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: t.candidates.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e.id,
- textValue: mI(e),
- children: mI(e)
+ textValue: dI(e),
+ children: dI(e)
}, e.id))
}) : /* @__PURE__ */ (0, H.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsxs)("span", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [t.candidates.length ? /* @__PURE__ */ (0, H.jsx)(J, {
size: "small",
@@ -42672,23 +42163,23 @@ function nge({ item: t, toast: n }) {
]
});
}
-function rge({ toast: e }) {
+function Uhe({ toast: e }) {
let t = Cn({
- queryKey: fI,
- queryFn: ({ signal: e }) => Xhe(e)
+ queryKey: lI,
+ queryFn: ({ signal: e }) => Ihe(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, H.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, H.jsx)(qA, {
+ children: [/* @__PURE__ */ (0, H.jsx)(hk, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, H.jsxs)(YA, {
+ }), /* @__PURE__ */ (0, H.jsxs)(_k, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, H.jsx)(JA, {
+ /* @__PURE__ */ (0, H.jsx)(gk, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -42701,28 +42192,28 @@ function rge({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: R(t.error)
- }) : /* @__PURE__ */ (0, H.jsx)(sI, { children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ }) : /* @__PURE__ */ (0, H.jsx)(iI, { children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, H.jsxs)(Xv, { children: [
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Jv, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, H.jsx)($v, { children: n.map((t) => /* @__PURE__ */ (0, H.jsx)(nge, {
+ ] }), /* @__PURE__ */ (0, H.jsx)(Zv, { children: n.map((t) => /* @__PURE__ */ (0, H.jsx)(Hhe, {
item: t,
toast: e
}, t.id)) })]
@@ -42733,99 +42224,99 @@ function rge({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var ige = rr("git-compare"), age = rr("rotate-cw"), oge = "暂时无法读取进度,正在重新连接…", gI = "清理失效条目", _I = "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", vI = (e) => Number(e || 0).toLocaleString();
-function sge({ scan: e }) {
+var Whe = rr("git-compare"), Ghe = rr("rotate-cw"), Khe = "暂时无法读取进度,正在重新连接…", pI = "清理失效条目", mI = "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", hI = (e) => Number(e || 0).toLocaleString();
+function qhe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: _I,
+ className: mI,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, H.jsx)("article", {
- className: $F(),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
- label: mhe[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, H.jsx)(mj, { mark: ue[e.location] ?? "database" }),
+ className: qF(),
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
+ label: ehe[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, H.jsx)(zk, { mark: ue[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, H.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${vI(e.missing)} 项` : "—",
- meta: vhe(e),
+ figure: e.online ? `${hI(e.missing)} 项` : "—",
+ meta: ihe(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, H.jsxs)("div", {
- className: _I,
+ className: mI,
children: [
/* @__PURE__ */ (0, H.jsx)("article", {
- className: $F(),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
+ className: qF(),
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
label: "待永久删除",
- figure: `${vI(zF(e))} 项`,
+ figure: `${hI(NF(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, H.jsx)("article", {
- className: $F(),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
+ className: qF(),
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
label: "将标为已消失",
- figure: `${vI(e.vanish)} 项`,
+ figure: `${hI(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, H.jsx)("article", {
- className: $F(),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
+ className: qF(),
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
label: "空文件夹",
- figure: `${vI(e.empty)} 个`,
+ figure: `${hI(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, H.jsx)("article", {
- className: $F(),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
+ className: qF(),
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
label: "可清理的缓存",
- figure: `${vI(t.files)} 个`,
+ figure: `${hI(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
})
})
]
})] });
}
-function cge({ toast: e }) {
- let t = rI({
- queryKey: PF,
- queryFn: ({ signal: e }) => IF(e),
- start: dhe,
+function Jhe({ toast: e }) {
+ let t = ZF({
+ queryKey: OF,
+ queryFn: ({ signal: e }) => AF(e),
+ start: Zme,
onFinish: (t) => {
if (_.invalidateQueries({
- queryKey: KF,
+ queryKey: BF,
exact: !0
}), _.invalidateQueries({
- queryKey: NF,
+ queryKey: DF,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = HF(t);
- r ? e(`已完成 ${vI(n)} 项,${vI(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = IF(t);
+ r ? e(`已完成 ${hI(n)} 项,${hI(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = rI({
- queryKey: NF,
- queryFn: ({ signal: e }) => FF(e),
- start: uhe,
+ }), n = ZF({
+ queryKey: DF,
+ queryFn: ({ signal: e }) => kF(e),
+ start: Xme,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void fe({
- title: gI,
- body: _he(e),
- confirmLabel: gI,
+ title: pI,
+ body: rhe(e),
+ confirmLabel: pI,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = HF(e).left > 0;
+ let t = IF(e).left > 0;
return /* @__PURE__ */ (0, H.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: yhe(e, s)
+ children: ahe(e, s)
});
}, f = null, p = null;
if (u?.status === "failed") p = /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -42834,7 +42325,7 @@ function cge({ toast: e }) {
children: u.error || "请查看任务记录,核对已处理的文件。"
});
else if (u) p = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, H.jsx)($A, {
+ else if (t.running) f = /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -42846,11 +42337,11 @@ function cge({ toast: e }) {
else if (n.query.isError && r) p = /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: oge
+ children: Khe
});
else if (r?.status === "running") {
- let e = hhe(r);
- f = /* @__PURE__ */ (0, H.jsx)($A, {
+ let e = the(r);
+ f = /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -42867,13 +42358,13 @@ function cge({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = phe(r);
+ let e = $me(r);
p = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(sge, { scan: r }),
+ /* @__PURE__ */ (0, H.jsx)(qhe, { scan: r }),
e ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: ghe(r)
+ children: nhe(r)
}) : null,
/* @__PURE__ */ (0, H.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -42881,7 +42372,7 @@ function cge({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => l(r),
- children: a ? "正在复核并清理…" : gI
+ children: a ? "正在复核并清理…" : pI
}) : /* @__PURE__ */ (0, H.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -42898,16 +42389,16 @@ function cge({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, H.jsx)(qA, {
+ /* @__PURE__ */ (0, H.jsx)(hk, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, H.jsxs)(YA, {
+ /* @__PURE__ */ (0, H.jsxs)(_k, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, H.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? age : ige,
+ leadingIcon: o && !i ? Ghe : Whe,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -42915,7 +42406,7 @@ function cge({ toast: e }) {
children: c
}),
children: [
- /* @__PURE__ */ (0, H.jsx)(JA, {
+ /* @__PURE__ */ (0, H.jsx)(gk, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -42941,16 +42432,16 @@ function cge({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function yI(e, t) {
+function gI(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function bI({ section: e, label: t, icon: n, value: r, open: i }) {
+function _I({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
- className: $F({ interactive: !0 }),
+ className: qF({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, H.jsx)(eI, {
+ children: /* @__PURE__ */ (0, H.jsx)(JF, {
label: t,
icon: n,
figure: r.figure,
@@ -42958,80 +42449,80 @@ function bI({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var lge = rr("square-check-big"), uge = rr("sparkles"), dge = rr("file-stack"), fge = rr("file-archive"), pge = rr("trash"), mge = [
- UF,
- qP,
- FP
-], hge = () => {
- for (let e of mge) _.invalidateQueries({
+var Yhe = rr("square-check-big"), Xhe = rr("sparkles"), Zhe = rr("file-stack"), Qhe = rr("file-archive"), $he = rr("trash"), ege = [
+ LF,
+ VP,
+ kP
+], tge = () => {
+ for (let e of ege) _.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function gge({ toast: e, failure: t, open: n }) {
+function nge({ toast: e, failure: t, open: n }) {
let r = Cn({
- queryKey: UF,
- queryFn: ({ signal: e }) => qF(e)
+ queryKey: LF,
+ queryFn: ({ signal: e }) => VF(e)
}), i = Cn({
- queryKey: qP,
- queryFn: ({ signal: e }) => JP(e)
+ queryKey: VP,
+ queryFn: ({ signal: e }) => HP(e)
}), a = Cn({
- queryKey: FP,
- queryFn: ({ signal: e }) => LP(e)
+ queryKey: kP,
+ queryFn: ({ signal: e }) => jP(e)
}), o = Cn({
- queryKey: WF,
- queryFn: ({ signal: e }) => JF(e)
+ queryKey: RF,
+ queryFn: ({ signal: e }) => HF(e)
}), c = Cn({
- queryKey: KF,
- queryFn: ({ signal: e }) => YF(e)
+ queryKey: BF,
+ queryFn: ({ signal: e }) => UF(e)
}), l = Cn({
- queryKey: MP,
- queryFn: ({ signal: e }) => NP(e)
+ queryKey: EP,
+ queryFn: ({ signal: e }) => DP(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
+ return /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
- className: Ahe,
+ className: ghe,
children: [
- /* @__PURE__ */ (0, H.jsx)(bI, {
+ /* @__PURE__ */ (0, H.jsx)(_I, {
section: "review",
label: "人工复核",
- icon: lge,
+ icon: Yhe,
open: n,
- value: yI(r, Che)
+ value: gI(r, lhe)
}),
- /* @__PURE__ */ (0, H.jsx)(bI, {
+ /* @__PURE__ */ (0, H.jsx)(_I, {
section: "quality",
label: "高清版",
- icon: uge,
+ icon: Xhe,
open: n,
- value: yI(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: gI(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, H.jsx)(bI, {
+ /* @__PURE__ */ (0, H.jsx)(_I, {
section: "duplicates",
label: "重复文件",
- icon: dge,
+ icon: Zhe,
open: n,
- value: yI(a, (e) => Number(e.total || 0) ? {
+ value: gI(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${s(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, H.jsx)(bI, {
+ /* @__PURE__ */ (0, H.jsx)(_I, {
section: "ads",
label: "垃圾文件",
- icon: fge,
+ icon: Qhe,
open: n,
- value: yI(o, (e) => ({
+ value: gI(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: whe(e)
+ meta: uhe(e)
}))
}),
- /* @__PURE__ */ (0, H.jsx)(bI, {
+ /* @__PURE__ */ (0, H.jsx)(_I, {
section: "trash",
label: "回收站",
- icon: pge,
+ icon: $he,
open: n,
- value: yI(c, (e) => ({
+ value: gI(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${s(e.bytes || 0)}` : ""
}))
@@ -43044,52 +42535,52 @@ function gge({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, H.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, H.jsx)(gj, {
+ children: /* @__PURE__ */ (0, H.jsx)(Jk, {
toast: u,
monitor: !0,
- onComplete: hge
+ onComplete: tge
})
}),
/* @__PURE__ */ (0, H.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, H.jsx)(Phe, {})
+ children: /* @__PURE__ */ (0, H.jsx)(bhe, {})
}),
- /* @__PURE__ */ (0, H.jsx)(Khe, {
+ /* @__PURE__ */ (0, H.jsx)(Mhe, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, H.jsx)(Vhe, {}),
- /* @__PURE__ */ (0, H.jsx)(rge, { toast: u }),
- LF(l.data) ? /* @__PURE__ */ (0, H.jsx)(cge, { toast: e }) : null
+ /* @__PURE__ */ (0, H.jsx)(Dhe, {}),
+ /* @__PURE__ */ (0, H.jsx)(Uhe, { toast: u }),
+ jF(l.data) ? /* @__PURE__ */ (0, H.jsx)(Jhe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var _ge = rr("play"), vge = rr("file-stack"), yge = kT({
+var rge = rr("play"), ige = rr("file-stack"), age = NT({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), xI = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", SI = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", CI = "font-mono text-caption-1-regular leading-5 text-text-secondary", wI = () => {
+}), vI = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", yI = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", bI = "font-mono text-caption-1-regular leading-5 text-text-secondary", xI = () => {
_.invalidateQueries({
- queryKey: FP,
+ queryKey: kP,
exact: !0
}), _.invalidateQueries({
- queryKey: KF,
+ queryKey: BF,
exact: !0
});
};
-function bge(e) {
+function oge(e) {
return e.identical ? /* @__PURE__ */ (0, H.jsx)("span", {
- className: `${SI} text-(--keep)`,
+ className: `${yI} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, H.jsx)("span", {
- className: `${SI} text-text-secondary`,
+ className: `${yI} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function xge({ file: t, openItem: n }) {
+function sge({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -43099,7 +42590,7 @@ function xge({ 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, H.jsx)(_ge, {
+ children: [/* @__PURE__ */ (0, H.jsx)(rge, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, H.jsx)("img", {
@@ -43123,55 +42614,55 @@ function xge({ file: t, openItem: n }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, H.jsx)("i", {
- className: `${xI} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${vI} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, H.jsx)("i", {
- className: `${xI} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${vI} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, H.jsxs)("span", {
- className: `${CI} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: ue[t.location] || "database" }), /* @__PURE__ */ (0, H.jsx)("span", {
+ className: `${bI} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: ue[t.location] || "database" }), /* @__PURE__ */ (0, H.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, H.jsx)("span", {
- className: CI,
+ className: bI,
children: s(t.size || 0)
}),
/* @__PURE__ */ (0, H.jsx)("span", {
- className: CI,
+ className: bI,
children: o(t.duration)
}),
/* @__PURE__ */ (0, H.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${CI} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${bI} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function Sge({ openItem: t, toast: n, failure: r }) {
+function cge({ openItem: t, toast: n, failure: r }) {
let i = Cn({
- queryKey: FP,
- queryFn: ({ signal: e }) => LP(e)
+ queryKey: kP,
+ queryFn: ({ signal: e }) => jP(e)
}), a = Cn({
- queryKey: MP,
- queryFn: ({ signal: e }) => NP(e)
+ queryKey: EP,
+ queryFn: ({ signal: e }) => DP(e)
}), [o, c] = (0, V.useState)(""), l = Fn({
- mutationFn: (e) => BP(e, "dispose"),
+ mutationFn: (e) => PP(e, "dispose"),
onSuccess: (e, t) => {
- wI(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ xI(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await BP(t, "restore");
+ await PP(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- wI();
+ xI();
}
} });
},
@@ -43185,12 +42676,12 @@ function Sge({ openItem: t, toast: n, failure: r }) {
children: i.error ? R(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let d = u.groups ?? [], f = ome(a.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = Kpe(a.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = dme(e, t);
+ let r = Zpe(e, t);
r.length && fe({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${RP[t] ?? RP.largest}。文件共 ${s(fme(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${MP[t] ?? MP.largest}。文件共 ${s(Qpe(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -43198,7 +42689,7 @@ function Sge({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, H.jsx)(jA, {
+ /* @__PURE__ */ (0, H.jsx)($O, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${s(u.reclaimable)}`
@@ -43224,7 +42715,7 @@ function Sge({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- ume(d, f).map((t) => /* @__PURE__ */ (0, H.jsx)(da, {
+ Xpe(d, f).map((t) => /* @__PURE__ */ (0, H.jsx)(da, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -43247,7 +42738,7 @@ function Sge({ openItem: t, toast: n, failure: r }) {
let i = [n], a = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, H.jsxs)("section", {
"aria-label": n.code,
- className: yge,
+ className: age,
children: [/* @__PURE__ */ (0, H.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: [
@@ -43259,9 +42750,9 @@ function Sge({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${s(n.reclaimable)}`
}),
- bge(n),
+ oge(n),
n.cross_drive ? /* @__PURE__ */ (0, H.jsx)("span", {
- className: `${SI} text-text-secondary`,
+ className: `${yI} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, H.jsxs)("span", {
@@ -43289,7 +42780,7 @@ function Sge({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- zP(n.files, f).map((t) => /* @__PURE__ */ (0, H.jsx)(J, {
+ NP(n.files, f).map((t) => /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
...m(a(t)),
@@ -43314,13 +42805,13 @@ function Sge({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, H.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, H.jsx)(xge, {
+ }), /* @__PURE__ */ (0, H.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, H.jsx)(sge, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: vge,
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: ige,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -43329,8 +42820,8 @@ function Sge({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function TI({ provider: e, label: t }) {
- let n = cO(e), [r, i] = (0, V.useState)(!1);
+function SI({ provider: e, label: t }) {
+ let n = fO(e), [r, i] = (0, V.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: t }) : null : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("img", {
src: n,
alt: "",
@@ -43341,8 +42832,8 @@ function TI({ provider: e, label: t }) {
className: "size-3.5 shrink-0 rounded-sm object-contain"
}), t ? /* @__PURE__ */ (0, H.jsx)(zu, { children: t }) : null] });
}
-function EI({ group: e, name: t }) {
- let { src: n, fallback: r } = UD(e), [i, a] = (0, V.useState)(0), o = [n, r].filter(Boolean)[i];
+function CI({ group: e, name: t }) {
+ let { src: n, fallback: r } = qD(e), [i, a] = (0, V.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, H.jsx)("img", {
src: o,
alt: "",
@@ -43355,18 +42846,18 @@ function EI({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, H.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: HD(t)
+ children: KD(t)
});
}
-function DI({ source: e }) {
- let t = ID(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, H.jsx)(SE, {
+function wI({ source: e }) {
+ let t = BD(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: t,
- children: _ce(e)
+ children: pce(e)
});
}
-function OI({ source: e }) {
+function TI({ source: e }) {
return /* @__PURE__ */ (0, H.jsx)("a", {
href: e.url,
target: "_blank",
@@ -43378,8 +42869,8 @@ function OI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var kI = ra(oD, sD, "text-body-2-medium"), Cge = "粘贴来源链接,或输入创作者名、id…", wge = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Tge = "识别中…", Ege = "站内没有查到来源", AI = (e, t) => `${e}:${t.url}`;
-function Dge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var EI = ra(uD, dD, "text-body-2-medium"), lge = "粘贴来源链接,或输入创作者名、id…", uge = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", dge = "识别中…", fge = "站内没有查到来源", DI = (e, t) => `${e}:${t.url}`;
+function pge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, V.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
}, [t, r]), /* @__PURE__ */ (0, H.jsxs)(qh, {
@@ -43394,17 +42885,17 @@ function Dge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: ra(aD, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: ra(lD, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, H.jsx)(WO, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, H.jsx)(yk, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, H.jsxs)(V.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, H.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? ra(kI, "bg-background-secondary-default") : kI,
+ className: t === r ? ra(EI, "bg-background-secondary-default") : EI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -43424,7 +42915,7 @@ function Dge({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Oge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function mge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, V.useRef)(null), [a, o] = (0, V.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -43432,7 +42923,7 @@ function Oge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: zoe,
+ leadingIcon: Foe,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
@@ -43444,8 +42935,8 @@ function Oge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: aD,
- children: /* @__PURE__ */ (0, H.jsxs)(Kg, {
+ className: lD,
+ children: /* @__PURE__ */ (0, H.jsxs)(Ug, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -43461,16 +42952,16 @@ function Oge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, H.jsx)(sj, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, H.jsx)(jk, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, H.jsx)(TI, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, H.jsx)(SI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, H.jsx)(J, {
variant: "ghost",
@@ -43486,7 +42977,7 @@ function Oge({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function kge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function hge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: e.line,
@@ -43494,7 +42985,7 @@ function kge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -43505,15 +42996,15 @@ function kge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = AI(t, e);
- return /* @__PURE__ */ (0, H.jsx)(qO, {
+ let n = DI(t, e);
+ return /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, H.jsx)(TI, { provider: e.provider }),
+ /* @__PURE__ */ (0, H.jsx)(SI, { provider: e.provider }),
/* @__PURE__ */ (0, H.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -43529,22 +43020,22 @@ function kge({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, H.jsx)(sj, { children: Ege }),
+ }) : /* @__PURE__ */ (0, H.jsx)(jk, { children: fge }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, H.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, H.jsx)(uj, {
+ }), /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, H.jsx)(sj, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, H.jsx)(jk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function gge({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, V.useState)(""), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(!1), [p, m] = (0, V.useState)(null), [h, g] = (0, V.useState)(-1), _ = (0, V.useRef)(null), v = (0, V.useRef)(null), [y, b] = (0, V.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, V.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, V.useState)(""), [T, E] = (0, V.useState)(0);
(0, V.useEffect)(() => {
let e = a.trim();
@@ -43556,18 +43047,18 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
return () => clearTimeout(t);
}, [a]);
let D = Cn({
- queryKey: dce(l),
- queryFn: ({ signal: e }) => Cce(l, e),
+ queryKey: sce(l),
+ queryFn: ({ signal: e }) => yce(l, e),
enabled: l.length > 0 && d
}), O = (0, V.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = rI({
- queryKey: uce,
- queryFn: ({ signal: e }) => Sce(e),
- start: (e) => wce([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = ZF({
+ queryKey: oce,
+ queryFn: ({ signal: e }) => vce(e),
+ start: (e) => bce([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(R(e)),
onFinish: (e) => {
@@ -43601,14 +43092,14 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: AI(t, e)
+ key: DI(t, e)
})).filter((e) => !x.has(e.key))), ie = Fn({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Tce(r.candidate);
+ let e = await xce(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${R(e)}`);
@@ -43616,7 +43107,7 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
E((e) => e + 1);
}
if (n.length) try {
- await XD(n);
+ await eO(n);
} catch (e) {
t.push(R(e));
}
@@ -43626,7 +43117,7 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
};
},
onSuccess: (e) => {
- if (oO(), e.failures.length) {
+ if (uO(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -43635,7 +43126,7 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(R(e))
}), ae = e.suggestions || [], oe = !s.includes("/");
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43655,15 +43146,15 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, H.jsx)(jE, {
+ children: [/* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "来源链接、名字或 id",
- placeholder: Cge,
+ placeholder: lge,
value: a,
- leadingIcon: vE,
+ leadingIcon: SE,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, H.jsx)(Dge, {
+ }), F ? /* @__PURE__ */ (0, H.jsx)(pge, {
field: _,
menu: v,
options: O,
@@ -43673,7 +43164,7 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, H.jsx)(Oge, {
+ /* @__PURE__ */ (0, H.jsx)(mge, {
credentials: t,
hidden: y,
onHidden: b,
@@ -43691,9 +43182,9 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, H.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, H.jsx)($A, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? wge : Tge),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? uge : dge),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -43705,8 +43196,8 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ne.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, H.jsx)(kge, {
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, H.jsx)(hge, {
row: e,
at: t,
hidden: y,
@@ -43761,16 +43252,16 @@ function Age({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var jge = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, jI = (e) => e.alias;
-function Mge(e, t, n) {
+var _ge = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, OI = (e) => e.alias;
+function vge(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function MI({ sources: e, name: t, canonicalKey: n }) {
+function kI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(EI, {
- group: Mge(e, t, n),
+ children: [/* @__PURE__ */ (0, H.jsx)(CI, {
+ group: vge(e, t, n),
name: t
}), /* @__PURE__ */ (0, H.jsx)("b", {
className: "text-body-medium",
@@ -43778,15 +43269,15 @@ function MI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function yge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, V.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), p = Fn({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await $D(n.canonical, n.alias);
+ await rO(n.canonical, n.alias);
} catch (n) {
- throw t && oO(), Error(`${R(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && uO(), Error(`${R(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -43796,19 +43287,19 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), oO(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), uO(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(R(e))
}), m = Fn({
- mutationFn: (e) => $D(e.canonical, e.alias),
+ mutationFn: (e) => rO(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), oO(), i("已保存创作者别名");
+ c(""), u(""), f(""), uO(), i("已保存创作者别名");
},
onError: (e) => c(R(e))
}), h = Fn({
- mutationFn: (e) => Ece(e),
+ mutationFn: (e) => Sce(e),
onSuccess: () => {
- c(""), oO(), i("已移除创作者别名");
+ c(""), uO(), i("已移除创作者别名");
},
onError: (e) => c(R(e))
}), g = (e, t) => {
@@ -43818,9 +43309,9 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(jI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
+ }, _ = t.filter((e) => a.has(OI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43831,10 +43322,10 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "手动添加别名" }), /* @__PURE__ */ (0, H.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "手动添加别名" }), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -43842,7 +43333,7 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -43863,13 +43354,13 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, H.jsx)(cj, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "待合并" }),
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "待合并" }),
/* @__PURE__ */ (0, H.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -43891,44 +43382,44 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, H.jsx)(sI, { children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ }), /* @__PURE__ */ (0, H.jsx)(iI, { children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, H.jsxs)(Xv, { children: [
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Jv, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "select",
- children: /* @__PURE__ */ (0, H.jsx)(qO, {
+ children: /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(jI)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(OI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, H.jsx)(Zv, {
+ /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, H.jsx)($v, { children: t.map((e) => {
- let t = jI(e);
- return /* @__PURE__ */ (0, H.jsxs)(ny, {
+ ] }), /* @__PURE__ */ (0, H.jsx)(Zv, { children: t.map((e) => {
+ let t = OI(e);
+ return /* @__PURE__ */ (0, H.jsxs)(ey, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)(qO, {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -43937,16 +43428,16 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)(MI, {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)(kI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: e.alias }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)("span", {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: e.alias }),
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -43963,27 +43454,27 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "已保存别名" }), /* @__PURE__ */ (0, H.jsx)("span", {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "已保存别名" }), /* @__PURE__ */ (0, H.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, H.jsx)(sI, { children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ }), e.length ? /* @__PURE__ */ (0, H.jsx)(iI, { children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, H.jsxs)(Xv, { children: [/* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Jv, { children: [/* @__PURE__ */ (0, H.jsx)(Yv, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, H.jsx)(Zv, {
+ }), /* @__PURE__ */ (0, H.jsx)(Yv, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, H.jsx)($v, { children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)(ny, {
+ })] }), /* @__PURE__ */ (0, H.jsx)(Zv, { children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)(ey, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)(MI, {
+ children: [/* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)(kI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, H.jsx)(iy, { children: /* @__PURE__ */ (0, H.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, H.jsx)(ny, { children: /* @__PURE__ */ (0, H.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -43991,13 +43482,13 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: sE,
+ leadingIcon: dE,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
onClick: () => void fe({
title: "移除创作者别名",
- body: jge(e.name),
+ body: _ge(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -44005,9 +43496,9 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: bE,
+ icon: wE,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -44017,33 +43508,33 @@ function Nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Pge = "这些账号信息存在哪里", Fge = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Ige = "将清除这个来源在本机和共享副本中的登录凭据。", Lge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function Rge(e, t) {
+var bge = "这些账号信息存在哪里", xge = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Sge = "将清除这个来源在本机和共享副本中的登录凭据。", Cge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function wge(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function zge({ row: e }) {
- if (lO(e)) return /* @__PURE__ */ (0, H.jsx)(SE, {
+function Tge({ row: e }) {
+ if (pO(e)) return /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, H.jsx)(SE, {
+ return /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: t,
- children: Lce[e.requirement] || ""
+ children: Nce[e.requirement] || ""
});
}
-function Bge({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, V.useState)({}), [a, o] = (0, V.useState)(""), s = lO(e), c = Fn({
- mutationFn: (t) => Dce(e.provider, t),
+function Ege({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, V.useState)({}), [a, o] = (0, V.useState)(""), s = pO(e), c = Fn({
+ mutationFn: (t) => Cce(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), _.invalidateQueries({
- queryKey: AD,
+ queryKey: PD,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -44059,17 +43550,17 @@ function Bge({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsxs)(sj, { children: [e.why, e.where ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [" ", /* @__PURE__ */ (0, H.jsx)(uj, {
+ /* @__PURE__ */ (0, H.jsxs)(jk, { children: [e.why, e.where ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [" ", /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, H.jsx)(sj, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, H.jsx)(jk, { children: e.howto }) : null,
/* @__PURE__ */ (0, H.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, H.jsx)(FE, {
type: "password",
label: n,
- placeholder: Rge(e, n),
+ placeholder: wge(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -44097,7 +43588,7 @@ function Bge({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void fe({
title: "清除来源凭据",
- body: Ige,
+ body: Sge,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -44105,9 +43596,9 @@ function Bge({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, H.jsx)(cj, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, H.jsx)(sj, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, H.jsx)(XA, {
+ a ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, H.jsx)(jk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, H.jsx)(vk, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -44115,25 +43606,25 @@ function Bge({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: Lge
+ children: Cge
}) : null
]
});
}
-function Vge({ row: e, readOnly: t, toast: n }) {
+function Dge({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, H.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, H.jsx)(TI, { provider: e.provider })
+ children: /* @__PURE__ */ (0, H.jsx)(SI, { provider: e.provider })
}),
/* @__PURE__ */ (0, H.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, H.jsx)(zge, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, H.jsx)(SE, {
+ /* @__PURE__ */ (0, H.jsx)(Tge, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -44142,13 +43633,13 @@ function Vge({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, H.jsx)(sj, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, H.jsx)(jk, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, H.jsx)(pj, {
- summary: lO(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !lO(e),
- children: /* @__PURE__ */ (0, H.jsx)(Bge, {
+ children: [r, /* @__PURE__ */ (0, H.jsx)(Lk, {
+ summary: pO(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !pO(e),
+ children: /* @__PURE__ */ (0, H.jsx)(Ege, {
row: e,
readOnly: t,
toast: n
@@ -44156,10 +43647,10 @@ function Vge({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function Hge({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !lO(e));
+function Oge({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !pO(e));
return r.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44194,12 +43685,12 @@ function Hge({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, H.jsx)("div", {
- className: kT({
+ className: NT({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, H.jsx)(Vge, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, H.jsx)(Dge, {
row: e,
readOnly: t,
toast: n
@@ -44211,13 +43702,13 @@ function Hge({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, H.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Pge
+ children: bge
}),
/* @__PURE__ */ (0, H.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Fge
+ children: xge
}),
- /* @__PURE__ */ (0, H.jsx)(XA, {
+ /* @__PURE__ */ (0, H.jsx)(vk, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -44226,16 +43717,16 @@ function Hge({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: Woe,
+ icon: Boe,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function NI() {
+function AI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -44248,24 +43739,24 @@ function NI() {
group: (e) => e
};
}
-function PI(e, t) {
+function jI(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function FI(e, t) {
+function MI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: PI(n, t[e])
+ [e]: jI(n, t[e])
}));
};
}
-function II(e) {
+function NI(e) {
return e instanceof Function;
}
-function Uge(e) {
+function kge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function Wge(e, t) {
+function Age(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -44275,7 +43766,7 @@ function Wge(e, t) {
};
return r(e), n;
}
-function LI(e, t, n) {
+function PI(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -44297,21 +43788,21 @@ function LI(e, t, n) {
return i;
};
}
-function RI(e, t, n, r) {
+function FI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function Gge(e, t, n, r) {
+function jge(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: LI(() => [
+ getContext: PI(() => [
e,
n,
t,
@@ -44323,13 +43814,13 @@ function Gge(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), RI(e.options, "debugCells", "cell.getContext"))
+ }), FI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function Kge(e, t, n, r) {
+function Mge(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -44346,17 +43837,17 @@ function Kge(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: LI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], RI(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: LI(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: PI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], FI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: PI(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, RI(e.options, "debugColumns", "column.getLeafColumns"))
+ }, FI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var zI = "debugHeaders";
-function BI(e, t, n) {
+var II = "debugHeaders";
+function LI(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -44384,42 +43875,42 @@ function BI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var qge = { createTable: (e) => {
- e.getHeaderGroups = LI(() => [
+var Nge = { createTable: (e) => {
+ e.getHeaderGroups = PI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return VI(t, [
+ return RI(t, [
...a,
...s,
...o
], e);
- }, RI(e.options, zI, "getHeaderGroups")), e.getCenterHeaderGroups = LI(() => [
+ }, FI(e.options, II, "getHeaderGroups")), e.getCenterHeaderGroups = PI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), VI(t, n, e, "center")), RI(e.options, zI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = LI(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), RI(t, n, e, "center")), FI(e.options, II, "getCenterHeaderGroups")), e.getLeftHeaderGroups = PI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => VI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), RI(e.options, zI, "getLeftHeaderGroups")), e.getRightHeaderGroups = LI(() => [
+ ], (t, n, r) => RI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), FI(e.options, II, "getLeftHeaderGroups")), e.getRightHeaderGroups = PI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => VI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), RI(e.options, zI, "getRightHeaderGroups")), e.getFooterGroups = LI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), RI(e.options, zI, "getFooterGroups")), e.getLeftFooterGroups = LI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), RI(e.options, zI, "getLeftFooterGroups")), e.getCenterFooterGroups = LI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), RI(e.options, zI, "getCenterFooterGroups")), e.getRightFooterGroups = LI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), RI(e.options, zI, "getRightFooterGroups")), e.getFlatHeaders = LI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RI(e.options, zI, "getFlatHeaders")), e.getLeftFlatHeaders = LI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RI(e.options, zI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = LI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RI(e.options, zI, "getCenterFlatHeaders")), e.getRightFlatHeaders = LI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), RI(e.options, zI, "getRightFlatHeaders")), e.getCenterLeafHeaders = LI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => RI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), FI(e.options, II, "getRightHeaderGroups")), e.getFooterGroups = PI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), FI(e.options, II, "getFooterGroups")), e.getLeftFooterGroups = PI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), FI(e.options, II, "getLeftFooterGroups")), e.getCenterFooterGroups = PI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), FI(e.options, II, "getCenterFooterGroups")), e.getRightFooterGroups = PI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), FI(e.options, II, "getRightFooterGroups")), e.getFlatHeaders = PI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), FI(e.options, II, "getFlatHeaders")), e.getLeftFlatHeaders = PI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), FI(e.options, II, "getLeftFlatHeaders")), e.getCenterFlatHeaders = PI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), FI(e.options, II, "getCenterFlatHeaders")), e.getRightFlatHeaders = PI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), FI(e.options, II, "getRightFlatHeaders")), e.getCenterLeafHeaders = PI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RI(e.options, zI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = LI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), FI(e.options, II, "getCenterLeafHeaders")), e.getLeftLeafHeaders = PI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RI(e.options, zI, "getLeftLeafHeaders")), e.getRightLeafHeaders = LI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), FI(e.options, II, "getLeftLeafHeaders")), e.getRightLeafHeaders = PI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), RI(e.options, zI, "getRightLeafHeaders")), e.getLeafHeaders = LI(() => [
+ }), FI(e.options, II, "getRightLeafHeaders")), e.getLeafHeaders = PI(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -44427,9 +43918,9 @@ var qge = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), RI(e.options, zI, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), FI(e.options, II, "getLeafHeaders"));
} };
-function VI(e, t, n, r) {
+function RI(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -44447,7 +43938,7 @@ function VI(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = BI(n, c, {
+ let i = LI(n, c, {
id: [
r,
t,
@@ -44464,7 +43955,7 @@ function VI(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => BI(n, e, {
+ s(t.map((e, t) => LI(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -44482,7 +43973,7 @@ function VI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var Jge = (e, t, n, r, i, a, o) => {
+var Pge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -44503,7 +43994,7 @@ var Jge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => Wge(s.subRows, (e) => e.subRows),
+ getLeafRows: () => Age(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -44514,95 +44005,95 @@ var Jge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: LI(() => [e.getAllLeafColumns()], (t) => t.map((t) => Gge(e, s, t, t.id)), RI(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: LI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), RI(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: PI(() => [e.getAllLeafColumns()], (t) => t.map((t) => jge(e, s, t, t.id)), FI(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: PI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), FI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, Yge = { createColumn: (e, t) => {
+}, Fge = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, HI = (e, t, n) => {
+} }, zI = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-HI.autoRemove = (e) => QI(e);
-var UI = (e, t, n) => {
+zI.autoRemove = (e) => YI(e);
+var BI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-UI.autoRemove = (e) => QI(e);
-var WI = (e, t, n) => {
+BI.autoRemove = (e) => YI(e);
+var VI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-WI.autoRemove = (e) => QI(e);
-var GI = (e, t, n) => e.getValue(t)?.includes(n);
-GI.autoRemove = (e) => QI(e);
-var KI = (e, t, n) => !n.some((n) => {
+VI.autoRemove = (e) => YI(e);
+var HI = (e, t, n) => e.getValue(t)?.includes(n);
+HI.autoRemove = (e) => YI(e);
+var UI = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-KI.autoRemove = (e) => QI(e) || !(e != null && e.length);
-var qI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-qI.autoRemove = (e) => QI(e) || !(e != null && e.length);
-var JI = (e, t, n) => e.getValue(t) === n;
-JI.autoRemove = (e) => QI(e);
-var YI = (e, t, n) => e.getValue(t) == n;
-YI.autoRemove = (e) => QI(e);
-var XI = (e, t, n) => {
+UI.autoRemove = (e) => YI(e) || !(e != null && e.length);
+var WI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+WI.autoRemove = (e) => YI(e) || !(e != null && e.length);
+var GI = (e, t, n) => e.getValue(t) === n;
+GI.autoRemove = (e) => YI(e);
+var KI = (e, t, n) => e.getValue(t) == n;
+KI.autoRemove = (e) => YI(e);
+var qI = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-XI.resolveFilterValue = (e) => {
+qI.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, XI.autoRemove = (e) => QI(e) || QI(e[0]) && QI(e[1]);
-var ZI = {
- includesString: HI,
- includesStringSensitive: UI,
- equalsString: WI,
- arrIncludes: GI,
- arrIncludesAll: KI,
- arrIncludesSome: qI,
- equals: JI,
- weakEquals: YI,
- inNumberRange: XI
+}, qI.autoRemove = (e) => YI(e) || YI(e[0]) && YI(e[1]);
+var JI = {
+ includesString: zI,
+ includesStringSensitive: BI,
+ equalsString: VI,
+ arrIncludes: HI,
+ arrIncludesAll: UI,
+ arrIncludesSome: WI,
+ equals: GI,
+ weakEquals: KI,
+ inNumberRange: qI
};
-function QI(e) {
+function YI(e) {
return e == null || e === "";
}
-var Xge = {
+var Ige = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: FI("columnFilters", e),
+ onColumnFiltersChange: MI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? ZI.includesString : typeof n == "number" ? ZI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? ZI.equals : Array.isArray(n) ? ZI.arrIncludes : ZI.weakEquals;
- }, e.getFilterFn = () => II(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? ZI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? JI.includesString : typeof n == "number" ? JI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? JI.equals : Array.isArray(n) ? JI.arrIncludes : JI.weakEquals;
+ }, e.getFilterFn = () => NI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? JI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = PI(n, i ? i.value : void 0);
- if ($I(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = jI(n, i ? i.value : void 0);
+ if (XI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -44617,19 +44108,19 @@ var Xge = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => PI(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => jI(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && $I(t.getFilterFn(), e.value, t));
+ return !(t && XI(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function $I(e, t, n) {
+function XI(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var eL = {
+var ZI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -44665,7 +44156,7 @@ var eL = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!Uge(n)) return;
+ if (!kge(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -44673,7 +44164,7 @@ var eL = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, Zge = {
+}, Lge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -44686,7 +44177,7 @@ var eL = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: FI("grouping", e),
+ onGroupingChange: MI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -44699,11 +44190,11 @@ var eL = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return eL.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return eL.extent;
+ if (typeof n == "number") return ZI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return ZI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return II(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? eL[e.columnDef.aggregationFn];
+ return NI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? ZI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -44725,27 +44216,27 @@ var eL = {
};
}
};
-function Qge(e, t, n) {
+function Rge(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var $ge = {
+var zge = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: FI("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: MI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = LI((e) => [oL(t, e)], (t) => t.findIndex((t) => t.id === e.id), RI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => oL(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = oL(t, n);
+ e.getIndex = PI((e) => [rL(t, e)], (t) => t.findIndex((t) => t.id === e.id), FI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => rL(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = rL(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = LI(() => [
+ }, e._getOrderColumnsFn = PI(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -44760,18 +44251,18 @@ var $ge = {
}
i = [...i, ...n];
}
- return Qge(i, t, n);
- }, RI(e.options, "debugTable", "_getOrderColumnsFn"));
+ return Rge(i, t, n);
+ }, FI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, tL = () => ({
+}, QI = () => ({
left: [],
right: []
-}), e_e = {
+}), Bge = {
getInitialState: (e) => ({
- columnPinning: tL(),
+ columnPinning: QI(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: FI("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: MI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -44795,75 +44286,75 @@ var $ge = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = LI(() => [
+ e.getCenterVisibleCells = PI(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, RI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = LI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, FI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = PI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), RI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = LI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), FI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = PI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), RI(t.options, "debugRows", "getRightVisibleCells"));
+ })), FI(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? tL() : e.initialState?.columnPinning ?? tL()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? QI() : e.initialState?.columnPinning ?? QI()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = LI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), RI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = LI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), RI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = LI(() => [
+ }, e.getLeftLeafColumns = PI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), FI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = PI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), FI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = PI(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, RI(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, FI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function t_e(e) {
+function Vge(e) {
return e || (typeof document < "u" ? document : null);
}
-var nL = {
+var $I = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, rL = () => ({
+}, eL = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), n_e = {
- getDefaultColumnDef: () => nL,
+}), Hge = {
+ getDefaultColumnDef: () => $I,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: rL(),
+ columnSizingInfo: eL(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: FI("columnSizing", e),
- onColumnSizingInfoChange: FI("columnSizingInfo", e)
+ onColumnSizingChange: MI("columnSizing", e),
+ onColumnSizingInfoChange: MI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? nL.minSize, n ?? e.columnDef.size ?? nL.size), e.columnDef.maxSize ?? nL.maxSize);
- }, e.getStart = LI((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? $I.minSize, n ?? e.columnDef.size ?? $I.size), e.columnDef.maxSize ?? $I.maxSize);
+ }, e.getStart = PI((e) => [
e,
- oL(t, e),
+ rL(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), RI(t.options, "debugColumns", "getStart")), e.getAfter = LI((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), FI(t.options, "debugColumns", "getStart")), e.getAfter = PI((e) => [
e,
- oL(t, e),
+ rL(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), RI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), FI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -44885,8 +44376,8 @@ var nL = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), aL(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = aL(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), nL(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = nL(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -44911,7 +44402,7 @@ var nL = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = t_e(n), m = {
+ }, p = Vge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -44921,8 +44412,8 @@ var nL = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = r_e() ? { passive: !1 } : !1;
- aL(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = Uge() ? { passive: !1 } : !1;
+ nL(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -44938,12 +44429,12 @@ var nL = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? rL() : e.initialState.columnSizingInfo ?? rL());
+ e.setColumnSizingInfo(t ? eL() : e.initialState.columnSizingInfo ?? eL());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, iL = null;
-function r_e() {
- if (typeof iL == "boolean") return iL;
+}, tL = null;
+function Uge() {
+ if (typeof tL == "boolean") return tL;
let e = !1;
try {
let t = { get passive() {
@@ -44953,17 +44444,17 @@ function r_e() {
} catch {
e = !1;
}
- return iL = e, iL;
+ return tL = e, tL;
}
-function aL(e) {
+function nL(e) {
return e.type === "touchstart";
}
-var i_e = {
+var Wge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: FI("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: MI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -44978,7 +44469,7 @@ var i_e = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = LI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), RI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = LI(() => [
+ e._getAllVisibleCells = PI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), FI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = PI(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -44986,10 +44477,10 @@ var i_e = {
...e,
...t,
...n
- ], RI(t.options, "debugRows", "getVisibleCells"));
+ ], FI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => LI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), RI(e.options, "debugColumns", t));
+ let t = (t, n) => PI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), FI(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -45002,20 +44493,20 @@ var i_e = {
};
}
};
-function oL(e, t) {
+function rL(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var a_e = { createTable: (e) => {
+var Gge = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, o_e = {
+} }, Kge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: FI("globalFilter", e),
+ onGlobalFilterChange: MI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -45027,22 +44518,22 @@ var a_e = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => ZI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => JI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return II(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? ZI[t];
+ return NI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? JI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, s_e = {
+}, qge = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: FI("expanded", e),
+ onExpandedChange: MI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -45113,18 +44604,18 @@ var a_e = { createTable: (e) => {
};
};
}
-}, sL = 0, cL = 10, lL = () => ({
- pageIndex: sL,
- pageSize: cL
-}), c_e = {
+}, iL = 0, aL = 10, oL = () => ({
+ pageIndex: iL,
+ pageSize: aL
+}), Jge = {
getInitialState: (e) => ({
...e,
pagination: {
- ...lL(),
+ ...oL(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: FI("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: MI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -45140,11 +44631,11 @@ var a_e = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => PI(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? lL() : e.initialState.pagination ?? lL());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => jI(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? oL() : e.initialState.pagination ?? oL());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = PI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = jI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -45152,13 +44643,13 @@ var a_e = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? sL : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? sL);
+ e.setPageIndex(t ? iL : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? iL);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? cL : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? cL);
+ e.setPageSize(t ? aL : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? aL);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, PI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, jI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -45166,28 +44657,28 @@ var a_e = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = PI(t, e.options.pageCount ?? -1);
+ let r = jI(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = LI(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = PI(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, RI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, FI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, uL = () => ({
+}, sL = () => ({
top: [],
bottom: []
-}), l_e = {
+}), Yge = {
getInitialState: (e) => ({
- rowPinning: uL(),
+ rowPinning: sL(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: FI("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: MI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -45226,7 +44717,7 @@ var a_e = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? uL() : e.initialState?.rowPinning ?? uL()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? sL() : e.initialState?.rowPinning ?? sL()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -45235,22 +44726,22 @@ var a_e = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = LI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), RI(e.options, "debugRows", "getTopRows")), e.getBottomRows = LI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), RI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = LI(() => [
+ })), e.getTopRows = PI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), FI(e.options, "debugRows", "getTopRows")), e.getBottomRows = PI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), FI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = PI(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, RI(e.options, "debugRows", "getCenterRows"));
+ }, FI(e.options, "debugRows", "getCenterRows"));
}
-}, u_e = {
+}, Xge = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: FI("rowSelection", e),
+ onRowSelectionChange: MI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -45269,21 +44760,21 @@ var a_e = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- dL(i, t.id, r, !0, e);
+ cL(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = LI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? fL(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = PI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? lL(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = LI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? fL(e, n) : {
+ }, FI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = PI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? lL(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = LI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? fL(e, n) : {
+ }, FI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = PI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? lL(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, RI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, FI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -45307,17 +44798,17 @@ var a_e = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return dL(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return cL(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return pL(e, n);
+ return uL(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return mL(e, n) === "some";
+ return dL(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return mL(e, n) === "all";
+ return dL(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -45325,16 +44816,16 @@ var a_e = { createTable: (e) => {
};
};
}
-}, dL = (e, t, n, r, i) => {
+}, cL = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => dL(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => cL(e, t.id, n, r, i));
};
-function fL(e, t) {
+function lL(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = pL(e, n);
+ let o = uL(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -45347,32 +44838,32 @@ function fL(e, t) {
rowsById: i
};
}
-function pL(e, t) {
+function uL(e, t) {
return t[e.id] ?? !1;
}
-function mL(e, t, n) {
+function dL(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (pL(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = mL(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (uL(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = dL(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var hL = /([0-9]+)/gm, d_e = (e, t, n) => vL(_L(e.getValue(n)).toLowerCase(), _L(t.getValue(n)).toLowerCase()), f_e = (e, t, n) => vL(_L(e.getValue(n)), _L(t.getValue(n))), p_e = (e, t, n) => gL(_L(e.getValue(n)).toLowerCase(), _L(t.getValue(n)).toLowerCase()), m_e = (e, t, n) => gL(_L(e.getValue(n)), _L(t.getValue(n))), h_e = (e, t, n) => {
+var fL = /([0-9]+)/gm, Zge = (e, t, n) => hL(mL(e.getValue(n)).toLowerCase(), mL(t.getValue(n)).toLowerCase()), Qge = (e, t, n) => hL(mL(e.getValue(n)), mL(t.getValue(n))), $ge = (e, t, n) => pL(mL(e.getValue(n)).toLowerCase(), mL(t.getValue(n)).toLowerCase()), e_e = (e, t, n) => pL(mL(e.getValue(n)), mL(t.getValue(n))), t_e = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, g_e = (e, t, n) => gL(e.getValue(n), t.getValue(n));
-function gL(e, t) {
+}, n_e = (e, t, n) => pL(e.getValue(n), t.getValue(n));
+function pL(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function _L(e) {
+function mL(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function vL(e, t) {
- let n = e.split(hL).filter(Boolean), r = t.split(hL).filter(Boolean);
+function hL(e, t) {
+ let n = e.split(fL).filter(Boolean), r = t.split(fL).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -45386,22 +44877,22 @@ function vL(e, t) {
}
return n.length - r.length;
}
-var yL = {
- alphanumeric: d_e,
- alphanumericCaseSensitive: f_e,
- text: p_e,
- textCaseSensitive: m_e,
- datetime: h_e,
- basic: g_e
-}, __e = [
- qge,
- i_e,
- $ge,
- e_e,
- Yge,
- Xge,
- a_e,
- o_e,
+var gL = {
+ alphanumeric: Zge,
+ alphanumericCaseSensitive: Qge,
+ text: $ge,
+ textCaseSensitive: e_e,
+ datetime: t_e,
+ basic: n_e
+}, r_e = [
+ Nge,
+ Wge,
+ zge,
+ Bge,
+ Fge,
+ Ige,
+ Gge,
+ Kge,
{
getInitialState: (e) => ({
sorting: [],
@@ -45412,7 +44903,7 @@ var yL = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: FI("sorting", e),
+ onSortingChange: MI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -45420,13 +44911,13 @@ var yL = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return yL.datetime;
- if (typeof n == "string" && (r = !0, n.split(hL).length > 1)) return yL.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return gL.datetime;
+ if (typeof n == "string" && (r = !0, n.split(fL).length > 1)) return gL.alphanumeric;
}
- return r ? yL.text : yL.basic;
+ return r ? gL.text : gL.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return II(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? yL[e.columnDef.sortingFn];
+ return NI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? gL[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -45463,15 +44954,15 @@ var yL = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- Zge,
- s_e,
- c_e,
- l_e,
- u_e,
- n_e
+ Lge,
+ qge,
+ Jge,
+ Yge,
+ Xge,
+ Hge
];
-function v_e(e) {
- let t = [...__e, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function i_e(e) {
+ let t = [...r_e, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -45497,7 +44988,7 @@ function v_e(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = PI(e, n.options);
+ let t = jI(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -45512,7 +45003,7 @@ function v_e(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: LI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: PI(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -45523,20 +45014,20 @@ function v_e(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), RI(e, "debugColumns", "_getDefaultColumnDef")),
+ }), FI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: LI(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: PI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = Kge(n, e, i, r), o = e;
+ let a = Mge(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, RI(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: LI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), RI(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: LI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), RI(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: LI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), RI(e, "debugColumns", "getAllLeafColumns")),
+ }, FI(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: PI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), FI(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: PI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), FI(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: PI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), FI(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -45546,8 +45037,8 @@ function v_e(e) {
}
return n;
}
-function bL() {
- return (e) => LI(() => [e.options.data], (t) => {
+function _L() {
+ return (e) => PI(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -45556,7 +45047,7 @@ function bL() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = Jge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = Pge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -45565,9 +45056,9 @@ function bL() {
return o;
};
return n.rows = r(t), n;
- }, RI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, FI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function y_e(e) {
+function a_e(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -45578,8 +45069,8 @@ function y_e(e) {
rowsById: e.rowsById
};
}
-function xL(e) {
- return (e) => LI(() => [
+function vL(e) {
+ return (e) => PI(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -45592,7 +45083,7 @@ function xL(e) {
rows: a,
flatRows: o,
rowsById: s
- } : y_e({
+ } : a_e({
rows: a,
flatRows: o,
rowsById: s
@@ -45601,32 +45092,32 @@ function xL(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, RI(e.options, "debugTable", "getPaginationRowModel"));
+ }, FI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function SL(e, t) {
- return e ? b_e(e) ? /*#__PURE__*/ V.createElement(e, t) : e : null;
+function yL(e, t) {
+ return e ? o_e(e) ? /*#__PURE__*/ V.createElement(e, t) : e : null;
}
-function b_e(e) {
- return x_e(e) || typeof e == "function" || S_e(e);
+function o_e(e) {
+ return s_e(e) || typeof e == "function" || c_e(e);
}
-function x_e(e) {
+function s_e(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function S_e(e) {
+function c_e(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function CL(e) {
+function bL(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = V.useState(() => ({ current: v_e(t) })), [r, i] = V.useState(() => n.current.initialState);
+ }, [n] = V.useState(() => ({ current: i_e(t) })), [r, i] = V.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -45641,7 +45132,7 @@ function CL(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var C_e = ia({
+var l_e = ia({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -45703,8 +45194,8 @@ var C_e = ia({
}
}
});
-function w_e({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = C_e[t];
+function u_e({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = l_e[t];
return /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
className: ra("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? ra("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -45714,12 +45205,12 @@ function w_e({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function wL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, H.jsx)(Kee, {
+function xL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, H.jsx)(Jee, {
ref: i,
...a,
className: (t) => ra("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(w_e, {
+ children: (e) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(u_e, {
state: e,
size: n,
shape: r
@@ -45731,8 +45222,8 @@ function wL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var TL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", T_e = "输入女优名,到 JavDB 找她的演员页";
-function E_e(e, t) {
+var SL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", d_e = "输入女优名,到 JavDB 找她的演员页";
+function f_e(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -45751,10 +45242,10 @@ function E_e(e, t) {
blocked: !1
};
}
-function D_e({ card: e, picked: t, onPick: n }) {
+function p_e({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, H.jsxs)("span", {
@@ -45764,7 +45255,7 @@ function D_e({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, H.jsx)(SE, {
+ e.record ? /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -45775,16 +45266,16 @@ function D_e({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, H.jsx)(uj, {
+ }), /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.url,
children: e.id
})]
});
}
-function O_e({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, V.useState)(""), [a, o] = (0, V.useState)(null), [s, c] = (0, V.useState)(/* @__PURE__ */ new Set()), l = GE(), u = () => {
+function m_e({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, V.useState)(""), [a, o] = (0, V.useState)(null), [s, c] = (0, V.useState)(/* @__PURE__ */ new Set()), l = YE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => Ace(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => Ece(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -45792,12 +45283,12 @@ function O_e({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => jce(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => Dce(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? E_e(a, s) : null;
+ }, m = a ? f_e(a, s) : null;
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45810,11 +45301,11 @@ function O_e({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "女优名",
- placeholder: T_e,
+ placeholder: d_e,
value: r,
- leadingIcon: vE,
+ leadingIcon: SE,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -45835,16 +45326,16 @@ function O_e({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, H.jsx)(D_e, {
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, H.jsx)(p_e, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, H.jsx)(sj, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, H.jsx)(sj, {
+ }, e.id)) : /* @__PURE__ */ (0, H.jsx)(jk, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, H.jsx)(jk, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -45871,19 +45362,19 @@ function O_e({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var k_e = Object.fromEntries(Object.entries(PD).map(([e, t]) => [t, e])), EL = 740;
-function A_e() {
+var h_e = Object.fromEntries(Object.entries(RD).map(([e, t]) => [t, e])), CL = 740;
+function g_e() {
let [e, t] = (0, V.useState)(!1), n = (0, V.useRef)(null), r = (0, V.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < EL));
- r.observe(e), n.current = r, t(e.clientWidth < EL);
+ let r = new ResizeObserver(() => t(e.clientWidth < CL));
+ r.observe(e), n.current = r, t(e.clientWidth < CL);
}, []);
return (0, V.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var j_e = {
+var __e = {
select: "选择",
author: "创作者",
source: "来源",
@@ -45892,7 +45383,7 @@ var j_e = {
checked: "上次检查",
actions: "操作"
};
-function DL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function wL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, H.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@ -45906,7 +45397,7 @@ function DL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, H.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: _D(e, t).map((t, r) => /* @__PURE__ */ (0, H.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, H.jsx)("span", {
+ children: xD(e, t).map((t, r) => /* @__PURE__ */ (0, H.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -45929,22 +45420,22 @@ function DL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function M_e({ source: e, selected: t, onToggle: n, handlers: r }) {
+function v_e({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- oI(e, e.currentTarget) && n(!t);
+ rI(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, H.jsx)(qO, {
+ /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, H.jsx)(OI, { source: e }), e.last_error ? /* @__PURE__ */ (0, H.jsx)("small", {
+ children: [/* @__PURE__ */ (0, H.jsx)(TI, { source: e }), e.last_error ? /* @__PURE__ */ (0, H.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -45952,17 +45443,17 @@ function M_e({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, H.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, H.jsx)(TI, {
+ children: /* @__PURE__ */ (0, H.jsx)(SI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, H.jsx)(DI, { source: e }),
+ /* @__PURE__ */ (0, H.jsx)(wI, { source: e }),
/* @__PURE__ */ (0, H.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: sO(e)
+ children: dO(e)
}),
- /* @__PURE__ */ (0, H.jsx)(wL, {
+ /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -45974,7 +45465,7 @@ function M_e({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: gE,
+ leadingIcon: bE,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -45983,7 +45474,7 @@ function M_e({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: uE,
+ leadingIcon: mE,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -45992,11 +45483,11 @@ function M_e({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function N_e({ 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(ID).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = KD(r, c);
+function y_e({ 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(BD).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = XD(r, c);
return /* @__PURE__ */ (0, H.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: kT({
+ className: NT({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -46006,7 +45497,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, H.jsx)(EI, {
+ /* @__PURE__ */ (0, H.jsx)(CI, {
group: e,
name: t
}),
@@ -46018,7 +45509,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: gE,
+ leadingIcon: bE,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -46027,7 +45518,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, H.jsx)(TI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, H.jsx)(zu, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, H.jsx)(SI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, H.jsx)(zu, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -46036,7 +45527,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: oE,
+ leadingIcon: uE,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -46047,7 +45538,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? aE : nE,
+ leadingIcon: n ? lE : oE,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -46057,7 +45548,7 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(M_e, {
+ children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(v_e, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -46066,37 +45557,37 @@ function N_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function P_e(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, V.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [b, x] = (0, V.useState)(/* @__PURE__ */ new Set()), [S, C] = A_e(), [w, T] = (0, V.useState)(""), E = (0, V.useMemo)(() => vce(_, n, r, v), [
+function b_e(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: f, onPageSize: p, onSelected: m, toast: h, openFollow: g } = e, _ = t.sources, v = (0, V.useMemo)(() => t.author_aliases || [], [t.author_aliases]), y = t.counts || {}, [b, x] = (0, V.useState)(/* @__PURE__ */ new Set()), [S, C] = g_e(), [w, T] = (0, V.useState)(""), E = (0, V.useMemo)(() => mce(_, n, r, v), [
_,
n,
r,
v
- ]), D = (0, V.useMemo)(() => yce(E, n, r, v), [
+ ]), D = (0, V.useMemo)(() => hce(E, n, r, v), [
E,
n,
r,
v
- ]), { job: O, running: k, outcome: A, start: j } = rI({
- queryKey: lce,
- queryFn: ({ signal: e }) => xce(e),
- start: (e) => XD(e),
+ ]), { job: O, running: k, outcome: A, start: j } = ZF({
+ queryKey: ace,
+ queryFn: ({ signal: e }) => _ce(e),
+ start: (e) => eO(e),
onError: (e) => T(R(e)),
onFinish: (e) => {
- oO(), h(e.status === "failed" ? e.error || "检查失败" : Nce(e));
+ uO(), h(e.status === "failed" ? e.error || "检查失败" : kce(e));
}
}), M = (e) => {
k || j.isPending || (T(""), j.mutate(e));
- }, N = (e, t) => m(qD(s, [e], t)), P = (e, t) => m(qD(s, e, t)), ee = Fn({
- mutationFn: (e) => QD(e),
+ }, N = (e, t) => m(ZD(s, [e], t)), P = (e, t) => m(ZD(s, e, t)), ee = Fn({
+ mutationFn: (e) => nO(e),
onSuccess: (e, t) => {
- aO([t]), m(qD(s, [t], !1)), h("已取消关注来源");
+ lO([t]), m(ZD(s, [t], !1)), h("已取消关注来源");
},
onError: (e) => T(R(e))
}), F = Fn({
- mutationFn: (e) => ZD(e.id, e.enabled),
+ mutationFn: (e) => tO(e.id, e.enabled),
onSuccess: (e, t) => {
- iO(t.id, { enabled: t.enabled }), T("");
+ cO(t.id, { enabled: t.enabled }), T("");
},
onError: (e) => T(R(e))
}), I = (e) => void fe({
@@ -46108,7 +45599,7 @@ function P_e(e) {
}), te = Fn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await QD(t) : await ZD(t, e.action === "enabled");
+ e.action === "remove" ? await nO(t) : await tO(t, e.action === "enabled");
});
return {
...e,
@@ -46117,9 +45608,9 @@ function P_e(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") aO(e.done);
- else for (let t of e.done) iO(t, { enabled: e.action === "enabled" });
- m(qD(s, e.done, !1));
+ if (e.action === "remove") lO(e.done);
+ else for (let t of e.done) cO(t, { enabled: e.action === "enabled" });
+ m(ZD(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
T(`${t.length}/${e.ids.length} 个来源未更新:${R(t[0]?.error)}`);
@@ -46132,18 +45623,18 @@ function P_e(e) {
onError: (e) => T(R(e))
}), ne = Fn({
mutationFn: async (e) => {
- let t = ((await kce()).groups || []).flatMap((e) => [
+ let t = ((await Tce()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await d(t, 6, (t) => Oce(t, e))).filter((e) => !e.ok)
+ failed: (await d(t, 6, (t) => wce(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (oO(), e.failed.length) {
+ if (uO(), e.failed.length) {
T(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -46168,12 +45659,12 @@ function P_e(e) {
readOnly: c
};
let ae = ie.current, oe = (0, V.useMemo)(() => {
- let e = NI(), t = (e) => () => j_e[e] || e;
+ let e = AI(), t = (e) => () => __e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, H.jsx)(qO, {
+ cell: (e) => /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -46185,7 +45676,7 @@ function P_e(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(EI, {
+ children: [/* @__PURE__ */ (0, H.jsx)(CI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, H.jsx)("span", {
@@ -46199,7 +45690,7 @@ function P_e(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, H.jsx)(OI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, H.jsx)("small", {
+ children: [/* @__PURE__ */ (0, H.jsx)(TI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, H.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -46210,18 +45701,18 @@ function P_e(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, H.jsx)(TI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, H.jsx)(SI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, H.jsx)(DI, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, H.jsx)(wI, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => sO(e.row.original.source)
+ cell: (e) => dO(e.row.original.source)
}),
e.display({
id: "actions",
@@ -46229,7 +45720,7 @@ function P_e(e) {
cell: (e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, H.jsx)(wL, {
+ /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ae.readOnly,
@@ -46239,7 +45730,7 @@ function P_e(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: gE,
+ leadingIcon: bE,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ae.readOnly,
...X(ae.busy),
@@ -46249,7 +45740,7 @@ function P_e(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: uE,
+ leadingIcon: mE,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ae.readOnly,
onClick: () => ie.current.remove(e.row.original.source)
@@ -46259,12 +45750,12 @@ function P_e(e) {
})
];
}, [ae]), se = (0, V.useMemo)(() => {
- let e = k_e[n];
+ let e = h_e[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ce = (0, V.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = GD(le ? D.length : E.length, o, i), L = CL({
+ }, [n, r]), ce = (0, V.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = YD(le ? D.length : E.length, o, i), L = bL({
data: D,
columns: oe,
getRowId: (e) => String(e.source.id),
@@ -46281,7 +45772,7 @@ function P_e(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(se) : e)[0];
if (!t) return;
- let n = PD[t.id];
+ let n = RD[t.id];
n && l(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -46295,11 +45786,11 @@ function P_e(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: bL(),
- getPaginationRowModel: xL()
- }), de = L.getRowModel().rows, pe = le ? de.map((e) => e.original.source.id) : E.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), me = KD(s, pe), he = [...s], ge = Pce(A), _e = Fce(A), ve = E.length > 0 && b.size >= E.length;
+ getCoreRowModel: _L(),
+ getPaginationRowModel: vL()
+ }), de = L.getRowModel().rows, pe = le ? de.map((e) => e.original.source.id) : E.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), me = XD(s, pe), he = [...s], ge = Ace(A), _e = jce(A), ve = E.length > 0 && b.size >= E.length;
return _.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46318,7 +45809,7 @@ function P_e(e) {
}),
/* @__PURE__ */ (0, H.jsx)(J, {
variant: "primary",
- leadingIcon: gE,
+ leadingIcon: bE,
disabled: c,
"aria-label": "检查全部",
iconOnly: C,
@@ -46333,28 +45824,28 @@ function P_e(e) {
children: [/* @__PURE__ */ (0, H.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Goe,
- "aria-label": MD[0][1],
+ leadingIcon: Voe,
+ "aria-label": ID[0][1],
"aria-pressed": !le,
onClick: () => f("default")
}), /* @__PURE__ */ (0, H.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Joe,
- "aria-label": MD[1][1],
+ leadingIcon: Woe,
+ "aria-label": ID[1][1],
"aria-pressed": le,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- l(t, hD[t]);
+ l(t, yD[t]);
},
- children: mD.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: vD.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
@@ -46362,14 +45853,14 @@ function P_e(e) {
/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Ioe : Foe,
- "aria-label": gce(n, r),
+ leadingIcon: r === "asc" ? Moe : joe,
+ "aria-label": fce(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
iconOnly: C,
- leadingIcon: ve ? nE : aE,
+ leadingIcon: ve ? oE : lE,
"aria-label": ve ? "全部展开" : "全部收起",
onClick: () => x(ve ? /* @__PURE__ */ new Set() : new Set(E.map((e) => String(e[0].author_key || e[0].id)))),
children: ve ? "全部展开" : "全部收起"
@@ -46380,7 +45871,7 @@ function P_e(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- k ? /* @__PURE__ */ (0, H.jsx)($A, {
+ k ? /* @__PURE__ */ (0, H.jsx)(Ck, {
embedded: !0,
label: O?.message || (O?.total ? `${O.older ? "抓取历史" : "检查更新"}:已完成 ${O.checked || 0}/${O.total} 个来源` : "正在准备检查任务"),
value: O?.checked,
@@ -46406,7 +45897,7 @@ function P_e(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsxs)(iA, {
+ /* @__PURE__ */ (0, H.jsxs)(jj, {
label: "关注来源批量操作",
visible: he.length > 0,
count: `已选 ${he.length} 个来源`,
@@ -46466,10 +45957,10 @@ function P_e(e) {
})
]
}),
- le ? /* @__PURE__ */ (0, H.jsx)(sI, {
+ le ? /* @__PURE__ */ (0, H.jsx)(iI, {
follow: !0,
onRowClick: (e) => N(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@ -46480,9 +45971,9 @@ function P_e(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, H.jsx)(Xv, { children: L.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in PD, n = SL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Jv, { children: L.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in RD, n = yL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, H.jsx)(Yv, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -46491,20 +45982,20 @@ function P_e(e) {
children: [n, /* @__PURE__ */ (0, H.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, H.jsx)(kpe, {})
+ children: /* @__PURE__ */ (0, H.jsx)(hpe, {})
})]
}) : /* @__PURE__ */ (0, H.jsx)(zu, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, H.jsx)($v, {
+ }) }), /* @__PURE__ */ (0, H.jsx)(Zv, {
renderEmptyState: () => "这一页没有来源",
- children: de.map((e) => /* @__PURE__ */ (0, H.jsx)(ny, {
+ children: de.map((e) => /* @__PURE__ */ (0, H.jsx)(ey, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, H.jsx)(iy, { children: SL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, H.jsx)(ny, { children: yL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(qO, {
+ }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => P(pe, e),
@@ -46514,9 +46005,9 @@ function P_e(e) {
className: "flex flex-col gap-3",
children: E.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, H.jsx)(N_e, {
+ return /* @__PURE__ */ (0, H.jsx)(y_e, {
group: e,
- name: VD(e, v),
+ name: GD(e, v),
handlers: ae,
selected: s,
open: !b.has(t),
@@ -46536,19 +46027,19 @@ function P_e(e) {
className: "text-body-2-regular text-text-secondary",
children: `${ue.start + 1}–${ue.end} / ${ue.total} ${le ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && L.setPageSize(Number(e));
},
- children: ND.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: LD.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: String(e),
children: `每页 ${e} ${le ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, H.jsx)(DL, {
+ /* @__PURE__ */ (0, H.jsx)(wL, {
page: ue.page,
pages: ue.pages,
onPage: (e) => L.setPageIndex(e - 1)
@@ -46597,11 +46088,11 @@ function P_e(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: _E,
+ icon: xE,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, H.jsx)(wE, {
+ actions: /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -46612,7 +46103,7 @@ function P_e(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var F_e = {
+var x_e = {
select: "选择",
name: "名称",
kind: "类型",
@@ -46622,33 +46113,33 @@ var F_e = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, I_e = /* @__PURE__ */ new Set(["select", "actions"]), OL = () => _.invalidateQueries({
- queryKey: jD,
+}, S_e = /* @__PURE__ */ new Set(["select", "actions"]), TL = () => _.invalidateQueries({
+ queryKey: FD,
exact: !0
-}), kL = (e) => e.name || e.url, L_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function R_e(e) {
+}), EL = (e) => e.name || e.url, C_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function w_e(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function z_e({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, H.jsx)(SE, {
+function T_e({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, H.jsx)(SE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, H.jsx)(SE, {
+ }) : /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function B_e({ source: e }) {
+function E_e({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -46657,31 +46148,31 @@ function B_e({ source: e }) {
} : null;
return /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${TL}`,
- dangerouslySetInnerHTML: { __html: D(kL(e), t, null, "performer") }
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${SL}`,
+ dangerouslySetInnerHTML: { __html: D(EL(e), t, null, "performer") }
});
}
-var V_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function H_e(e) {
+var D_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function O_e(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 AL(e, t) {
+function DL(e, t) {
let n = e.length === 1 ? e[0] : null;
return fe({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${kL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${EL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function U_e({ readOnly: e, toast: t }) {
+function k_e({ readOnly: e, toast: t }) {
let n = Cn({
- queryKey: jD,
- queryFn: ({ signal: e }) => eO(e)
- }), r = GE(), i = n.data, a = (0, V.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, V.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, V.useState)(1), [u, f] = (0, V.useState)(20), p = GD(a.length, u, c);
+ queryKey: FD,
+ queryFn: ({ signal: e }) => iO(e)
+ }), r = YE(), i = n.data, a = (0, V.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, V.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, V.useState)(1), [u, f] = (0, V.useState)(20), p = YD(a.length, u, c);
(0, V.useEffect)(() => {
l((e) => Math.min(e, p.pages));
}, [p.pages]), (0, V.useEffect)(() => {
@@ -46693,7 +46184,7 @@ function U_e({ readOnly: e, toast: t }) {
let m = Fn({
mutationFn: async (e) => {
let t = await d(e.ids, 4, async (t) => {
- e.action === "remove" ? await nO(t) : await tO(t, e.action === "enabled");
+ e.action === "remove" ? await oO(t) : await aO(t, e.action === "enabled");
});
return {
...e,
@@ -46702,13 +46193,13 @@ function U_e({ readOnly: e, toast: t }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), OL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
+ if (s(/* @__PURE__ */ new Set()), TL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : R(e.error)}`);
}
},
onError: (e) => r.setError(R(e))
- }), h = (0, V.useMemo)(() => H_e(a), [a]), g = (0, V.useRef)({
+ }), h = (0, V.useMemo)(() => O_e(a), [a]), g = (0, V.useRef)({
readOnly: e,
shared: h,
busy: null,
@@ -46720,34 +46211,34 @@ function U_e({ readOnly: e, toast: t }) {
readOnly: e,
shared: h,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => tO(e.id, t, n), () => void OL()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => rO(t, [e.id]), () => void OL()),
- remove: (e) => void AL([e], async () => {
- await nO(e.id), t(`已移除订阅源「${kL(e)}」`), OL();
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => aO(e.id, t, n), () => void TL()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => sO(t, [e.id]), () => void TL()),
+ remove: (e) => void DL([e], async () => {
+ await oO(e.id), t(`已移除订阅源「${EL(e)}」`), TL();
})
};
let _ = (0, V.useMemo)(() => {
- let e = NI(), t = (e) => () => F_e[e] || e;
+ let e = AI(), t = (e) => () => x_e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, H.jsx)(qO, {
+ cell: (e) => /* @__PURE__ */ (0, H.jsx)(tI, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${kL(e.row.original)}`
+ "aria-label": `选择 ${EL(e.row.original)}`
})
}),
- e.accessor(kL, {
+ e.accessor(EL, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = V_e(e.row.original, g.current.shared);
+ let t = D_e(e.row.original, g.current.shared);
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, H.jsx)(B_e, { source: e.row.original }),
+ /* @__PURE__ */ (0, H.jsx)(E_e, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -46775,15 +46266,15 @@ function U_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: R_e(e.getValue())
+ children: w_e(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, H.jsx)(z_e, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, H.jsx)(T_e, { source: e.row.original })
}),
- e.accessor((e) => L_e(e.interval_minutes), {
+ e.accessor((e) => C_e(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, H.jsx)("span", {
@@ -46791,7 +46282,7 @@ function U_e({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? bD(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? wD(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, H.jsx)("span", {
@@ -46813,8 +46304,8 @@ function U_e({ readOnly: e, toast: t }) {
cell: (e) => /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, H.jsx)(wL, {
- "aria-label": `启用 ${kL(e.row.original)}`,
+ /* @__PURE__ */ (0, H.jsx)(xL, {
+ "aria-label": `启用 ${EL(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: g.current.readOnly,
onChange: (t) => g.current.toggle(e.row.original, t)
@@ -46823,8 +46314,8 @@ function U_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: gE,
- "aria-label": `拉取 ${kL(e.row.original)}`,
+ leadingIcon: bE,
+ "aria-label": `拉取 ${EL(e.row.original)}`,
disabled: g.current.readOnly,
...X(g.current.busy === `check-${e.row.original.id}`),
onClick: () => g.current.fetch(e.row.original)
@@ -46833,8 +46324,8 @@ function U_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: uE,
- "aria-label": `移除 ${kL(e.row.original)}`,
+ leadingIcon: mE,
+ "aria-label": `移除 ${EL(e.row.original)}`,
disabled: g.current.readOnly,
onClick: () => g.current.remove(e.row.original)
})
@@ -46842,7 +46333,7 @@ function U_e({ readOnly: e, toast: t }) {
})
})
];
- }, []), v = (0, V.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), y = CL({
+ }, []), v = (0, V.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), y = bL({
data: a,
columns: _,
getRowId: (e) => String(e.id),
@@ -46858,27 +46349,27 @@ function U_e({ readOnly: e, toast: t }) {
let t = typeof e == "function" ? e(v) : e;
s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: bL(),
- getPaginationRowModel: xL()
+ getCoreRowModel: _L(),
+ getPaginationRowModel: vL()
});
if (!i) return n.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "打不开订阅源",
children: R(n.error)
- }) : /* @__PURE__ */ (0, H.jsx)(sj, { children: "正在读订阅源。" });
- let b = () => void r.run("check", (e) => rO(e), () => void OL()), x = (e) => s((t) => {
+ }) : /* @__PURE__ */ (0, H.jsx)(jk, { children: "正在读订阅源。" });
+ let b = () => void r.run("check", (e) => sO(e), () => void TL()), x = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), S = a.filter((e) => o.has(e.id)), C = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, H.jsx)(O_e, {
+ children: [/* @__PURE__ */ (0, H.jsx)(m_e, {
readOnly: e,
toast: t,
- onAdded: () => void OL()
+ onAdded: () => void TL()
}), /* @__PURE__ */ (0, H.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: kT({
+ className: NT({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46906,11 +46397,11 @@ function U_e({ readOnly: e, toast: t }) {
className: "flex flex-col gap-3",
children: [C.map((e) => /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
- title: `${kL(e)} 拉取失败`,
+ title: `${EL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, H.jsxs)(iA, {
+ /* @__PURE__ */ (0, H.jsxs)(jj, {
visible: S.length > 0,
label: "订阅源批量操作",
count: `已选 ${S.length} 条订阅源`,
@@ -46942,7 +46433,7 @@ function U_e({ readOnly: e, toast: t }) {
size: "small",
disabled: e,
...X(m.isPending),
- onClick: () => void AL(S, () => m.mutateAsync({
+ onClick: () => void DL(S, () => m.mutateAsync({
ids: S.map((e) => e.id),
action: "remove"
})),
@@ -46956,26 +46447,26 @@ function U_e({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, H.jsx)(sI, {
+ a.length ? /* @__PURE__ */ (0, H.jsx)(iI, {
onRowClick: (e) => x(Number(e)),
- children: /* @__PURE__ */ (0, H.jsxs)(aI, {
+ children: /* @__PURE__ */ (0, H.jsxs)(nI, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, H.jsx)(Xv, { children: y.getHeaderGroups()[0].headers.map((e) => {
- let t = SL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, H.jsx)(Zv, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Jv, { children: y.getHeaderGroups()[0].headers.map((e) => {
+ let t = yL(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, H.jsx)(Yv, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: I_e.has(e.column.id) ? /* @__PURE__ */ (0, H.jsx)(zu, { children: t }) : t
+ children: S_e.has(e.column.id) ? /* @__PURE__ */ (0, H.jsx)(zu, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, H.jsx)($v, { children: y.getRowModel().rows.map((e) => /* @__PURE__ */ (0, H.jsx)(ny, {
+ }) }), /* @__PURE__ */ (0, H.jsx)(Zv, { children: y.getRowModel().rows.map((e) => /* @__PURE__ */ (0, H.jsx)(ey, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, H.jsx)(iy, { children: SL(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, H.jsx)(ny, { children: yL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: _E,
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: xE,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -46987,19 +46478,19 @@ function U_e({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${p.start + 1}–${p.end} / ${p.total} 个订阅源`
}),
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (f(Number(e)), l(1));
},
- children: ND.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: LD.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: String(e),
children: `每页 ${e} 条`
}, e))
}),
- /* @__PURE__ */ (0, H.jsx)(DL, {
+ /* @__PURE__ */ (0, H.jsx)(wL, {
label: "JAV 订阅分页",
page: p.page,
pages: p.pages,
@@ -47021,41 +46512,41 @@ function U_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/wants/wants.ts
-var jL = "/api/wants", ML = ["wants"], W_e = (e) => [
+var OL = "/api/wants", kL = ["wants"], A_e = (e) => [
"wants",
"follow",
e
-], G_e = [
+], j_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], K_e = (e) => z(jL, e), q_e = (e, t) => z(`${jL}?follow=${encodeURIComponent(e)}`, t), NL = (e, t) => B(jL, {
+], M_e = (e) => z(OL, e), N_e = (e, t) => z(`${OL}?follow=${encodeURIComponent(e)}`, t), AL = (e, t) => B(OL, {
action: "add",
...e
-}, "POST", t), PL = (e, t) => B(jL, {
+}, "POST", t), jL = (e, t) => B(OL, {
action: "remove",
ids: e
-}, "POST", t), J_e = (e, t) => B(jL, {
+}, "POST", t), P_e = (e, t) => B(OL, {
action: "reset",
ids: e
-}, "POST", t), FL = () => _.invalidateQueries({ queryKey: ML }), IL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Y_e(e) {
+}, "POST", t), ML = () => _.invalidateQueries({ queryKey: kL }), NL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function F_e(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/wants/want-list.tsx
-var X_e = {
+var I_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
-}, LL = (e) => [
+}, PL = (e) => [
e.release_date,
e.studio,
e.performers,
- X_e[e.origin]
+ I_e[e.origin]
].filter(Boolean).join(" · ");
-function Z_e({ want: e }) {
+function L_e({ want: e }) {
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, H.jsx)("span", {
@@ -47071,36 +46562,36 @@ function Z_e({ want: e }) {
}) : null]
});
}
-function Q_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
+function R_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
return /* @__PURE__ */ (0, H.jsxs)("li", {
"data-want-id": e.id,
className: `flex min-w-0 items-start gap-4 py-4 max-sm:gap-3 ${t ? "" : "border-t border-separator-border"}`,
- children: [/* @__PURE__ */ (0, H.jsx)(Z_e, { want: e }), /* @__PURE__ */ (0, H.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, H.jsx)(L_e, { want: e }), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, H.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, H.jsx)("b", {
className: "text-headline-medium text-text-primary",
- children: IL(e)
+ children: NL(e)
}), e.code && e.title ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- LL(e) ? /* @__PURE__ */ (0, H.jsx)("p", {
+ PL(e) ? /* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: LL(e)
+ children: PL(e)
}) : null,
/* @__PURE__ */ (0, H.jsxs)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: [Y_e(e), e.scrape_error ? `;资料没取到:${e.scrape_error}` : ""]
+ children: [F_e(e), e.scrape_error ? `;资料没取到:${e.scrape_error}` : ""]
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- e.link ? /* @__PURE__ */ (0, H.jsx)(uj, {
+ e.link ? /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.link,
children: "来源页"
}) : null,
@@ -47133,330 +46624,839 @@ function Q_e({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a,
})]
});
}
-function $_e({ readOnly: e, toast: t, cloudDownload: n }) {
- let [r, i] = (0, V.useState)(""), a = GE(), o = Cn({
- queryKey: ML,
- queryFn: ({ signal: e }) => K_e(e),
+function z_e({ readOnly: e, toast: t, cloudDownload: n }) {
+ let [r, i] = (0, V.useState)(""), a = YE(), o = Cn({
+ queryKey: kL,
+ queryFn: ({ signal: e }) => M_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), s = () => {
let n = r.trim();
- !n || e || a.run("add", (e) => NL({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${IL(e.want)}` : `${IL(e.want)} 已经在想要里`), i(""), FL();
+ !n || e || a.run("add", (e) => AL({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${NL(e.want)}` : `${NL(e.want)} 已经在想要里`), i(""), ML();
});
}, c = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), s());
}, l = (e) => {
- a.run(`remove:${e.id}`, (t) => PL([e.id], t), () => {
- t(`已移除:${IL(e)}`), FL();
+ a.run(`remove:${e.id}`, (t) => jL([e.id], t), () => {
+ t(`已移除:${NL(e)}`), ML();
});
}, u = (e) => {
- a.run(`reset:${e.id}`, (t) => J_e([e.id], t), () => {
- t(`${IL(e)} 回到待找`), FL();
+ a.run(`reset:${e.id}`, (t) => P_e([e.id], t), () => {
+ t(`${NL(e)} 回到待找`), ML();
+ });
+ }, d = o.data, f = d?.items || [];
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-col gap-8",
+ children: [
+ /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: NT({
+ padding: "none",
+ className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
+ }),
+ children: [
+ /* @__PURE__ */ (0, H.jsx)("h3", {
+ className: "text-title-2-medium text-text-primary",
+ children: "按番号添加"
+ }),
+ /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: "flex flex-wrap items-end gap-2",
+ children: [/* @__PURE__ */ (0, H.jsx)("div", {
+ className: "min-w-64 grow max-sm:min-w-0",
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
+ "aria-label": "番号",
+ placeholder: "输入番号,例如 SSIS-950",
+ value: r,
+ isDisabled: e,
+ onChange: i,
+ onKeyDown: c
+ })
+ }), /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "primary",
+ disabled: e || !r.trim(),
+ ...X(a.busy === "add"),
+ onClick: s,
+ children: "添加"
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ a.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "error",
+ title: "这一次没有完成",
+ children: a.error
+ }) : null
+ ]
+ }),
+ o.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "error",
+ title: "想要清单读取失败",
+ children: R(o.error)
+ }) : null,
+ d?.scraping ? /* @__PURE__ */ (0, H.jsx)(jk, {
+ role: "status",
+ children: "正在给刚加入的番号取资料与封面。"
+ }) : null,
+ d && !f.length ? /* @__PURE__ */ (0, H.jsx)(KO, {
+ shell: "plain",
+ icon: Uoe,
+ title: "还没有想要的作品",
+ children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
+ }) : null,
+ j_e.map(([t, r]) => {
+ let i = f.filter((e) => e.phase === t);
+ return i.length ? /* @__PURE__ */ (0, H.jsxs)("section", {
+ "aria-label": r,
+ "data-want-phase": t,
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, H.jsxs)("h3", {
+ className: "flex items-baseline gap-2 text-title-2-medium text-text-primary",
+ children: [r, /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-body-2-regular tabular-nums text-text-secondary",
+ children: i.length
+ })]
+ }), /* @__PURE__ */ (0, H.jsx)("ul", {
+ className: "flex flex-col",
+ children: i.map((t, r) => /* @__PURE__ */ (0, H.jsx)(R_e, {
+ want: t,
+ first: r === 0,
+ readOnly: e,
+ busy: a.busy,
+ onReset: () => u(t),
+ onRemove: () => l(t),
+ onCloudDownload: () => n({
+ code: t.code || "",
+ title: t.title || "",
+ origin: `wishlist:${t.id}`
+ })
+ }, t.id))
+ })]
+ }, t) : null;
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/follow-manage/follow-manage-page.tsx
+var FL = [
+ ["list", "关注列表"],
+ ["add", "添加关注"],
+ ["feeds", "JAV 订阅源"],
+ ["wants", "想要"],
+ ["source", "来源和凭证"]
+], IL = (e) => FL.some(([t]) => t === e);
+function LL({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: NT({
+ padding: "none",
+ className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
+ }),
+ children: [/* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-body-medium text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, H.jsxs)("b", {
+ className: "text-title-1-medium tabular-nums text-text-primary",
+ children: [t, /* @__PURE__ */ (0, H.jsx)("small", {
+ className: "text-body-2-regular text-text-secondary",
+ children: ` ${n}`
+ })]
+ })]
+ });
+}
+function B_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, V.useState)(IL(e.tab) ? e.tab : "list"), [d, f] = (0, V.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, V.useState)(() => bD(e.sort, e.dir).sort), [h, g] = (0, V.useState)(() => bD(e.sort, e.dir).dir), [_, v] = (0, V.useState)(lce(e.layout) ? e.layout : "default"), [y, b] = (0, V.useState)(uce(e.pageSize)), [x, S] = (0, V.useState)(/* @__PURE__ */ new Set()), C = Cn({
+ queryKey: ND,
+ queryFn: ({ signal: e }) => QD(e)
+ }), w = Cn({
+ queryKey: PD,
+ queryFn: ({ signal: e }) => $D(e)
+ }), T = Cn({
+ queryKey: FD,
+ queryFn: ({ signal: e }) => iO(e)
+ }), E = C.data || { sources: [] }, D = w.data || {
+ root: "",
+ providers: []
+ }, O = E.sources;
+ (0, V.useEffect)(() => {
+ S((e) => {
+ let t = gce(e, O);
+ return t.size === e.size ? e : t;
+ });
+ }, [O]);
+ let k = (e) => {
+ let n = e.sort ?? p, r = e.dir ?? h;
+ t({
+ tab: e.tab ?? l,
+ page: e.page ?? d,
+ sort: n === "checked" ? "" : n,
+ dir: r === yD[n] ? "" : r
+ });
+ }, A = JD(O), j = O.filter(BD).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !pO(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
+ o ? /* @__PURE__ */ (0, H.jsx)(Y, {
+ tone: "warning",
+ title: "本机只能浏览",
+ extra: c ? /* @__PURE__ */ (0, H.jsx)("p", {
+ className: "text-body-2-regular",
+ children: /* @__PURE__ */ (0, H.jsx)("a", {
+ href: c,
+ className: "text-text-primary underline underline-offset-2",
+ children: "前往写入端管理关注"
+ })
+ }) : void 0,
+ children: s
+ }) : null,
+ /* @__PURE__ */ (0, H.jsxs)("div", {
+ className: hhe,
+ "aria-label": "关注概览",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "关注创作者",
+ figure: A.length,
+ unit: "位"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "启用来源",
+ figure: M,
+ unit: `/ ${O.length}`
+ }),
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "检查失败",
+ figure: j,
+ unit: "个来源"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "未看更新",
+ figure: E.counts?.new || 0,
+ unit: "条"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "JAV 订阅",
+ figure: P,
+ unit: "位"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(LL, {
+ term: "未看新作",
+ figure: T.data?.unread || 0,
+ unit: "条"
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, H.jsxs)(_y, {
+ selectedKey: l,
+ onSelectionChange: (e) => {
+ let t = String(e);
+ IL(t) && (u(t), k({ tab: t }));
+ },
+ className: "flex flex-col gap-6",
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(vy, {
+ "aria-label": "关注管理区域",
+ "data-section-nav": !0,
+ "data-section-items": !0,
+ className: "flex max-w-full flex-nowrap overflow-x-auto",
+ children: FL.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(yy, {
+ id: e,
+ className: "cursor-pointer whitespace-nowrap",
+ children: e === "source" && N ? `${t}(${N})` : t
+ }, e))
+ }),
+ /* @__PURE__ */ (0, H.jsx)(by, {
+ id: "list",
+ className: "flex flex-col gap-4",
+ children: /* @__PURE__ */ (0, H.jsx)(b_e, {
+ data: E,
+ sort: p,
+ dir: h,
+ page: d,
+ layout: _,
+ pageSize: y,
+ selected: x,
+ readOnly: o,
+ toast: r,
+ openFollow: i,
+ onSort: (e, t) => {
+ m(e), g(t), f(1), k({
+ sort: e,
+ dir: t,
+ page: 1
+ });
+ },
+ onPage: (e) => {
+ f(e), k({ page: e });
+ },
+ onSelected: S,
+ onLayout: (e) => {
+ v(e), f(1), n({ layout: e }), k({ page: 1 });
+ },
+ onPageSize: (e) => {
+ b(e), f(1), n({ pageSize: e }), k({ page: 1 });
+ }
+ })
+ }),
+ /* @__PURE__ */ (0, H.jsxs)(by, {
+ id: "add",
+ className: "flex flex-col gap-8",
+ children: [/* @__PURE__ */ (0, H.jsx)(gge, {
+ data: E,
+ credentials: D,
+ readOnly: o,
+ toast: r,
+ openCredentials: () => {
+ u("source"), k({ tab: "source" });
+ }
+ }), /* @__PURE__ */ (0, H.jsx)(yge, {
+ groups: E.author_aliases || [],
+ readOnly: o,
+ toast: r,
+ suggestions: E.alias_suggestions || [],
+ sources: E.sources
+ })]
+ }),
+ /* @__PURE__ */ (0, H.jsx)(by, {
+ id: "feeds",
+ className: "flex flex-col gap-4",
+ children: /* @__PURE__ */ (0, H.jsx)(k_e, {
+ readOnly: o,
+ toast: r
+ })
+ }),
+ /* @__PURE__ */ (0, H.jsx)(by, {
+ id: "wants",
+ className: "flex flex-col gap-4",
+ children: /* @__PURE__ */ (0, H.jsx)(z_e, {
+ readOnly: o,
+ toast: r,
+ cloudDownload: a
+ })
+ }),
+ /* @__PURE__ */ (0, H.jsx)(by, {
+ id: "source",
+ className: "flex flex-col gap-4",
+ children: /* @__PURE__ */ (0, H.jsx)(Oge, {
+ data: D,
+ readOnly: o,
+ toast: r
+ })
+ })
+ ]
+ })
+ ] });
+}
+//#endregion
+//#region src/react/index/index-tags.tsx
+var RL = () => /* @__PURE__ */ (0, H.jsx)("span", {
+ "aria-hidden": !0,
+ "data-tag-dot": "",
+ className: "size-1.75 flex-none rounded-full"
+});
+function V_e({ tag: e, actions: t }) {
+ let n = t.picked.has(e.k);
+ return /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ "data-alpha-tag": "",
+ "data-k": e.k,
+ "data-tag-cat": GT(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, H.jsx)(RL, {}),
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "min-w-0 flex-1 truncate",
+ children: e.label
+ }),
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "flex-none text-caption-1-regular text-text-secondary",
+ children: e.n.toLocaleString()
+ })
+ ]
+ });
+}
+function H_e({ groups: e, actions: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-alphabet": "",
+ className: "flex flex-col gap-4",
+ children: e.map(([e, n], r) => /* @__PURE__ */ (0, H.jsxs)("section", {
+ "data-alpha-group": r,
+ className: NT({
+ radius: "plain",
+ padding: "none",
+ className: "px-5 pt-4 pb-3"
+ }),
+ children: [/* @__PURE__ */ (0, H.jsxs)("h3", {
+ className: "mb-2 flex items-center text-title-2-medium text-text-primary",
+ children: [e, /* @__PURE__ */ (0, H.jsx)(uT, { value: n.length })]
+ }), /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "index-tag-list gap-x-4 gap-y-0.5",
+ children: n.map((e) => /* @__PURE__ */ (0, H.jsx)(V_e, {
+ tag: e,
+ actions: t
+ }, e.k))
+ })]
+ }, e))
+ });
+}
+var U_e = "\xA0";
+function W_e({ tags: e, actions: t }) {
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-tag-cloud": "",
+ className: "flex flex-wrap gap-1.75",
+ children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
+ type: "button",
+ "data-tag-chip": "",
+ "data-k": e.k,
+ "data-tag-cat": GT(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 + U_e, /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-tag-n": "",
+ className: "text-caption-1-regular opacity-60",
+ children: e.n.toLocaleString()
+ })]
+ }, e.k))
+ });
+}
+var G_e = [[
+ "cloud",
+ "标签云",
+ "tags"
+], [
+ "alphabet",
+ "字母表",
+ "text-aa"
+]];
+function K_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, H.jsx)(sa, {
+ label: "标签筛选",
+ topLabel: "标签类型",
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, H.jsxs)(la, {
+ "data-tag-pill": "",
+ "data-tag-cat": e === "all" ? "all" : GT(n, e),
+ pressed: t === e,
+ onPress: () => o(e),
+ children: [/* @__PURE__ */ (0, H.jsx)(RL, {}), r]
+ }, e)),
+ bottom: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-index-readout": "",
+ className: "flex-none text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
+ children: r
+ }),
+ i.length > 1 ? /* @__PURE__ */ (0, H.jsx)("nav", {
+ "aria-label": "按首字跳转",
+ "data-alpha-jump": "",
+ className: "flex min-w-0 gap-0.5 overflow-x-auto overscroll-x-contain",
+ children: i.map((e, t) => /* @__PURE__ */ (0, H.jsx)("button", {
+ type: "button",
+ onClick: () => s(t),
+ className: "h-7.5 min-w-7.5 flex-none cursor-pointer rounded-glass-key px-1.5 text-caption-1-regular leading-5 text-(--glass-text)/60 outline-none hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring",
+ children: e
+ }, e))
+ }) : null,
+ /* @__PURE__ */ (0, H.jsx)(I_, {
+ "aria-label": "标签视图",
+ orientation: "horizontal",
+ value: a,
+ onChange: (e) => c(e),
+ className: `ml-auto ${eT}`,
+ children: G_e.map(([e, t, n]) => {
+ let r = rr(n);
+ return /* @__PURE__ */ (0, H.jsx)(L_, {
+ value: e,
+ "aria-label": t,
+ "data-glass-segment": "",
+ className: tT,
+ children: /* @__PURE__ */ (0, H.jsx)("span", {
+ title: t,
+ className: "contents",
+ children: /* @__PURE__ */ (0, H.jsx)(r, { className: "size-4" })
+ })
+ }, e);
+ })
+ })
+ ] })
+ });
+}
+function q_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, H.jsxs)(jj, {
+ visible: e > 0,
+ label: "所选标签操作",
+ count: `已选 ${e} 个标签`,
+ children: [
+ /* @__PURE__ */ (0, H.jsx)(tI, {
+ isSelected: t === "any",
+ onChange: (e) => n(e ? "any" : "all"),
+ children: /* @__PURE__ */ (0, H.jsxs)("span", {
+ className: "flex flex-col",
+ children: [/* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-body-medium",
+ children: "广泛匹配"
+ }), /* @__PURE__ */ (0, H.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: "开启后匹配任一所选标签;关闭后必须同时包含全部标签。"
+ })]
+ })
+ }),
+ /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "secondary",
+ size: "small",
+ onClick: r,
+ children: "清空"
+ }),
+ /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "primary",
+ size: "small",
+ disabled: !e,
+ onClick: i,
+ children: "显示结果"
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/index/index-page.tsx
+var J_e = [{
+ value: "studios",
+ label: "厂牌",
+ symbol: "clapperboard"
+}, {
+ value: "agencies",
+ label: "事务所",
+ symbol: "briefcase"
+}], zL = [{
+ value: "local",
+ label: "本地",
+ symbol: "hard-drive"
+}, {
+ value: "online",
+ label: "在线",
+ symbol: "rss"
+}], Y_e = {
+ people: [[
+ "big",
+ "大图 · 竖幅头像",
+ "maximize"
+ ], [
+ "compact",
+ "紧凑 · 圆形头像",
+ "layout-grid"
+ ]],
+ company: [[
+ "big",
+ "大图 · 完整标识",
+ "maximize"
+ ], [
+ "compact",
+ "紧凑 · 圆形标识",
+ "layout-grid"
+ ]]
+};
+function X_e({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, H.jsx)(Zw, {
+ "aria-label": `${PT[e]}索引版式`,
+ orientation: "horizontal",
+ value: t,
+ onChange: (e) => n(e),
+ "data-index-layout": "",
+ className: `flex-none max-board-narrow:order-3 ${Qw}`,
+ children: Y_e[zT(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = rr(n);
+ return /* @__PURE__ */ (0, H.jsx)(L_, {
+ value: e,
+ "aria-label": t,
+ className: lae,
+ children: /* @__PURE__ */ (0, H.jsx)("span", {
+ title: t,
+ className: "contents",
+ children: /* @__PURE__ */ (0, H.jsx)(r, { className: "size-4" })
+ })
+ }, e);
+ })
+ });
+}
+var Z_e = rr("search");
+function Q_e({ label: e, value: t, onQuery: n }) {
+ let [r, i] = (0, V.useState)(t), a = (0, V.useRef)(!1), o = (0, V.useRef)(void 0);
+ (0, V.useEffect)(() => () => clearTimeout(o.current), []);
+ let s = (e) => {
+ clearTimeout(o.current), o.current = setTimeout(() => n(e.trim()), 300);
+ };
+ return /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-index-search": "",
+ className: "ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40",
+ onCompositionStart: () => {
+ a.current = !0;
+ },
+ onCompositionEnd: (e) => {
+ a.current = !1, s(e.target.value);
+ },
+ children: /* @__PURE__ */ (0, H.jsx)(ME, {
+ "aria-label": e,
+ value: r,
+ onChange: (e) => {
+ i(e), a.current || s(e);
+ },
+ children: /* @__PURE__ */ (0, H.jsx)(PE, {
+ type: "search",
+ leadingIcon: Z_e,
+ spellCheck: !1,
+ autoComplete: "off",
+ onKeyDown: (e) => {
+ e.key !== "Enter" || a.current || e.nativeEvent.isComposing || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ }
+ })
+ })
+ });
+}
+function $_e(e) {
+ let [t, n] = (0, V.useState)(() => BT({
+ kind: e.kind,
+ q: e.q,
+ scope: e.scope,
+ view: e.view,
+ category: e.category
+ })), [r, i] = (0, V.useState)(e.layout), [a, o] = (0, V.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, V.useState)("any"), l = (0, V.useRef)(null), { kind: u, q: d, scope: f, view: p, category: h } = t, g = PT[u], _ = u === "tags" && f === "online", v = u === "performers" && f === "online";
+ (0, V.useEffect)(() => {
+ e.selectMode || o(/* @__PURE__ */ new Set());
+ }, [e.selectMode]);
+ let [y, b] = (0, V.useState)(!1), x = (r, i = !1) => {
+ let a = {
+ ...t,
+ ...r
+ };
+ b(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
+ }, S = WT(VT(t)), C = Ln({
+ queryKey: S.queryKey,
+ queryFn: ({ pageParam: e, signal: t }) => S.queryFn({
+ pageParam: e,
+ signal: t
+ }),
+ initialPageParam: 0,
+ getNextPageParam: S.getNextPageParam,
+ placeholderData: y ? Rn.keepPreviousData : void 0
+ }), w = coe(C.data), T = !!C.hasNextPage && !C.isPlaceholderData, E = loe(w.length, !!C.hasNextPage);
+ (0, V.useLayoutEffect)(() => {
+ l.current && ie(l.current);
+ }, [r]);
+ let D = (0, V.useMemo)(() => u === "tags" ? w.map((t) => ({
+ ...t,
+ label: e.tagLabel(t.k)
+ })) : [], [w, u]), O = (0, V.useMemo)(() => u === "tags" && p === "alphabet" ? foe(D, (t) => e.tagLabel(t)) : [], [
+ D,
+ p,
+ u
+ ]), k = (t) => {
+ i(t), e.savePreference({ layout: t });
+ }, A = u === "tags" ? /* @__PURE__ */ (0, H.jsx)(dT, {
+ tabs: zL,
+ value: f,
+ label: "词表",
+ onChange: (e) => {
+ o(/* @__PURE__ */ new Set()), x({
+ scope: e,
+ category: "all",
+ view: e === "online" ? "alphabet" : p
+ });
+ }
+ }) : u === "performers" ? /* @__PURE__ */ (0, H.jsx)(dT, {
+ tabs: zL,
+ value: f,
+ label: "名册",
+ onChange: (t) => {
+ t === "online" && e.exitSelectMode(), x({ scope: t });
+ }
+ }) : zT(u) ? /* @__PURE__ */ (0, H.jsx)(dT, {
+ tabs: J_e,
+ value: u,
+ label: "公司类型",
+ onChange: (e) => x({ kind: e })
+ }) : null, j = (t) => {
+ if (_) {
+ e.openFollowTag(t);
+ return;
+ }
+ if (!e.selectMode) {
+ e.showTags([t], "all");
+ return;
+ }
+ o((e) => {
+ let n = new Set(e);
+ return n.delete(t) || n.add(t), n;
});
- }, d = o.data, f = d?.items || [];
+ }, M = (_ ? IT : FT).filter(([e]) => e === "all" || Number(C.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-col gap-8",
+ ref: l,
+ "data-index-page": u,
+ className: "flex min-w-0 flex-col",
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
- padding: "none",
- className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
- }),
+ "data-index-head": "",
+ className: "mb-5 flex min-w-0 flex-wrap items-center gap-3 p-1",
children: [
- /* @__PURE__ */ (0, H.jsx)("h3", {
- className: "text-title-2-medium text-text-primary",
- children: "按番号添加"
+ /* @__PURE__ */ (0, H.jsx)("h2", {
+ "data-index-title": "",
+ className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
+ children: g
}),
- /* @__PURE__ */ (0, H.jsxs)("div", {
- className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
- "aria-label": "番号",
- placeholder: "输入番号,例如 SSIS-950",
- value: r,
- isDisabled: e,
- onChange: i,
- onKeyDown: c
- })
- }), /* @__PURE__ */ (0, H.jsx)(J, {
- variant: "primary",
- disabled: e || !r.trim(),
- ...X(a.busy === "add"),
- onClick: s,
- children: "添加"
- })]
+ RT(u) ? /* @__PURE__ */ (0, H.jsx)("span", {
+ "data-index-count": "",
+ className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
+ children: C.isPending ? "" : E
+ }) : null,
+ RT(u) ? /* @__PURE__ */ (0, H.jsx)(X_e, {
+ kind: u,
+ layout: r,
+ onChange: k
+ }) : null,
+ /* @__PURE__ */ (0, H.jsx)("span", {
+ "aria-hidden": !0,
+ className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
- a.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "error",
- title: "这一次没有完成",
- children: a.error
- }) : null
+ /* @__PURE__ */ (0, H.jsx)(Q_e, {
+ label: `过滤${g}`,
+ value: d,
+ onQuery: (e) => {
+ e !== d && x({ q: e }, !!e);
+ }
+ })
]
}),
- o.error ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "error",
- title: "想要清单读取失败",
- children: R(o.error)
- }) : null,
- d?.scraping ? /* @__PURE__ */ (0, H.jsx)(sj, {
- role: "status",
- children: "正在给刚加入的番号取资料与封面。"
+ A,
+ u === "tags" ? /* @__PURE__ */ (0, H.jsx)(K_e, {
+ categories: M,
+ category: h,
+ online: _,
+ readout: E,
+ letters: O.map(([e]) => e),
+ view: p,
+ onCategory: (e) => x({ category: e }),
+ onView: (e) => x({ view: e }),
+ onJump: (e) => l.current?.querySelector(`[data-alpha-group="${e}"]`)?.scrollIntoView({
+ block: "start",
+ behavior: "smooth"
+ })
}) : null,
- d && !f.length ? /* @__PURE__ */ (0, H.jsx)(UO, {
- shell: "plain",
- icon: qoe,
- title: "还没有想要的作品",
- children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
+ /* @__PURE__ */ (0, H.jsx)("div", {
+ "data-index-body": "",
+ children: (() => {
+ if (C.isPending) return /* @__PURE__ */ (0, H.jsx)("div", {
+ "aria-busy": "true",
+ dangerouslySetInnerHTML: { __html: be({
+ kind: u,
+ layout: r,
+ mode: p
+ }) }
+ });
+ if (C.isError) return /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: rr("search"),
+ title: `没能读取${g}`,
+ actions: /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "secondary",
+ onClick: () => void C.refetch(),
+ children: "重试"
+ }),
+ children: m(C.error)
+ });
+ if (!w.length) return /* @__PURE__ */ (0, H.jsx)(tve, {
+ kind: u,
+ filtered: !!d || u === "tags" && h !== "all",
+ online: _ || v,
+ configurable: e.configurable
+ });
+ if (v) return /* @__PURE__ */ (0, H.jsx)(moe, {
+ items: w,
+ layout: r,
+ props: e
+ });
+ if (RT(u)) return /* @__PURE__ */ (0, H.jsx)(JT, {
+ kind: u,
+ items: w,
+ layout: r,
+ props: e
+ });
+ let t = {
+ online: _,
+ picked: a,
+ press: j
+ };
+ return p === "alphabet" ? /* @__PURE__ */ (0, H.jsx)(H_e, {
+ groups: O,
+ actions: t
+ }) : /* @__PURE__ */ (0, H.jsx)(W_e, {
+ tags: D,
+ actions: t
+ });
+ })()
+ }),
+ T ? /* @__PURE__ */ (0, H.jsx)("div", {
+ className: "mt-5 flex justify-center",
+ children: /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "secondary",
+ "data-index-more": "",
+ className: "min-w-31",
+ disabled: C.isFetchingNextPage,
+ "aria-busy": C.isFetchingNextPage || void 0,
+ onClick: () => void C.fetchNextPage(),
+ children: C.isFetchingNextPage ? /* @__PURE__ */ (0, H.jsx)(yk, {
+ inline: !0,
+ label: "继续载入中…"
+ }) : "载入更多"
+ })
}) : null,
- G_e.map(([t, r]) => {
- let i = f.filter((e) => e.phase === t);
- return i.length ? /* @__PURE__ */ (0, H.jsxs)("section", {
- "aria-label": r,
- "data-want-phase": t,
- className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, H.jsxs)("h3", {
- className: "flex items-baseline gap-2 text-title-2-medium text-text-primary",
- children: [r, /* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-body-2-regular tabular-nums text-text-secondary",
- children: i.length
- })]
- }), /* @__PURE__ */ (0, H.jsx)("ul", {
- className: "flex flex-col",
- children: i.map((t, r) => /* @__PURE__ */ (0, H.jsx)(Q_e, {
- want: t,
- first: r === 0,
- readOnly: e,
- busy: a.busy,
- onReset: () => u(t),
- onRemove: () => l(t),
- onCloudDownload: () => n({
- code: t.code || "",
- title: t.title || "",
- origin: `wishlist:${t.id}`
- })
- }, t.id))
- })]
- }, t) : null;
- })
+ u === "tags" && !_ && e.selectMode ? /* @__PURE__ */ (0, H.jsx)(q_e, {
+ count: a.size,
+ match: s,
+ onMatch: c,
+ onClear: () => o(/* @__PURE__ */ new Set()),
+ onApply: () => {
+ let t = [...a];
+ o(/* @__PURE__ */ new Set()), e.showTags(t, s);
+ }
+ }) : null
]
});
}
-//#endregion
-//#region src/react/follow-manage/follow-manage-page.tsx
-var RL = [
- ["list", "关注列表"],
- ["add", "添加关注"],
- ["feeds", "JAV 订阅源"],
- ["wants", "想要"],
- ["source", "来源和凭证"]
-], zL = (e) => RL.some(([t]) => t === e);
-function BL({ term: e, figure: t, unit: n }) {
- return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: kT({
- padding: "none",
- className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
+var eve = {
+ tags: "标签",
+ performers: "艺人",
+ creators: "创作者",
+ studios: "厂牌",
+ agencies: "事务所"
+};
+function tve({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: rr("search"),
+ title: "没有符合条件的内容",
+ actions: /* @__PURE__ */ (0, H.jsx)(OE, {
+ variant: "primary",
+ href: "/?loc=&thumb=0",
+ children: "查看全部内容"
}),
- children: [/* @__PURE__ */ (0, H.jsx)("span", {
- className: "text-body-medium text-text-secondary",
- children: e
- }), /* @__PURE__ */ (0, H.jsxs)("b", {
- className: "text-title-1-medium tabular-nums text-text-primary",
- children: [t, /* @__PURE__ */ (0, H.jsx)("small", {
- className: "text-body-2-regular text-text-secondary",
- children: ` ${n}`
- })]
- })]
+ children: "清除筛选或搜索条件后查看全部内容。"
+ });
+ let i = n && e === "performers" ? "创作者" : eve[e], a = /* @__PURE__ */ (0, H.jsx)(OE, {
+ variant: !r || n ? "primary" : "secondary",
+ href: "/follow-manage?tab=add",
+ children: "添加关注"
+ });
+ return /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: rr(e === "tags" ? "tags" : "user-round"),
+ title: `还没有${i}`,
+ actions: n ? a : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [r ? /* @__PURE__ */ (0, H.jsx)(J, {
+ variant: "primary",
+ "data-empty-settings": "",
+ children: "添加内容"
+ }) : null, a] }),
+ children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
-}
-function eve(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, V.useState)(zL(e.tab) ? e.tab : "list"), [d, f] = (0, V.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, V.useState)(() => gD(e.sort, e.dir).sort), [h, g] = (0, V.useState)(() => gD(e.sort, e.dir).dir), [_, v] = (0, V.useState)(pce(e.layout) ? e.layout : "default"), [y, b] = (0, V.useState)(mce(e.pageSize)), [x, S] = (0, V.useState)(/* @__PURE__ */ new Set()), C = Cn({
- queryKey: kD,
- queryFn: ({ signal: e }) => JD(e)
- }), w = Cn({
- queryKey: AD,
- queryFn: ({ signal: e }) => YD(e)
- }), T = Cn({
- queryKey: jD,
- queryFn: ({ signal: e }) => eO(e)
- }), E = C.data || { sources: [] }, D = w.data || {
- root: "",
- providers: []
- }, O = E.sources;
- (0, V.useEffect)(() => {
- S((e) => {
- let t = bce(e, O);
- return t.size === e.size ? e : t;
- });
- }, [O]);
- let k = (e) => {
- let n = e.sort ?? p, r = e.dir ?? h;
- t({
- tab: e.tab ?? l,
- page: e.page ?? d,
- sort: n === "checked" ? "" : n,
- dir: r === hD[n] ? "" : r
- });
- }, A = WD(O), j = O.filter(ID).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !lO(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
- o ? /* @__PURE__ */ (0, H.jsx)(Y, {
- tone: "warning",
- title: "本机只能浏览",
- extra: c ? /* @__PURE__ */ (0, H.jsx)("p", {
- className: "text-body-2-regular",
- children: /* @__PURE__ */ (0, H.jsx)("a", {
- href: c,
- className: "text-text-primary underline underline-offset-2",
- children: "前往写入端管理关注"
- })
- }) : void 0,
- children: s
- }) : null,
- /* @__PURE__ */ (0, H.jsxs)("div", {
- className: khe,
- "aria-label": "关注概览",
- children: [
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "关注创作者",
- figure: A.length,
- unit: "位"
- }),
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "启用来源",
- figure: M,
- unit: `/ ${O.length}`
- }),
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "检查失败",
- figure: j,
- unit: "个来源"
- }),
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "未看更新",
- figure: E.counts?.new || 0,
- unit: "条"
- }),
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "JAV 订阅",
- figure: P,
- unit: "位"
- }),
- /* @__PURE__ */ (0, H.jsx)(BL, {
- term: "未看新作",
- figure: T.data?.unread || 0,
- unit: "条"
- })
- ]
- }),
- /* @__PURE__ */ (0, H.jsxs)(uy, {
- selectedKey: l,
- onSelectionChange: (e) => {
- let t = String(e);
- zL(t) && (u(t), k({ tab: t }));
- },
- className: "flex flex-col gap-6",
- children: [
- /* @__PURE__ */ (0, H.jsx)(dy, {
- "aria-label": "关注管理区域",
- "data-section-nav": !0,
- "data-section-items": !0,
- className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: RL.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(fy, {
- id: e,
- className: "cursor-pointer whitespace-nowrap",
- children: e === "source" && N ? `${t}(${N})` : t
- }, e))
- }),
- /* @__PURE__ */ (0, H.jsx)(py, {
- id: "list",
- className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, H.jsx)(P_e, {
- data: E,
- sort: p,
- dir: h,
- page: d,
- layout: _,
- pageSize: y,
- selected: x,
- readOnly: o,
- toast: r,
- openFollow: i,
- onSort: (e, t) => {
- m(e), g(t), f(1), k({
- sort: e,
- dir: t,
- page: 1
- });
- },
- onPage: (e) => {
- f(e), k({ page: e });
- },
- onSelected: S,
- onLayout: (e) => {
- v(e), f(1), n({ layout: e }), k({ page: 1 });
- },
- onPageSize: (e) => {
- b(e), f(1), n({ pageSize: e }), k({ page: 1 });
- }
- })
- }),
- /* @__PURE__ */ (0, H.jsxs)(py, {
- id: "add",
- className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, H.jsx)(Age, {
- data: E,
- credentials: D,
- readOnly: o,
- toast: r,
- openCredentials: () => {
- u("source"), k({ tab: "source" });
- }
- }), /* @__PURE__ */ (0, H.jsx)(Nge, {
- groups: E.author_aliases || [],
- readOnly: o,
- toast: r,
- suggestions: E.alias_suggestions || [],
- sources: E.sources
- })]
- }),
- /* @__PURE__ */ (0, H.jsx)(py, {
- id: "feeds",
- className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, H.jsx)(U_e, {
- readOnly: o,
- toast: r
- })
- }),
- /* @__PURE__ */ (0, H.jsx)(py, {
- id: "wants",
- className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, H.jsx)($_e, {
- readOnly: o,
- toast: r,
- cloudDownload: a
- })
- }),
- /* @__PURE__ */ (0, H.jsx)(py, {
- id: "source",
- className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, H.jsx)(Hge, {
- data: D,
- readOnly: o,
- toast: r
- })
- })
- ]
- })
- ] });
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function tve({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function nve({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let c = () => n(t.id);
return /* @__PURE__ */ (0, H.jsxs)("li", {
"data-goal-id": t.id,
- className: kT({
+ className: NT({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -47472,7 +47472,7 @@ function tve({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, H.jsx)("img", {
- src: yme(t),
+ src: ame(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -47520,38 +47520,38 @@ function tve({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
})]
});
}
-function nve(e) {
+function rve(e) {
let t = Cn({
- queryKey: qP,
- queryFn: ({ signal: e }) => JP(e)
+ queryKey: VP,
+ queryFn: ({ signal: e }) => HP(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: t.error ? R(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, H.jsxs)(dP, { children: [/* @__PURE__ */ (0, H.jsx)(jA, {
+ return r.length ? /* @__PURE__ */ (0, H.jsxs)(aP, { children: [/* @__PURE__ */ (0, H.jsx)($O, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
}), /* @__PURE__ */ (0, H.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, H.jsx)(tve, {
+ children: r.map((t) => /* @__PURE__ */ (0, H.jsx)(nve, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(UO, {
+ })] }) : /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: Qoe,
+ icon: Joe,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function rve(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 = Ame(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function ive(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 = gme(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -47559,29 +47559,29 @@ function rve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, H.jsxs)(pP, {
+ i.length > 1 ? /* @__PURE__ */ (0, H.jsxs)(sP, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, H.jsx)(mP, {
+ children: [/* @__PURE__ */ (0, H.jsx)(cP, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ }), i.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -47589,7 +47589,7 @@ function rve(e) {
/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: oE,
+ leadingIcon: uE,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -47600,12 +47600,12 @@ function rve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, H.jsxs)(iA, {
+ }), /* @__PURE__ */ (0, H.jsxs)(jj, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, H.jsxs)(pP, {
+ b ? /* @__PURE__ */ (0, H.jsxs)(sP, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -47613,10 +47613,10 @@ function rve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, H.jsx)(mP, {
+ children: [/* @__PURE__ */ (0, H.jsx)(cP, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ }), y.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: e
}, e))]
@@ -47652,7 +47652,7 @@ function rve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var ive = {
+var ave = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -47662,14 +47662,14 @@ var ive = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, VL = "reviewgenretags";
-function ave({ tags: e }) {
+}, BL = "reviewgenretags";
+function ove({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, H.jsx)("datalist", {
- id: VL,
+ id: BL,
children: e.map((e) => /* @__PURE__ */ (0, H.jsx)("option", { value: e }, e))
}) : null;
}
-function HL({ candidate: e, selectable: t = !1 }) {
+function VL({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -47706,7 +47706,7 @@ function HL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, H.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: ive[e] || e
+ children: ave[e] || e
}),
/* @__PURE__ */ (0, H.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -47721,36 +47721,36 @@ function HL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function ove({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function sve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, H.jsx)(HL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, H.jsx)(R_, {
+ children: /* @__PURE__ */ (0, H.jsx)(VL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, H.jsx)(I_, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, H.jsx)(z_, {
+ children: a.map((e) => /* @__PURE__ */ (0, H.jsx)(L_, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, H.jsx)(HL, {
+ children: /* @__PURE__ */ (0, H.jsx)(VL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function sve({ genre: e, tags: t, locked: n, toast: r }) {
+function cve({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, V.useState)(""), [o, s] = (0, V.useState)(""), c = Fn({
- mutationFn: (t) => Rme(e, t),
+ mutationFn: (t) => wme(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Bme();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Eme();
},
onError: (e) => s(R(e))
}), l = () => {
@@ -47769,16 +47769,16 @@ function sve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, H.jsx)(OE, {
+ /* @__PURE__ */ (0, H.jsx)(ME, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, H.jsx)(AE, {
+ children: /* @__PURE__ */ (0, H.jsx)(PE, {
size: "small",
- list: t.length ? VL : void 0,
+ list: t.length ? BL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -47810,8 +47810,8 @@ function sve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function cve({ row: e, tags: t, locked: n, toast: r }) {
- let i = Fme(e);
+function lve({ row: e, tags: t, locked: n, toast: r }) {
+ let i = xme(e);
return i.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -47819,7 +47819,7 @@ function cve({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, H.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, H.jsx)(sve, {
+ }), i.map((e) => /* @__PURE__ */ (0, H.jsx)(cve, {
genre: e,
tags: t,
locked: n,
@@ -47829,9 +47829,9 @@ function cve({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var UL = (e = "") => /^https?:\/\//i.test(e) ? e : "", lve = (e = "") => UL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function WL({ url: e }) {
- let t = lve(e || ""), [n, r] = (0, V.useState)(!1);
+var HL = (e = "") => /^https?:\/\//i.test(e) ? e : "", uve = (e = "") => HL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function UL({ url: e }) {
+ let t = uve(e || ""), [n, r] = (0, V.useState)(!1);
return /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, H.jsx)("img", {
@@ -47846,7 +47846,7 @@ function WL({ url: e }) {
})
});
}
-function GL({ asset: e, openItem: t }) {
+function WL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -47872,21 +47872,21 @@ function GL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Koe,
+ leadingIcon: Hoe,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function uve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function dve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${TL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${SL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -47902,8 +47902,8 @@ function uve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function dve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = UL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function fve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = HL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, H.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -47913,10 +47913,10 @@ function dve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, H.jsx)(wE, {
+ children: [o ? /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "secondary",
size: "small",
- trailingIcon: dE,
+ trailingIcon: hE,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -47928,7 +47928,7 @@ function dve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, H.jsx)(WL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, H.jsx)(UL, { url: e.preview_url }),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -47971,7 +47971,7 @@ function dve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function fve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function pve({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, V.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -48027,7 +48027,7 @@ function fve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, H.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, H.jsx)(KO, {
+ children: /* @__PURE__ */ (0, H.jsx)(eI, {
size: "sm",
state: {
isSelected: n,
@@ -48047,19 +48047,19 @@ function fve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var pve = kT({
+var mve = NT({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), KL = "flex min-h-6 min-w-0 items-center", mve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function hve(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, V.useRef)(!1), m = HE(), h = HE(), g = t === "metadata_fields", _ = Eme[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Mme(t, n), x = tF(t, n), S = eF(t, n), C = Nme(n), w = Pme(n), T = $P(t, n), E = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, H.jsx)("div", {
+}), GL = "flex min-h-6 min-w-0 items-center", hve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function gve(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, V.useRef)(!1), m = KE(), h = KE(), g = t === "metadata_fields", _ = fme[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = vme(t, n), x = YP(t, n), S = JP(t, n), C = yme(n), w = bme(n), T = qP(t, n), E = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, H.jsx)(GL, {
+ children: E.map((e) => /* @__PURE__ */ (0, H.jsx)(WL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, H.jsx)(uve, {
+ }) : y ? /* @__PURE__ */ (0, H.jsx)(dve, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48070,14 +48070,14 @@ function hve(e) {
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, H.jsx)(GL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, H.jsx)(WL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, H.jsx)(ove, {
+ }) : null, j = g ? /* @__PURE__ */ (0, H.jsx)(sve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48086,7 +48086,7 @@ function hve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, H.jsx)(fve, {
+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, H.jsx)(pve, {
assets: O,
picked: r.assets,
locked: s,
@@ -48094,21 +48094,21 @@ function hve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "inset",
- icon: Voe,
+ icon: Loe,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, H.jsx)(dve, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, H.jsx)(fve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, H.jsx)(WL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, H.jsxs)("h4", {
- className: `${KL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, H.jsx)(SE, {
+ }) : /* @__PURE__ */ (0, H.jsx)(UL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, H.jsxs)("h4", {
+ className: `${GL} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "blue",
children: x
@@ -48118,7 +48118,7 @@ function hve(e) {
children: S
})]
}) : /* @__PURE__ */ (0, H.jsx)("h4", {
- className: KL,
+ className: GL,
children: /* @__PURE__ */ (0, H.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -48128,20 +48128,20 @@ function hve(e) {
return /* @__PURE__ */ (0, H.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${pve} ${mve(t)} overflow-hidden`,
+ className: `${mve} ${hve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, H.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, H.jsx)("span", {
- className: `${KL} shrink-0`,
+ className: `${GL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, H.jsx)(qO, {
+ children: /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48151,7 +48151,7 @@ function hve(e) {
className: "min-w-0 flex-1",
children: M
}),
- k ? /* @__PURE__ */ (0, H.jsx)(SE, {
+ k ? /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48175,7 +48175,7 @@ function hve(e) {
!y && A ? A : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, H.jsx)(SE, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, H.jsx)(EE, {
variant: "caption",
color: "soft",
children: e
@@ -48185,7 +48185,7 @@ function hve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, H.jsx)(cve, {
+ /* @__PURE__ */ (0, H.jsx)(lve, {
row: n,
tags: u,
locked: s,
@@ -48247,8 +48247,8 @@ function hve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var gve = "flex cursor-pointer items-center justify-between gap-2";
-function _ve({ page: e, pages: t, onPage: n }) {
+var _ve = "flex cursor-pointer items-center justify-between gap-2";
+function vve({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, H.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48262,7 +48262,7 @@ function _ve({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, H.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: _D(e, t).map((t, r) => /* @__PURE__ */ (0, H.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, H.jsx)("span", {
+ children: xD(e, t).map((t, r) => /* @__PURE__ */ (0, H.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, H.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48285,38 +48285,38 @@ function _ve({ page: e, pages: t, onPage: n }) {
]
});
}
-function vve(e) {
+function yve(e) {
let [t, n] = (0, V.useState)(() => matchMedia("(max-width:900px)").matches);
(0, V.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, V.useState)(ZP(e.category) ? e.category : Tme), [p, m] = (0, V.useState)("candidates"), [h, g] = (0, V.useState)(""), [_, v] = (0, V.useState)(1), [y, b] = (0, V.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, V.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, V.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, V.useState)(""), D = (0, V.useRef)(null), [O, k] = (0, V.useState)(0), [A, j] = (0, V.useState)(""), M = (0, V.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, V.useState)(GP(e.category) ? e.category : dme), [p, m] = (0, V.useState)("candidates"), [h, g] = (0, V.useState)(""), [_, v] = (0, V.useState)(1), [y, b] = (0, V.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, V.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, V.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, V.useState)(""), D = (0, V.useRef)(null), [O, k] = (0, V.useState)(0), [A, j] = (0, V.useState)(""), M = (0, V.useRef)(!0);
(0, V.useEffect)(() => () => {
M.current = !1;
}, []);
let N = Cn({
- queryKey: YP,
- queryFn: ({ signal: e }) => rF(e)
+ queryKey: UP,
+ queryFn: ({ signal: e }) => ZP(e)
}).data || {
sections: {},
counts: {}
- }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = Dme(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = QP(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = kme(Ome(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = pme(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = KP(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = hme(mme(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
- })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || Ime(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || Sme(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
let t = new Set(e);
b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, L = (e, t) => w((n) => new Map(n).set(e, t)), de = (e) => {
f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });
}, fe = Fn({
- mutationFn: ({ row: e, status: t }) => iF(nF(d, e, t, ce(e))),
+ mutationFn: ({ row: e, status: t }) => QP(XP(d, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
L(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- aF(d, [t.item_key]), ue([t.item_key]), s(Lme(n));
+ $P(d, [t.item_key]), ue([t.item_key]), s(Cme(n));
},
onError: (e, { row: t }) => L(t.item_key, R(e))
}), pe = Fn({
@@ -48326,7 +48326,7 @@ function vve(e) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await iF(nF(d, a, e, ce(a)));
+ let t = await QP(XP(d, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48340,7 +48340,7 @@ function vve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- aF(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ $P(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(R(e));
@@ -48370,7 +48370,7 @@ function vve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, _e = Vme(N.mirror, l), ve = N.genre_tags || [], ye = {
+ }, _e = Dme(N.mirror, l), ve = N.genre_tags || [], ye = {
openItem: i,
openEntity: a,
onReveal: ge,
@@ -48378,7 +48378,7 @@ function vve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsxs)("div", {
+ return /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
F ? /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -48394,13 +48394,13 @@ function vve(e) {
}) : void 0,
children: _e
}) : null,
- /* @__PURE__ */ (0, H.jsx)(ave, { tags: ve }),
- /* @__PURE__ */ (0, H.jsxs)(uy, {
+ /* @__PURE__ */ (0, H.jsx)(ove, { tags: ve }),
+ /* @__PURE__ */ (0, H.jsxs)(_y, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- ZP(t) && de(t);
+ GP(t) && de(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -48409,27 +48409,27 @@ function vve(e) {
children: [/* @__PURE__ */ (0, H.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, H.jsx)(dy, {
+ }), /* @__PURE__ */ (0, H.jsx)(vy, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: wme.map((e) => {
+ children: ume.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, H.jsxs)(fy, {
+ return /* @__PURE__ */ (0, H.jsxs)(yy, {
id: e,
- className: gve,
- children: [XP[e], t ? /* @__PURE__ */ (0, H.jsx)("span", {
+ className: _ve,
+ children: [WP[e], t ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, H.jsxs)(py, {
+ }), /* @__PURE__ */ (0, H.jsxs)(by, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- P.length && !F ? /* @__PURE__ */ (0, H.jsx)(rve, {
+ P.length && !F ? /* @__PURE__ */ (0, H.jsx)(ive, {
groupOptions: I,
groupBy: te,
onGroupBy: (e) => {
@@ -48445,7 +48445,7 @@ function vve(e) {
onSelected: b,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => $P(d, e)),
+ approvable: le.every((e) => qP(d, e)),
busy: pe.isPending,
feedback: T,
onUnifySource: he,
@@ -48470,7 +48470,7 @@ function vve(e) {
})]
}) : null, /* @__PURE__ */ (0, H.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, H.jsx)(hve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, H.jsx)(gve, {
category: d,
row: e,
choice: ce(e),
@@ -48478,7 +48478,7 @@ function vve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = jme(i, ae, D.current, e.item_key, t, n), i;
+ return D.current = _me(i, ae, D.current, e.item_key, t, n), i;
}),
locked: F,
busy: fe.isPending && fe.variables?.row.item_key === e.item_key,
@@ -48493,12 +48493,12 @@ function vve(e) {
handlers: ye
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, H.jsx)(UO, {
- icon: Loe,
+ }, e.key)) : /* @__PURE__ */ (0, H.jsx)(KO, {
+ icon: Noe,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, H.jsx)(_ve, {
+ /* @__PURE__ */ (0, H.jsx)(vve, {
page: ie.page,
pages: ie.pages,
onPage: v
@@ -48511,9 +48511,13 @@ function vve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var yve = "/api/scraping", bve = "/api/scraping/settings", xve = "/api/scraping/check", qL = "/api/scraping/cover", Sve = "/api/scraping/amane-bridge", Cve = "/api/scraping/amane-bridge/check", wve = "/api/scraping/amane-bridge/rebuild", JL = ["scraping"], YL = ["scraping", "cover"], XL = ["scraping", "amane-bridge"], ZL = (e) => z(yve, e), QL = (e) => z(qL, e), $L = (e) => z(Sve, e);
-async function Tve(e) {
+var bve = "/api/scraping", xve = "/api/scraping/settings", Sve = "/api/scraping/check", KL = "/api/scraping/cover", Cve = "/api/scraping/amane-bridge", wve = "/api/scraping/amane-bridge/check", Tve = "/api/scraping/amane-bridge/rebuild", qL = ["scraping"], JL = ["scraping", "cover"], YL = ["scraping", "amane-bridge"], XL = (e) => z(bve, e), ZL = (e) => z(KL, e), QL = (e) => z(Cve, e);
+async function Eve(e) {
await Promise.all([
+ _.fetchQuery({
+ queryKey: qL,
+ queryFn: () => XL(e)
+ }),
_.fetchQuery({
queryKey: JL,
queryFn: () => ZL(e)
@@ -48521,20 +48525,16 @@ async function Tve(e) {
_.fetchQuery({
queryKey: YL,
queryFn: () => QL(e)
- }),
- _.fetchQuery({
- queryKey: XL,
- queryFn: () => $L(e)
})
]);
}
-function Eve(e, t) {
+function Dve(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 Dve = [["peach", "Peach 代理"], ["direct", "直接连接"]], eR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function tR({ source: e }) {
+var Ove = [["peach", "Peach 代理"], ["direct", "直接连接"]], $L = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function eR({ source: e }) {
let t = [
"javten",
"fc2ppvdb",
@@ -48552,16 +48552,16 @@ function tR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Ove() {
- return /* @__PURE__ */ (0, H.jsx)(tR, { source: "github" });
+function kve() {
+ return /* @__PURE__ */ (0, H.jsx)(eR, { source: "github" });
}
-function kve({ source: e, toast: t }) {
- let [n, r] = (0, V.useState)(e.network), [i, a] = (0, V.useState)(""), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(eR[0][0]), [u, d] = (0, V.useState)(""), [f, p] = (0, V.useState)(""), m = (0, V.useRef)(null);
+function Ave({ source: e, toast: t }) {
+ let [n, r] = (0, V.useState)(e.network), [i, a] = (0, V.useState)(""), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)($L[0][0]), [u, d] = (0, V.useState)(""), [f, p] = (0, V.useState)(""), m = (0, V.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Fn({
- mutationFn: (t) => B(bve, {
+ mutationFn: (t) => B(xve, {
source: e.source,
network: n,
cookie: i,
@@ -48569,12 +48569,12 @@ function kve({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- _.setQueryData(JL, (t) => t && {
+ _.setQueryData(qL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), v = Fn({ mutationFn: () => B(xve, { source: e.source }) }), y = g.isPending || v.isPending, b = (e) => {
+ }), v = Fn({ mutationFn: () => B(Sve, { source: e.source }) }), y = g.isPending || v.isPending, b = (e) => {
e.preventDefault(), !y && (v.reset(), g.mutate(!1));
}, x = () => {
y || (v.reset(), g.mutate(!0));
@@ -48599,40 +48599,40 @@ function kve({ source: e, toast: t }) {
}
}
let w = f || (g.error ? R(g.error) : "") || (v.error ? R(v.error) : ""), T = v.data?.results ?? [], E = n === "peach" || e.accepts_cookie || e.browser || !!w || T.length > 0;
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: e.label,
onSubmit: b,
aside: /* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, H.jsx)(tR, { source: e.source }), /* @__PURE__ */ (0, H.jsx)(uj, {
+ children: [/* @__PURE__ */ (0, H.jsx)(eR, { source: e.source }), /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, H.jsx)(ij, { children: /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ok, { children: /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "连接方式",
- children: /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Dve.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: Ove.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
})
}) }),
- E ? /* @__PURE__ */ (0, H.jsxs)(aj, {
+ E ? /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, H.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, H.jsx)(WA, {
+ children: /* @__PURE__ */ (0, H.jsx)(fk, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: rE,
+ trailingIcon: sE,
children: "配置 Peach 代理"
})
}) : null,
@@ -48645,20 +48645,20 @@ function kve({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, H.jsx)(qw, {
+ /* @__PURE__ */ (0, H.jsx)(Zw, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: Jw,
- children: eR.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(z_, {
+ className: Qw,
+ children: $L.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(L_, {
value: e,
- className: Yw,
+ className: $w,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, H.jsx)(jE, {
+ c === "paste" ? /* @__PURE__ */ (0, H.jsx)(FE, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -48667,7 +48667,7 @@ function kve({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
@@ -48693,14 +48693,14 @@ function kve({ source: e, toast: t }) {
]
})
] }) : null,
- w ? /* @__PURE__ */ (0, H.jsx)(cj, { children: w }) : null,
+ w ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: w }) : null,
T.map((t) => /* @__PURE__ */ (0, H.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Eve(t, e.label)
+ children: Dve(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, H.jsxs)(oj, { children: [
+ /* @__PURE__ */ (0, H.jsxs)(Ak, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
onClick: x,
@@ -48722,26 +48722,26 @@ function kve({ source: e, toast: t }) {
]
});
}
-function Ave({ toast: e }) {
- let [t, n] = (0, V.useState)(""), { running: r, outcome: i, start: a } = rI({
- queryKey: YL,
- queryFn: ({ signal: e }) => QL(e),
- start: () => B(qL, { code: t }),
+function jve({ toast: e }) {
+ let [t, n] = (0, V.useState)(""), { running: r, outcome: i, start: a } = ZF({
+ queryKey: JL,
+ queryFn: ({ signal: e }) => ZL(e),
+ start: () => B(KL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? R(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, H.jsx)(rj, {
+ return /* @__PURE__ */ (0, H.jsx)(Dk, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, H.jsxs)(aj, { children: [
+ children: /* @__PURE__ */ (0, H.jsxs)(kk, { children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: /* @__PURE__ */ (0, H.jsx)(FE, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -48756,7 +48756,7 @@ function Ave({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, H.jsx)(WO, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, H.jsx)(yk, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: s
@@ -48768,11 +48768,11 @@ function Ave({ toast: e }) {
] })
});
}
-function jve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = rI({
- queryKey: XL,
- queryFn: ({ signal: e }) => $L(e),
- start: () => B(wve, {}),
+function Mve({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = ZF({
+ queryKey: YL,
+ queryFn: ({ signal: e }) => QL(e),
+ start: () => B(Tve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -48781,45 +48781,45 @@ function jve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Fn({ mutationFn: () => B(Cve, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, H.jsx)(rj, {
+ }), a = Fn({ mutationFn: () => B(wve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, H.jsx)(Dk, {
title: "amane",
- children: /* @__PURE__ */ (0, H.jsx)(aj, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ children: /* @__PURE__ */ (0, H.jsx)(kk, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: R(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? R(i.error) : a.error ? R(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "amane",
- aside: /* @__PURE__ */ (0, H.jsx)(uj, {
+ aside: /* @__PURE__ */ (0, H.jsx)(Pk, {
href: o.repository,
- leadingIcon: Ove,
+ leadingIcon: kve,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, H.jsxs)(dj, { children: [
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, H.jsxs)(aj, {
+ /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
children: [
- /* @__PURE__ */ (0, H.jsxs)(sj, { children: [
+ /* @__PURE__ */ (0, H.jsxs)(jk, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -48828,7 +48828,7 @@ function jve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, H.jsx)(WO, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, H.jsx)(yk, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: c
@@ -48839,7 +48839,7 @@ function jve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsxs)(oj, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
+ /* @__PURE__ */ (0, H.jsxs)(Ak, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -48856,23 +48856,23 @@ function jve({ toast: e }) {
]
});
}
-function Mve({ toast: e }) {
+function Nve({ toast: e }) {
let t = Cn({
- queryKey: JL,
- queryFn: ({ signal: e }) => ZL(e)
+ queryKey: qL,
+ queryFn: ({ signal: e }) => XL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
+ return n ? /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, H.jsx)(Ave, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, H.jsx)(kve, {
+ /* @__PURE__ */ (0, H.jsx)(jve, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, H.jsx)(Ave, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, H.jsx)(jve, { toast: e })
- ] }) : /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ /* @__PURE__ */ (0, H.jsx)(Mve, { toast: e })
+ ] }) : /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? R(t.error) : "读取采集来源失败"
@@ -48880,24 +48880,24 @@ function Mve({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var nR = "/api/configuration", Nve = "/api/pick-folder", rR = ["configuration"], iR = (e) => z(nR, e);
-async function aR(e) {
+var tR = "/api/configuration", Pve = "/api/pick-folder", nR = ["configuration"], rR = (e) => z(tR, e);
+async function iR(e) {
await _.fetchQuery({
- queryKey: rR,
- queryFn: () => iR(e)
+ queryKey: nR,
+ queryFn: () => rR(e)
});
}
//#endregion
//#region src/configuration-copy.ts
-var Pve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Fve = "仅填域名;留空使用默认地址";
+var Fve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Ive = "仅填域名;留空使用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function Ive({ initial: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e.sites), i = GE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function Lve({ initial: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e.sites), i = YE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -48906,9 +48906,9 @@ function Ive({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, H.jsx)(sj, { children: Pve }),
- n.map((e) => /* @__PURE__ */ (0, H.jsx)(jE, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: Fve }),
+ n.map((e) => /* @__PURE__ */ (0, H.jsx)(FE, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -48917,10 +48917,10 @@ function Ive({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: Fve
+ hint: Ive
}, e.key)),
- i.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -48929,21 +48929,21 @@ function Ive({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Lve({ data: e, receipt: t }) {
+function Rve({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, H.jsx)(Rve, {
+ children: [e.startup ? /* @__PURE__ */ (0, H.jsx)(zve, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, H.jsx)(Ive, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, H.jsx)(Lve, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function Rve({ startup: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e.enabled), [i, a] = (0, V.useState)(e.silent), [o, s] = (0, V.useState)(e.desktop), c = GE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+function zve({ startup: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e.enabled), [i, a] = (0, V.useState)(e.silent), [o, s] = (0, V.useState)(e.desktop), c = YE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => B("/api/configuration/startup", {
@@ -48953,30 +48953,30 @@ function Rve({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, H.jsxs)(ij, { children: [
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ok, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -48984,11 +48984,11 @@ function Rve({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, H.jsxs)(aj, {
+ e.message || c.error ? /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, H.jsx)(sj, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, H.jsx)(jk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -48999,23 +48999,23 @@ function Rve({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var oR = /* @__PURE__ */ new Set([
+var aR = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), zve = [
+]), Bve = [
65,
67,
90
-], sR = 120;
-function Bve({ initial: e, initialJob: t }) {
+], oR = 120;
+function Vve({ initial: e, initialJob: t }) {
let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, V.useState)(""), c = GE(), l = (0, V.useRef)(!1), u = (0, V.useRef)(!0), d = oR.has(i.state);
+ }), [o, s] = (0, V.useState)(""), c = YE(), l = (0, V.useRef)(!1), u = (0, V.useRef)(!0), d = aR.has(i.state);
(0, V.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -49032,7 +49032,7 @@ function Bve({ initial: e, initialJob: t }) {
(0, V.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, V.useEffect)(() => {
- let e = new AbortController(), t = oR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = aR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await z("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -49045,9 +49045,9 @@ function Bve({ initial: e, initialJob: t }) {
let n = await z("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= sR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= oR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < sR && (n = setTimeout(c, t));
+ !e.signal.aborted && o < oR && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -49061,57 +49061,57 @@ function Bve({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(R(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, H.jsxs)(dj, { children: [
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, H.jsxs)(aj, {
+ /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, H.jsxs)(sj, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, H.jsxs)(jk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, H.jsx)(cj, { children: g || n.message }) : /* @__PURE__ */ (0, H.jsx)(sj, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: g || n.message }) : /* @__PURE__ */ (0, H.jsx)(jk, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, H.jsx)(cj, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, H.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(QA, {
+ /* @__PURE__ */ (0, H.jsx)(Sk, {
label: "更新准备进度",
value: i.progress,
- stops: zve
+ stops: Bve
}),
- /* @__PURE__ */ (0, H.jsxs)(sj, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, H.jsx)(sj, { children: _ })
+ /* @__PURE__ */ (0, H.jsxs)(jk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsxs)(oj, {
- status: /* @__PURE__ */ (0, H.jsx)(uj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ak, {
+ status: /* @__PURE__ */ (0, H.jsx)(Pk, {
href: n.release_url,
children: "查看发布页"
}),
@@ -49138,98 +49138,98 @@ function Bve({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var Vve = [
+var Hve = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Hve({ data: e, receipt: t, reopenTutorial: n }) {
+function Uve({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, H.jsx)(Wve, {
+ e.automatic_updates ? /* @__PURE__ */ (0, H.jsx)(Gve, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, H.jsx)(Bve, {
+ e.updates ? /* @__PURE__ */ (0, H.jsx)(Vve, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, H.jsx)(Gve, { facts: e.facts }),
- /* @__PURE__ */ (0, H.jsx)(Uve, {
+ /* @__PURE__ */ (0, H.jsx)(Kve, { facts: e.facts }),
+ /* @__PURE__ */ (0, H.jsx)(Wve, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, H.jsx)(Kve, {
+ e.uninstall ? /* @__PURE__ */ (0, H.jsx)(qve, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function Uve({ receipt: e, reopenTutorial: t }) {
- let n = GE();
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+function Wve({ receipt: e, reopenTutorial: t }) {
+ let n = YE();
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, H.jsxs)(aj, { children: [/* @__PURE__ */ (0, H.jsx)(sj, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: n.error }) : null] }), /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(kk, { children: [/* @__PURE__ */ (0, H.jsx)(jk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: n.error }) : null] }), /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function Wve({ initial: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e.mode), [i, a] = (0, V.useState)(e.interval_hours), o = GE(e.error), s = (r) => {
+function Gve({ initial: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e.mode), [i, a] = (0, V.useState)(e.interval_hours), o = YE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => B("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, H.jsxs)(ij, { children: [
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ok, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: Vve.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: Hve.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ o.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: o.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -49238,19 +49238,19 @@ function Wve({ initial: e, receipt: t }) {
]
});
}
-function Gve({ facts: e }) {
- return /* @__PURE__ */ (0, H.jsx)(rj, {
+function Kve({ facts: e }) {
+ return /* @__PURE__ */ (0, H.jsx)(Dk, {
title: "运行信息",
- children: /* @__PURE__ */ (0, H.jsx)(dj, { children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)(fj, {
+ children: /* @__PURE__ */ (0, H.jsx)(Fk, { children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)(Ik, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, H.jsx)(uj, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, H.jsx)(Pk, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Kve({ uninstall: e, receipt: t }) {
+function qve({ uninstall: e, receipt: t }) {
let [n, r] = (0, V.useState)(!1), [i, a] = (0, V.useState)(""), o = () => void fe({
title: "卸载 Peach",
danger: !0,
@@ -49264,26 +49264,26 @@ function Kve({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- e.available ? /* @__PURE__ */ (0, H.jsx)(sj, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, H.jsx)(qO, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ e.available ? /* @__PURE__ */ (0, H.jsx)(jk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, H.jsx)(pj, {
+ /* @__PURE__ */ (0, H.jsx)(Lk, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, H.jsx)(XA, {
+ children: c.map((e) => /* @__PURE__ */ (0, H.jsx)(vk, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, H.jsx)(oj, {
+ ] }), /* @__PURE__ */ (0, H.jsx)(Ak, {
status: s ? /* @__PURE__ */ (0, H.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -49299,7 +49299,7 @@ function Kve({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var qve = [
+var Jve = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -49318,32 +49318,32 @@ var qve = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Jve = [
+], Yve = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Yve() {
+function Xve() {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, H.jsxs)(sj, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, H.jsx)(uj, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(jk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, H.jsx)(Pk, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, H.jsxs)(pj, {
+ })] }), /* @__PURE__ */ (0, H.jsxs)(Lk, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, H.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: qve.map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
+ children: Jve.map((e) => /* @__PURE__ */ (0, H.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, H.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Jve.map(([t, n]) => /* @__PURE__ */ (0, H.jsxs)("div", {
+ children: Yve.map(([t, n]) => /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, H.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -49364,9 +49364,9 @@ function Yve() {
/* @__PURE__ */ (0, H.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, H.jsxs)(sj, { children: [
+ /* @__PURE__ */ (0, H.jsxs)(jk, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, H.jsx)(uj, {
+ /* @__PURE__ */ (0, H.jsx)(Pk, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -49378,15 +49378,15 @@ function Yve() {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var Xve = "/api/configuration/downloads", cR = "/api/configuration/downloads/check", Zve = "/api/configuration/downloads/folder", Qve = "/api/configuration/downloads/pikpak/login", $ve = "/api/configuration/downloads/pikpak/logout", lR = "/api/configuration/downloads/pikpak/browser-login", uR = 2e3;
-function eye({ initial: e, receipt: t }) {
+var Zve = "/api/configuration/downloads", sR = "/api/configuration/downloads/check", Qve = "/api/configuration/downloads/folder", $ve = "/api/configuration/downloads/pikpak/login", eye = "/api/configuration/downloads/pikpak/logout", cR = "/api/configuration/downloads/pikpak/browser-login", lR = 2e3;
+function tye({ initial: e, receipt: t }) {
let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(tye, {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(nye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, H.jsx)(rye, {
+ }), /* @__PURE__ */ (0, H.jsx)(iye, {
state: n,
settle: r,
receipt: t,
@@ -49394,8 +49394,8 @@ function eye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, V.useState)(e.config), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(String(e.config.wait_hours)), [u, d] = (0, V.useState)(null), [f, p] = (0, V.useState)(""), [m, h] = (0, V.useState)(dR), [g, _] = (0, V.useState)(""), [v, y] = (0, V.useState)(!1), b = GE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function nye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, V.useState)(e.config), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(String(e.config.wait_hours)), [u, d] = (0, V.useState)(null), [f, p] = (0, V.useState)(""), [m, h] = (0, V.useState)(uR), [g, _] = (0, V.useState)(""), [v, y] = (0, V.useState)(!1), b = YE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -49424,8 +49424,8 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => z(cR, e), (e) => w(e, t), (e) => _(R(e)));
- }, []), /* @__PURE__ */ (0, H.jsxs)(rj, {
+ b.run("auto", (e) => z(sR, e), (e) => w(e, t), (e) => _(R(e)));
+ }, []), /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -49438,19 +49438,19 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => B(Xve, f, "POST", e), (e) => {
+ b.run("save", (e) => B(Zve, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(dR), y(!1), _("")), n("已保存配置");
+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(uR), y(!1), _("")), n("已保存配置");
}, (e) => _(R(e)));
},
children: [
- /* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -49462,7 +49462,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -49473,7 +49473,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -49485,7 +49485,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -49497,7 +49497,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -49506,13 +49506,13 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, H.jsx)(sj, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, H.jsx)(jk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -49523,11 +49523,11 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(WO, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, H.jsx)(yk, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, H.jsx)(nye, {
+ u ? /* @__PURE__ */ (0, H.jsx)(rye, {
report: u,
detected: f,
suggested: m,
@@ -49539,7 +49539,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => B(Zve, t, "POST", e), (t) => {
+ b.run("folder", (e) => B(Qve, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -49551,11 +49551,11 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ g || b.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: g || b.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, H.jsxs)(oj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ak, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
onClick: () => {
@@ -49570,7 +49570,7 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => B(cR, t, "POST", e), (t) => w(t, e), (e) => _(R(e)));
+ b.run("check", (e) => B(sR, t, "POST", e), (t) => w(t, e), (e) => _(R(e)));
},
disabled: !e.available,
...X(b.busy === "check"),
@@ -49585,25 +49585,25 @@ function tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
]
});
}
-var dR = {
+var uR = {
target: null,
root: "",
saved: !1
};
-function nye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function rye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, H.jsxs)(aj, {
+ return /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
- children: [/* @__PURE__ */ (0, H.jsxs)(dj, { children: [
- t ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Fk, { children: [
+ t ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ a?.exists ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, H.jsxs)(fj, {
+ a && !a.exists ? /* @__PURE__ */ (0, H.jsxs)(Ik, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, H.jsx)(J, {
size: "small",
@@ -49612,49 +49612,49 @@ function nye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ n.root ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ e.permissions.length ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ e.folder ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ e.quota ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, H.jsx)(cj, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, H.jsx)(Mk, { children: e }, e))]
});
}
-function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, V.useState)(""), [s, c] = (0, V.useState)(!1), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(""), h = GE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function iye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, V.useState)(""), [s, c] = (0, V.useState)(!1), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(""), h = YE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, V.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await z(lR, e.signal);
+ let r = await z(cR, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(R(t));
}
- r = setTimeout(i, uR);
+ r = setTimeout(i, lR);
};
- return r = setTimeout(i, uR), () => {
+ return r = setTimeout(i, lR), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => B(lR, {}, "POST", e), (e) => {
+ m(""), h.run("browser", (e) => B(cR, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(R(e)));
}, b = () => {
- h.run("cancel", (e) => B(`${lR}/cancel`, {}, "POST", e), (e) => {
+ h.run("cancel", (e) => B(`${cR}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(R(e)));
}, x = (e) => {
@@ -49664,7 +49664,7 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => B(Qve, i, "POST", e), (e) => {
+ h.run("login", (e) => B($ve, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -49672,11 +49672,11 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(R(e)));
}, S = () => {
- h.run("logout", (e) => B($ve, {}, "POST", e), (e) => {
+ h.run("logout", (e) => B(eye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(R(e)));
}, C = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -49685,7 +49685,7 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -49694,7 +49694,7 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, H.jsx)(qO, {
+ /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -49705,7 +49705,7 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, H.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, H.jsx)(uj, {
+ children: /* @__PURE__ */ (0, H.jsx)(Pk, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -49718,32 +49718,32 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, H.jsxs)(dj, { children: [/* @__PURE__ */ (0, H.jsx)(fj, {
+ g.logged_in ? /* @__PURE__ */ (0, H.jsxs)(Fk, { children: [/* @__PURE__ */ (0, H.jsx)(Ik, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, H.jsx)(fj, {
+ }) : /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
- p ? T ? /* @__PURE__ */ (0, H.jsx)(cj, { children: p }) : /* @__PURE__ */ (0, H.jsx)(sj, {
+ })] }) : _.available ? /* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),
+ p ? T ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: p }) : /* @__PURE__ */ (0, H.jsx)(jk, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, H.jsx)(pj, {
+ /* @__PURE__ */ (0, H.jsx)(Lk, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, H.jsx)("div", {
className: "flex justify-end",
@@ -49752,13 +49752,13 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, H.jsxs)(aj, { children: [/* @__PURE__ */ (0, H.jsx)(sj, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ ] }) : /* @__PURE__ */ (0, H.jsxs)(kk, { children: [/* @__PURE__ */ (0, H.jsx)(jk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: d || h.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, H.jsx)(WO, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, H.jsx)(Ak, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, H.jsx)(yk, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, H.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -49782,7 +49782,7 @@ function rye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var fR = [
+var dR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -49826,13 +49826,13 @@ var fR = [
["star", "收藏"],
["tags", "主题"]
];
-function iye(e) {
+function aye(e) {
let t = e === "local" ? "" : ue[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var pR = "auto";
-function aye({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, V.useRef)(null), [a, o] = (0, V.useState)(!1), [s, c] = (0, V.useState)(e), [l, u] = iye(n);
+var fR = "auto";
+function oye({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, V.useRef)(null), [a, o] = (0, V.useState)(!1), [s, c] = (0, V.useState)(e), [l, u] = aye(n);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(J, {
ref: i,
variant: "secondary",
@@ -49846,7 +49846,7 @@ function aye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, H.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: e || l }), ((e) => e && fR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: e || l }), ((e) => e && dR.find(([t]) => t === e)?.[1] || u)(e)]
})
}), /* @__PURE__ */ (0, H.jsx)(qh, {
triggerRef: i,
@@ -49854,8 +49854,8 @@ function aye({ value: e, label: t, kind: n = "local", onChange: r }) {
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: aD,
- children: /* @__PURE__ */ (0, H.jsxs)(Kg, {
+ className: lD,
+ children: /* @__PURE__ */ (0, H.jsxs)(Ug, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
@@ -49864,17 +49864,17 @@ function aye({ value: e, label: t, kind: n = "local", onChange: r }) {
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, H.jsx)(R_, {
+ /* @__PURE__ */ (0, H.jsx)(I_, {
"aria-label": "候选图标",
- value: s || pR,
- onChange: (e) => c(e === pR ? "" : e),
+ value: s || fR,
+ onChange: (e) => c(e === fR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: fR.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(z_, {
- value: e || pR,
+ children: dR.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(L_, {
+ value: e || fR,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, H.jsx)(mj, { mark: e || l })
- }, e || pR))
+ children: /* @__PURE__ */ (0, H.jsx)(zk, { mark: e || l })
+ }, e || fR))
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -49896,15 +49896,15 @@ function aye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var oye = "/api/configuration/push-discovery", sye = "/api/configuration/push-discovery/secret";
-function cye({ initial: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(e.prefixes), [o, s] = (0, V.useState)(""), c = GE(), l = HE(), u = n.media_roots, [d, f] = (0, V.useState)(e), p = (e, n) => {
+var sye = "/api/configuration/push-discovery", cye = "/api/configuration/push-discovery/secret";
+function lye({ initial: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(e.prefixes), [o, s] = (0, V.useState)(""), c = YE(), l = KE(), u = n.media_roots, [d, f] = (0, V.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -49914,14 +49914,14 @@ function cye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => B(oye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(R(e)));
+ c.run("save", (e) => B(sye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(R(e)));
},
children: [
- /* @__PURE__ */ (0, H.jsxs)(ij, { children: [
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ok, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -49931,10 +49931,10 @@ function cye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -49944,10 +49944,10 @@ function cye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, H.jsx)(wL, {
+ children: /* @__PURE__ */ (0, H.jsx)(xL, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -49958,30 +49958,30 @@ function cye({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ d.enabled ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsxs)(dj, { children: [d.watch_local ? /* @__PURE__ */ (0, H.jsx)(fj, {
+ children: /* @__PURE__ */ (0, H.jsxs)(Fk, { children: [d.watch_local ? /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, H.jsx)(fj, {
+ }) : null, /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("div", { children: /* @__PURE__ */ (0, H.jsx)(J, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, H.jsx)(pj, {
+ }) }), /* @__PURE__ */ (0, H.jsx)(Lk, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, H.jsx)("div", {
className: "relative",
@@ -49992,17 +49992,17 @@ function cye({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, H.jsx)(sj, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
+ })] }) : /* @__PURE__ */ (0, H.jsx)(jk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, H.jsx)(sj, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),
/* @__PURE__ */ (0, H.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -50010,7 +50010,7 @@ function cye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -50019,19 +50019,19 @@ function cye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: u.map((e) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: sE,
+ /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: dE,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -50049,15 +50049,15 @@ function cye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ o || c.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: o || c.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, H.jsxs)(oj, {
+ /* @__PURE__ */ (0, H.jsxs)(Ak, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, H.jsx)(J, {
onClick: () => {
- c.run("secret", (e) => B(sye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(R(e)));
+ c.run("secret", (e) => B(cye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(R(e)));
},
disabled: !n.available,
...X(c.busy === "secret"),
@@ -50074,8 +50074,8 @@ function cye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var lye = 8e3;
-function uye({ className: e }) {
+var uye = 8e3;
+function dye({ className: e }) {
return /* @__PURE__ */ (0, H.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50088,33 +50088,33 @@ function uye({ className: e }) {
children: /* @__PURE__ */ (0, H.jsx)("use", { href: "#i-folder-search" })
});
}
-var mR = [
+var pR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], dye = (e) => mR.find(([t]) => t === e)?.[1] ?? e, hR = (e) => ue[e] || "database", gR = (e = "") => ({
+], fye = (e) => pR.find(([t]) => t === e)?.[1] ?? e, mR = (e) => ue[e] || "database", hR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function fye(e) {
- let t = e.media_sources?.filter((e) => mR.some(([t]) => t === e.location));
+function pye(e) {
+ let t = e.media_sources?.filter((e) => pR.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || ""
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => gR(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => hR(e));
}
-var pye = (e) => !(e instanceof jt) || e.status !== 400 ? null : e.body?.errors ?? null;
-function mye({ data: e, receipt: t }) {
+var mye = (e) => !(e instanceof jt) || e.status !== 400 ? null : e.body?.errors ?? null;
+function hye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, H.jsx)(hye, {
+ e.editable ? /* @__PURE__ */ (0, H.jsx)(gye, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, H.jsx)(Y, {
@@ -50122,25 +50122,25 @@ function mye({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, H.jsx)(_ye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, H.jsx)(cye, {
+ /* @__PURE__ */ (0, H.jsx)(vye, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, H.jsx)(lye, {
initial: e.push_discovery,
receipt: t
}) : null,
- e.downloads ? /* @__PURE__ */ (0, H.jsx)(eye, {
+ e.downloads ? /* @__PURE__ */ (0, H.jsx)(tye, {
initial: e.downloads,
receipt: t
}) : null
]
});
}
-function hye({ data: e, receipt: t }) {
- let [n, r] = (0, V.useState)(() => fye(e)), [i, a] = (0, V.useState)(String(e.port)), [o, s] = (0, V.useState)(!1), [c, l] = (0, V.useState)([]), [u, d] = (0, V.useState)(""), [f, p] = (0, V.useState)(""), [m, h] = (0, V.useState)(null), [g, _] = (0, V.useState)(null), [v, y] = (0, V.useState)(null), b = (0, V.useRef)(!1), x = (0, V.useRef)(e.revision), S = (0, V.useRef)([]), C = GE();
+function gye({ data: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(() => pye(e)), [i, a] = (0, V.useState)(String(e.port)), [o, s] = (0, V.useState)(!1), [c, l] = (0, V.useState)([]), [u, d] = (0, V.useState)(""), [f, p] = (0, V.useState)(""), [m, h] = (0, V.useState)(null), [g, _] = (0, V.useState)(null), [v, y] = (0, V.useState)(null), b = (0, V.useRef)(!1), x = (0, V.useRef)(e.revision), S = (0, V.useRef)([]), C = YE();
(0, V.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, V.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), lye);
+ let e = setTimeout(() => location.assign(m.url), uye);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -50151,14 +50151,14 @@ function hye({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, gR()]);
+ _(n.length), r((e) => [...e, hR()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await B(Nve, { initial: n[e]?.path ?? "" });
+ let { path: t } = await B(Pve, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, R(t));
@@ -50167,7 +50167,7 @@ function hye({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => B(nR, {
+ r.preventDefault(), p(""), C.run("save", (t) => B(tR, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -50176,18 +50176,18 @@ function hye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = pye(e);
+ let t = mye(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(R(e));
});
};
- if (m) return /* @__PURE__ */ (0, H.jsx)(rj, {
+ if (m) return /* @__PURE__ */ (0, H.jsx)(Dk, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, H.jsx)(aj, { children: /* @__PURE__ */ (0, H.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, H.jsx)(kk, { children: /* @__PURE__ */ (0, H.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, H.jsx)(WA, {
+ /* @__PURE__ */ (0, H.jsx)(fk, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -50197,14 +50197,14 @@ function hye({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, H.jsxs)(aj, { children: [
+ children: [/* @__PURE__ */ (0, H.jsxs)(kk, { children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(lj, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, H.jsx)(Nk, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, H.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -50215,7 +50215,7 @@ function hye({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -50228,14 +50228,14 @@ function hye({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: uye,
+ /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: dye,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...X(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: sE,
+ n.length > 1 ? /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: dE,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -50243,7 +50243,7 @@ function hye({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(FE, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -50252,7 +50252,7 @@ function hye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "媒体库图标" }), /* @__PURE__ */ (0, H.jsx)(aye, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "媒体库图标" }), /* @__PURE__ */ (0, H.jsx)(oye, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -50261,20 +50261,20 @@ function hye({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, H.jsx)(lj, { children: "媒体来源" }), /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Nk, { children: "媒体来源" }), /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: mR.map(([e, t]) => /* @__PURE__ */ (0, H.jsxs)(mP, {
+ children: pR.map(([e, t]) => /* @__PURE__ */ (0, H.jsxs)(cP, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: hR(e) }), t]
+ children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: mR(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, H.jsx)(jE, {
+ e.windows === !1 ? /* @__PURE__ */ (0, H.jsx)(FE, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -50291,18 +50291,18 @@ function hye({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, H.jsx)(Yve, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, H.jsxs)(sj, { children: [
+ A ? /* @__PURE__ */ (0, H.jsx)(Xve, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, H.jsxs)(jk, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, H.jsxs)(uj, {
+ /* @__PURE__ */ (0, H.jsxs)(Pk, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, H.jsx)(sj, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, H.jsx)(jE, {
+ e.windows === !1 ? /* @__PURE__ */ (0, H.jsx)(jk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, H.jsx)(FE, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -50312,7 +50312,7 @@ function hye({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, H.jsx)(qO, {
+ /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -50322,7 +50322,7 @@ function hye({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, H.jsx)(oj, {
+ ] }), /* @__PURE__ */ (0, H.jsx)(Ak, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
@@ -50332,7 +50332,7 @@ function hye({ data: e, receipt: t }) {
})]
});
}
-function gye({ online: e }) {
+function _ye({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, H.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -50356,21 +50356,21 @@ function gye({ online: e }) {
}), "未检测"]
});
}
-function _ye({ data: e }) {
- let t = e.media_sources, n = GE();
- return t ? /* @__PURE__ */ (0, H.jsxs)(rj, {
+function vye({ data: e }) {
+ let t = e.media_sources, n = YE();
+ return t ? /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, H.jsx)(dj, { children: t.map((e, t) => /* @__PURE__ */ (0, H.jsxs)(fj, {
- term: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(mj, { mark: hR(e.location) }), dye(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, H.jsx)(gye, { online: e.online })]
+ /* @__PURE__ */ (0, H.jsx)(Fk, { children: t.map((e, t) => /* @__PURE__ */ (0, H.jsxs)(Ik, {
+ term: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(zk, { mark: mR(e.location) }), fye(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, H.jsx)(_ye, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, H.jsx)(aj, {
+ n.error ? /* @__PURE__ */ (0, H.jsx)(kk, {
divided: !0,
- children: /* @__PURE__ */ (0, H.jsx)(cj, { children: n.error })
+ children: /* @__PURE__ */ (0, H.jsx)(Mk, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
- onClick: () => void n.run("refresh", (e) => iR(e), (e) => _.setQueryData(rR, e)),
+ /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ onClick: () => void n.run("refresh", (e) => rR(e), (e) => _.setQueryData(nR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -50379,13 +50379,13 @@ function _ye({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var vye = {
+var yye = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function yye({ initial: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(""), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(""), [u, d] = (0, V.useState)(!1), [f, p] = (0, V.useState)({}), m = (0, V.useRef)(null), h = GE(), g = (e) => {
+function bye({ initial: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(""), [o, s] = (0, V.useState)(""), [c, l] = (0, V.useState)(""), [u, d] = (0, V.useState)(!1), [f, p] = (0, V.useState)({}), m = (0, V.useRef)(null), h = YE(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
@@ -50405,25 +50405,25 @@ function yye({ initial: e, receipt: t }) {
let t = e instanceof jt ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(R(e));
});
- }, _ = vye[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ }, _ = yye[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, H.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- _ ? /* @__PURE__ */ (0, H.jsx)(sj, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ _ ? /* @__PURE__ */ (0, H.jsx)(jk, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, H.jsx)(qO, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, H.jsx)(tI, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, H.jsx)(jE, {
+ n.mode === "password" ? /* @__PURE__ */ (0, H.jsx)(FE, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -50436,7 +50436,7 @@ function yye({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(jE, {
+ v ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(FE, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -50449,7 +50449,7 @@ function yye({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, H.jsx)(jE, {
+ }), /* @__PURE__ */ (0, H.jsx)(FE, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -50468,9 +50468,9 @@ function yye({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, H.jsx)(oj, {
+ }), v ? /* @__PURE__ */ (0, H.jsx)(Ak, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
@@ -50482,19 +50482,19 @@ function yye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var bye = 2e3, xye = [["quick", "临时链接"], ["named", "命名隧道"]], Sye = {
+var xye = 2e3, Sye = [["quick", "临时链接"], ["named", "命名隧道"]], Cye = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Cye({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, V.useState)(t), [a, o] = (0, V.useState)(e), [s, c] = (0, V.useState)(t.mode), [l, u] = (0, V.useState)(t.hostname), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)({}), h = GE(), g = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
+function wye({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, V.useState)(t), [a, o] = (0, V.useState)(e), [s, c] = (0, V.useState)(t.mode), [l, u] = (0, V.useState)(t.hostname), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)({}), h = YE(), g = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";
(0, V.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- iR(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (_.setQueryData(rR, t), i(t.tunnel), o(t.revision));
+ rR(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (_.setQueryData(nR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, bye);
+ }, xye);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -50513,26 +50513,26 @@ function Cye({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(R(e));
});
};
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), y("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, H.jsxs)(aj, { children: [
- r.named_available ? /* @__PURE__ */ (0, H.jsx)(qw, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(kk, { children: [
+ r.named_available ? /* @__PURE__ */ (0, H.jsx)(Zw, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: Jw,
- children: xye.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(z_, {
+ className: Qw,
+ children: Sye.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(L_, {
value: e,
- className: Yw,
+ className: $w,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, H.jsx)(sj, { children: Sye[v ? "named" : "quick"] }),
- v ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(jE, {
+ /* @__PURE__ */ (0, H.jsx)(jk, { children: Cye[v ? "named" : "quick"] }),
+ v ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(FE, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -50543,7 +50543,7 @@ function Cye({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, H.jsx)(jE, {
+ }), /* @__PURE__ */ (0, H.jsx)(FE, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -50563,7 +50563,7 @@ function Cye({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, H.jsx)(uj, {
+ children: /* @__PURE__ */ (0, H.jsx)(Pk, {
href: r.url,
children: r.url
})
@@ -50573,9 +50573,9 @@ function Cye({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, H.jsxs)(oj, {
+ r.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, H.jsxs)(Ak, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
onClick: () => y("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -50591,24 +50591,24 @@ function Cye({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var wye = [
+var Tye = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Tye({ data: e, receipt: t }) {
+function Eye({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, H.jsx)(Eye, {
+ e.peach_proxy ? /* @__PURE__ */ (0, H.jsx)(Dye, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, H.jsx)(yye, {
+ e.access ? /* @__PURE__ */ (0, H.jsx)(bye, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, H.jsx)(Cye, {
+ e.tunnel ? /* @__PURE__ */ (0, H.jsx)(wye, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -50616,9 +50616,9 @@ function Tye({ data: e, receipt: t }) {
]
});
}
-function Eye({ initial: e, receipt: t }) {
- let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(e.mode), [o, s] = (0, V.useState)(""), c = GE();
- return /* @__PURE__ */ (0, H.jsxs)(rj, {
+function Dye({ initial: e, receipt: t }) {
+ let [n, r] = (0, V.useState)(e), [i, a] = (0, V.useState)(e.mode), [o, s] = (0, V.useState)(""), c = YE();
+ return /* @__PURE__ */ (0, H.jsxs)(Dk, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -50630,25 +50630,25 @@ function Eye({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, H.jsx)(ij, { children: /* @__PURE__ */ (0, H.jsx)(nj, {
+ /* @__PURE__ */ (0, H.jsx)(Ok, { children: /* @__PURE__ */ (0, H.jsx)(Ek, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, H.jsx)(pP, {
+ children: /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: wye.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: Tye.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, H.jsxs)(aj, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, H.jsxs)(kk, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, H.jsx)(jE, {
+ i === "proxy" ? /* @__PURE__ */ (0, H.jsx)(FE, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -50662,10 +50662,10 @@ function Eye({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, H.jsx)(cj, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, H.jsx)(Mk, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, H.jsx)(oj, { children: /* @__PURE__ */ (0, H.jsx)(J, {
+ /* @__PURE__ */ (0, H.jsx)(Ak, { children: /* @__PURE__ */ (0, H.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -50675,10 +50675,10 @@ function Eye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Dye({ receipt: e, reopenTutorial: t }) {
+function Oye({ receipt: e, reopenTutorial: t }) {
let n = Cn({
- queryKey: rR,
- queryFn: ({ signal: e }) => iR(e)
+ queryKey: nR,
+ queryFn: ({ signal: e }) => rR(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, H.jsx)("div", {
className: "configpage",
@@ -50699,22 +50699,22 @@ function Dye({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, H.jsx)(Lve, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, H.jsx)(Rve, { ...i }) : null,
/* @__PURE__ */ (0, H.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, H.jsx)(mye, { ...i }),
+ /* @__PURE__ */ (0, H.jsx)(hye, { ...i }),
o ? /* @__PURE__ */ (0, H.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, H.jsx)(Tye, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, H.jsx)(Eye, { ...i }) : null,
/* @__PURE__ */ (0, H.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, H.jsx)(Hve, {
+ /* @__PURE__ */ (0, H.jsx)(Uve, {
...i,
reopenTutorial: t
})
@@ -50723,14 +50723,14 @@ function Dye({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Oye = "/api/stats", _R = ["stats"], vR = (e) => z(Oye, e);
-async function kye(e) {
+var kye = "/api/stats", gR = ["stats"], _R = (e) => z(kye, e);
+async function Aye(e) {
await _.fetchQuery({
- queryKey: _R,
- queryFn: () => vR(e)
+ queryKey: gR,
+ queryFn: () => _R(e)
});
}
-var yR = (e, t) => t ? Math.round(e / t * 100) : 0, Aye = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, bR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, xR = (e) => (e.max_reached || 0) * 100, jye = (e) => e.kind === "online" ? "在线直接观看" : bR(e) < xR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Mye = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Nye = (e) => Math.max(1, ...e) * 1.1, Pye = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Fye = {
+var vR = (e, t) => t ? Math.round(e / t * 100) : 0, jye = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, yR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, bR = (e) => (e.max_reached || 0) * 100, Mye = (e) => e.kind === "online" ? "在线直接观看" : yR(e) < bR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nye = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pye = (e) => Math.max(1, ...e) * 1.1, Fye = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iye = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -50738,18 +50738,18 @@ var yR = (e, t) => t ? Math.round(e / t * 100) : 0, Aye = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, Iye = (e) => e.map((e) => ({
- name: Fye[e.k] ?? e.k,
+}, Lye = (e) => e.map((e) => ({
+ name: Iye[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), Lye = {
+})).sort((e, t) => t.value - e.value), Rye = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, SR = (e, t = {}) => e.map((e) => ({
+}, xR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), Rye = (e) => SR(e, Lye), zye = [
+})), zye = (e) => xR(e, Rye), Bye = [
[
1,
1,
@@ -50785,49 +50785,49 @@ var yR = (e, t) => t ? Math.round(e / t * 100) : 0, Aye = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], Bye = (e) => zye.map(([t, n, r]) => ({
+], Vye = (e) => Bye.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), Vye = /* @__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 CR(e) {
- return typeof e == "string" && Vye.includes(e);
+})), Hye = /* @__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 SR(e) {
+ return typeof e == "string" && Hye.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var Hye = /* @__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 wR(e) {
- return typeof e == "string" && Hye.has(e);
+var Uye = /* @__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 CR(e) {
+ return typeof e == "string" && Uye.has(e);
}
-function TR(e) {
+function wR(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function ER(e) {
+function TR(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wR(n) || TR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (CR(n) || wR(n)) && (t[n] = e[n]);
return t;
}
-function DR(e) {
+function ER(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, V.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return ER(t);
+ return TR(t);
}
- return typeof e == "object" && !Array.isArray(e) ? ER(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? TR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function OR(e) {
+function DR(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wR(n) || TR(n) || CR(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (CR(n) || wR(n) || SR(n)) && (t[n] = e[n]);
return t;
}
-function Uye(e) {
- return e == null ? null : /*#__PURE__*/ (0, V.isValidElement)(e) ? OR(e.props) : typeof e == "object" && !Array.isArray(e) ? OR(e) : null;
+function Wye(e) {
+ return e == null ? null : /*#__PURE__*/ (0, V.isValidElement)(e) ? DR(e.props) : typeof e == "object" && !Array.isArray(e) ? DR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var Wye = [
+var Gye = [
"children",
"width",
"height",
@@ -50837,25 +50837,25 @@ var Wye = [
"title",
"desc"
];
-function kR() {
- return kR = Object.assign ? Object.assign.bind() : function(e) {
+function OR() {
+ return OR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, kR.apply(null, arguments);
+ }, OR.apply(null, arguments);
}
-function Gye(e, t) {
+function Kye(e, t) {
if (e == null) return {};
- var n, r, i = Kye(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 Kye(e, t) {
+function qye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50864,14 +50864,14 @@ function Kye(e, t) {
}
return n;
}
-var AR = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Gye(e, Wye), d = a || {
+var kR = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Kye(e, Gye), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = za("recharts-surface", o);
- return /*#__PURE__*/ V.createElement("svg", kR({}, OR(u), {
+ return /*#__PURE__*/ V.createElement("svg", OR({}, DR(u), {
className: f,
width: r,
height: i,
@@ -50879,26 +50879,26 @@ var AR = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ V.createElement("title", null, c), /*#__PURE__*/ V.createElement("desc", null, l), n);
-}), qye = ["children", "className"];
-function jR() {
- return jR = Object.assign ? Object.assign.bind() : function(e) {
+}), Jye = ["children", "className"];
+function AR() {
+ return AR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, jR.apply(null, arguments);
+ }, AR.apply(null, arguments);
}
-function Jye(e, t) {
+function Yye(e, t) {
if (e == null) return {};
- var n, r, i = Yye(e, t);
+ var n, r, i = Xye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Yye(e, t) {
+function Xye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50907,39 +50907,39 @@ function Yye(e, t) {
}
return n;
}
-var MR = /*#__PURE__*/ V.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = Jye(e, qye), a = za("recharts-layer", r);
- return /*#__PURE__*/ V.createElement("g", jR({ className: a }, OR(i), { ref: t }), n);
-}), NR = /*#__PURE__*/ (0, V.createContext)(null), Xye = () => (0, V.useContext)(NR);
+var jR = /*#__PURE__*/ V.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = Yye(e, Jye), a = za("recharts-layer", r);
+ return /*#__PURE__*/ V.createElement("g", AR({ className: a }, DR(i), { ref: t }), n);
+}), MR = /*#__PURE__*/ (0, V.createContext)(null), Zye = () => (0, V.useContext)(MR);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function PR(e) {
+function NR(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var FR = Math.cos, IR = Math.sin, LR = Math.sqrt, RR = Math.PI;
-RR / 2;
-var zR = 2 * RR, BR = Math.PI, VR = 2 * BR, HR = 1e-6, Zye = VR - HR;
-function UR(e) {
+var PR = Math.cos, FR = Math.sin, IR = Math.sqrt, LR = Math.PI;
+LR / 2;
+var RR = 2 * LR, zR = Math.PI, BR = 2 * zR, VR = 1e-6, Qye = BR - VR;
+function HR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Qye(e) {
+function $ye(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return UR;
+ if (t > 15) return HR;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
-var WR = class {
+var UR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? UR : Qye(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? HR : $ye(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -50960,18 +50960,18 @@ var WR = class {
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > HR) {
- if (!(Math.abs(u * s - c * l) > HR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > VR) {
+ if (!(Math.abs(u * s - c * l) > VR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((BR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > HR && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((zR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > VR && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > HR || Math.abs(this._y1 - l) > HR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % VR + VR), d > Zye ? 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 > HR && this._append`A${n},${n},0,${+(d >= BR)},${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) > VR || Math.abs(this._y1 - l) > VR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % BR + BR), d > Qye ? 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 > VR && this._append`A${n},${n},0,${+(d >= zR)},${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`;
@@ -50980,10 +50980,10 @@ var WR = class {
return this._;
}
};
-WR.prototype;
+UR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function GR(e) {
+function WR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -50994,18 +50994,18 @@ function GR(e) {
t = e;
}
return e;
- }, () => new WR(t);
+ }, () => new UR(t);
}
Array.prototype.slice;
-function KR(e) {
+function GR(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
-function qR(e) {
+function KR(e) {
this._context = e;
}
-qR.prototype = {
+KR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51028,33 +51028,33 @@ qR.prototype = {
}
}
};
-function JR(e) {
- return new qR(e);
+function qR(e) {
+ return new KR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function YR(e) {
+function JR(e) {
return e[0];
}
-function XR(e) {
+function YR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function ZR(e, t) {
- var n = PR(!0), r = null, i = JR, a = null, o = GR(s);
- e = typeof e == "function" ? e : e === void 0 ? YR : PR(e), t = typeof t == "function" ? t : t === void 0 ? XR : PR(t);
+function XR(e, t) {
+ var n = NR(!0), r = null, i = qR, a = null, o = WR(s);
+ e = typeof e == "function" ? e : e === void 0 ? JR : NR(e), t = typeof t == "function" ? t : t === void 0 ? YR : NR(t);
function s(s) {
- var c, l = (s = KR(s)).length, u, d = !1, f;
+ var c, l = (s = GR(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : PR(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : NR(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : PR(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : NR(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : PR(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : NR(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -51063,11 +51063,11 @@ function ZR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function QR(e, t, n) {
- var r = null, i = PR(!0), a = null, o = JR, s = null, c = GR(l);
- e = typeof e == "function" ? e : e === void 0 ? YR : PR(+e), t = typeof t == "function" ? t : PR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? XR : PR(+n);
+function ZR(e, t, n) {
+ var r = null, i = NR(!0), a = null, o = qR, s = null, c = WR(l);
+ e = typeof e == "function" ? e : e === void 0 ? JR : NR(+e), t = typeof t == "function" ? t : NR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? YR : NR(+n);
function l(l) {
- var u, d, f, p = (l = KR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = GR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@ -51081,20 +51081,20 @@ function QR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return ZR().defined(i).curve(o).context(a);
+ return XR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : PR(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : NR(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : PR(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : NR(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : PR(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : NR(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : PR(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : NR(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : PR(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : NR(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : PR(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : NR(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -51102,7 +51102,7 @@ function QR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : PR(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : NR(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -51111,7 +51111,7 @@ function QR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var $R = class {
+var QR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -51138,70 +51138,70 @@ var $R = class {
this._x0 = e, this._y0 = t;
}
};
-function $ye(e) {
- return new $R(e, !0);
-}
function ebe(e) {
- return new $R(e, !1);
+ return new QR(e, !0);
+}
+function tbe(e) {
+ return new QR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var ez = { draw(e, t) {
- let n = LR(t / RR);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, zR);
-} }, tbe = { draw(e, t) {
- let n = LR(t / 5) / 2;
+var $R = { draw(e, t) {
+ let n = IR(t / LR);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, RR);
+} }, nbe = { draw(e, t) {
+ let n = IR(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();
-} }, tz = LR(1 / 3), nbe = tz * 2, rbe = { draw(e, t) {
- let n = LR(t / nbe), r = n * tz;
+} }, ez = IR(1 / 3), rbe = ez * 2, ibe = { draw(e, t) {
+ let n = IR(t / rbe), r = n * ez;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, ibe = { draw(e, t) {
- let n = LR(t), r = -n / 2;
+} }, abe = { draw(e, t) {
+ let n = IR(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, abe = .8908130915292852, nz = IR(RR / 10) / IR(7 * RR / 10), obe = IR(zR / 10) * nz, sbe = -FR(zR / 10) * nz, cbe = { draw(e, t) {
- let n = LR(t * abe), r = obe * n, i = sbe * n;
+} }, obe = .8908130915292852, tz = FR(LR / 10) / FR(7 * LR / 10), sbe = FR(RR / 10) * tz, cbe = -PR(RR / 10) * tz, lbe = { draw(e, t) {
+ let n = IR(t * obe), r = sbe * n, i = cbe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = zR * t / 5, o = FR(a), s = IR(a);
+ let a = RR * t / 5, o = PR(a), s = FR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, rz = LR(3), lbe = { draw(e, t) {
- let n = -LR(t / (rz * 3));
- e.moveTo(0, n * 2), e.lineTo(-rz * n, -n), e.lineTo(rz * n, -n), e.closePath();
-} }, iz = -.5, az = LR(3) / 2, oz = 1 / LR(12), ube = (oz / 2 + 1) * 3, dbe = { draw(e, t) {
- let n = LR(t / ube), r = n / 2, i = n * oz, a = r, o = n * oz + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(iz * r - az * i, az * r + iz * i), e.lineTo(iz * a - az * o, az * a + iz * o), e.lineTo(iz * s - az * c, az * s + iz * c), e.lineTo(iz * r + az * i, iz * i - az * r), e.lineTo(iz * a + az * o, iz * o - az * a), e.lineTo(iz * s + az * c, iz * c - az * s), e.closePath();
+} }, nz = IR(3), ube = { draw(e, t) {
+ let n = -IR(t / (nz * 3));
+ e.moveTo(0, n * 2), e.lineTo(-nz * n, -n), e.lineTo(nz * n, -n), e.closePath();
+} }, rz = -.5, iz = IR(3) / 2, az = 1 / IR(12), dbe = (az / 2 + 1) * 3, fbe = { draw(e, t) {
+ let n = IR(t / dbe), r = n / 2, i = n * az, a = r, o = n * az + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(rz * r - iz * i, iz * r + rz * i), e.lineTo(rz * a - iz * o, iz * a + rz * o), e.lineTo(rz * s - iz * c, iz * s + rz * c), e.lineTo(rz * r + iz * i, rz * i - iz * r), e.lineTo(rz * a + iz * o, rz * o - iz * a), e.lineTo(rz * s + iz * c, rz * c - iz * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function fbe(e, t) {
- let n = null, r = GR(i);
- e = typeof e == "function" ? e : PR(e || ez), t = typeof t == "function" ? t : PR(t === void 0 ? 64 : +t);
+function pbe(e, t) {
+ let n = null, r = WR(i);
+ e = typeof e == "function" ? e : NR(e || $R), t = typeof t == "function" ? t : NR(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : PR(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : NR(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : PR(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : NR(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
-function sz() {}
+function oz() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function cz(e, t, n) {
+function sz(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
-function lz(e) {
+function cz(e) {
this._context = e;
}
-lz.prototype = {
+cz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51213,7 +51213,7 @@ lz.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: cz(this, this._x1, this._y1);
+ case 3: sz(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -51227,22 +51227,22 @@ lz.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: cz(this, e, t);
+ default: sz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function pbe(e) {
- return new lz(e);
+function mbe(e) {
+ return new cz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function uz(e) {
+function lz(e) {
this._context = e;
}
-uz.prototype = {
- areaStart: sz,
- areaEnd: sz,
+lz.prototype = {
+ areaStart: oz,
+ areaEnd: oz,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@ -51268,20 +51268,20 @@ uz.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: cz(this, e, t);
+ default: sz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function mbe(e) {
- return new uz(e);
+function hbe(e) {
+ return new lz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function dz(e) {
+function uz(e) {
this._context = e;
}
-dz.prototype = {
+uz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51308,22 +51308,22 @@ dz.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: cz(this, e, t);
+ default: sz(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function hbe(e) {
- return new dz(e);
+function gbe(e) {
+ return new uz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function fz(e) {
+function dz(e) {
this._context = e;
}
-fz.prototype = {
- areaStart: sz,
- areaEnd: sz,
+dz.prototype = {
+ areaStart: oz,
+ areaEnd: oz,
lineStart: function() {
this._point = 0;
},
@@ -51334,30 +51334,30 @@ fz.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function gbe(e) {
- return new fz(e);
+function _be(e) {
+ return new dz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function pz(e) {
+function fz(e) {
return e < 0 ? -1 : 1;
}
-function mz(e, t, n) {
+function pz(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return (pz(a) + pz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (fz(a) + fz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function hz(e, t) {
+function mz(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function gz(e, t, n) {
+function hz(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
-function _z(e) {
+function gz(e) {
this._context = e;
}
-_z.prototype = {
+gz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51372,7 +51372,7 @@ _z.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: gz(this, this._t0, hz(this, this._t0));
+ case 3: hz(this, this._t0, mz(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -51387,24 +51387,24 @@ _z.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, gz(this, hz(this, n = mz(this, e, t)), n);
+ this._point = 3, hz(this, mz(this, n = pz(this, e, t)), n);
break;
- default: gz(this, this._t0, n = mz(this, e, t));
+ default: hz(this, this._t0, n = pz(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function vz(e) {
- this._context = new yz(e);
+function _z(e) {
+ this._context = new vz(e);
}
-(vz.prototype = Object.create(_z.prototype)).point = function(e, t) {
- _z.prototype.point.call(this, t, e);
+(_z.prototype = Object.create(gz.prototype)).point = function(e, t) {
+ gz.prototype.point.call(this, t, e);
};
-function yz(e) {
+function vz(e) {
this._context = e;
}
-yz.prototype = {
+vz.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -51418,18 +51418,18 @@ yz.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function _be(e) {
- return new _z(e);
-}
function vbe(e) {
- return new vz(e);
+ return new gz(e);
+}
+function ybe(e) {
+ return new _z(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function bz(e) {
+function yz(e) {
this._context = e;
}
-bz.prototype = {
+yz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51443,7 +51443,7 @@ bz.prototype = {
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = xz(e), i = xz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
+ else for (var r = bz(e), i = bz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -51451,7 +51451,7 @@ bz.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function xz(e) {
+function bz(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@ -51459,15 +51459,15 @@ function xz(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 ybe(e) {
- return new bz(e);
+function bbe(e) {
+ return new yz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function Sz(e, t) {
+function xz(e, t) {
this._context = e, this._t = t;
}
-Sz.prototype = {
+xz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -51495,78 +51495,78 @@ Sz.prototype = {
this._x = e, this._y = t;
}
};
-function bbe(e) {
- return new Sz(e, .5);
-}
function xbe(e) {
- return new Sz(e, 0);
+ return new xz(e, .5);
}
function Sbe(e) {
- return new Sz(e, 1);
+ return new xz(e, 0);
+}
+function Cbe(e) {
+ return new xz(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function Cz(e, t) {
+function Sz(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
-function wz(e) {
+function Cz(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function Cbe(e, t) {
+function wbe(e, t) {
return e[t];
}
-function wbe(e) {
+function Tbe(e) {
let t = [];
return t.key = e, t;
}
-function Tbe() {
- var e = PR([]), t = wz, n = Cz, r = Cbe;
+function Ebe() {
+ var e = NR([]), t = Cz, n = Sz, r = wbe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), wbe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Tbe), 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 = KR(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = GR(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : PR(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : NR(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : PR(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : NR(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? wz : typeof e == "function" ? e : PR(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? Cz : typeof e == "function" ? e : NR(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? Cz, i) : n;
+ return arguments.length ? (n = e ?? Sz, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Ebe(e, t) {
+function Dbe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- Cz(e, t);
+ Sz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Dbe(e, t) {
+function Obe(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- Cz(e, t);
+ Sz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Obe(e, t) {
+function kbe(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) {
@@ -51578,53 +51578,53 @@ function Obe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, Cz(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, Sz(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function Tz(e) {
+function wz(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var kbe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function Ez(e) {
+var Abe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function Tz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : kbe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Abe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function Dz(e) {
+function Ez(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
-function Oz(e) {
+function Dz(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function Abe(e) {
- return e == null ? "" : kz(e);
+function jbe(e) {
+ return e == null ? "" : Oz(e);
}
-function kz(e) {
+function Oz(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(kz).join(",");
- if (Oz(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(Oz).join(",");
+ if (Dz(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
-function Az(e) {
- if (Array.isArray(e)) return e.map(Dz);
+function kz(e) {
+ if (Array.isArray(e)) return e.map(Ez);
if (typeof e == "symbol") return [e];
- e = Abe(e);
+ e = jbe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -51652,100 +51652,100 @@ function Az(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function jz(e, t, n) {
+function Az(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (Tz(t)) return n;
+ if (wz(t)) return n;
let r = e[t];
- return r === void 0 ? Ez(t) && !Object.hasOwn(e, t) ? jz(e, Az(t), n) : n : r;
+ return r === void 0 ? Tz(t) && !Object.hasOwn(e, t) ? Az(e, kz(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = Dz(t));
+ typeof t == "number" && (t = Ez(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return jbe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Tz(t)) return n;
+ if (Array.isArray(t)) return Mbe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), wz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function jbe(e, t, n) {
+function Mbe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || Tz(t[e])) return n;
+ if (r == null || wz(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var Mbe = 4;
-function Mz(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Mbe), n = Math.round(e * t) / t;
+var Nbe = 4;
+function jz(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nbe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function Nz(e) {
+function Mz(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Mz(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + jz(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var Pz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Fz = (e) => typeof e == "number" && e != +e, Iz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Fz(e), Lz = (e) => Z(e) || typeof e == "string", Nbe = 0, Rz = (e) => {
- var t = ++Nbe;
+var Nz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Pz = (e) => typeof e == "number" && e != +e, Fz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Pz(e), Iz = (e) => Z(e) || typeof e == "string", Pbe = 0, Lz = (e) => {
+ var t = ++Pbe;
return `${e || ""}${t}`;
-}, zz = function(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];
if (!Z(e) && typeof e != "string") return n;
var i;
- if (Iz(e)) {
+ if (Fz(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return Fz(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, Bz = (e) => {
+ return Pz(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, zz = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
-function Vz(e, t, n) {
- return Z(e) && Z(t) ? Mz(e + n * (t - e)) : t;
+function Bz(e, t, n) {
+ return Z(e) && Z(t) ? jz(e + n * (t - e)) : t;
}
-function Hz(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : jz(e, t)) === n);
+function Vz(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Az(e, t)) === n);
}
-var Uz = (e) => e == null, Wz = (e) => Uz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function Gz(e) {
+var Hz = (e) => e == null, Uz = (e) => Hz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function Wz(e) {
return e != null;
}
-function Kz() {}
+function Gz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var Pbe = [
+var Fbe = [
"type",
"size",
"sizeType"
];
-function qz() {
- return qz = Object.assign ? Object.assign.bind() : function(e) {
+function Kz() {
+ return Kz = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, qz.apply(null, arguments);
+ }, Kz.apply(null, arguments);
}
-function Jz(e, t) {
+function qz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51755,30 +51755,30 @@ function Jz(e, t) {
}
return n;
}
-function Yz(e) {
+function Jz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Jz(Object(n), !0).forEach(function(t) {
- Fbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Jz(Object(n)).forEach(function(t) {
+ t % 2 ? qz(Object(n), !0).forEach(function(t) {
+ Ibe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Fbe(e, t, n) {
- return (t = Ibe(t)) in e ? Object.defineProperty(e, t, {
+function Ibe(e, t, n) {
+ return (t = Lbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ibe(e) {
- var t = Lbe(e, "string");
+function Lbe(e) {
+ var t = Rbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Lbe(e, t) {
+function Rbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51788,16 +51788,16 @@ function Lbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Rbe(e, t) {
+function zbe(e, t) {
if (e == null) return {};
- var n, r, i = zbe(e, t);
+ var n, r, i = Bbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function zbe(e, t) {
+function Bbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51806,68 +51806,68 @@ function zbe(e, t) {
}
return n;
}
-var Xz = {
- symbolCircle: ez,
- symbolCross: tbe,
- symbolDiamond: rbe,
- symbolSquare: ibe,
- symbolStar: cbe,
- symbolTriangle: lbe,
- symbolWye: dbe
-}, Bbe = Math.PI / 180, Vbe = (e) => Xz[`symbol${Wz(e)}`] || ez, Hbe = (e, t, n) => {
+var Yz = {
+ symbolCircle: $R,
+ symbolCross: nbe,
+ symbolDiamond: ibe,
+ symbolSquare: abe,
+ symbolStar: lbe,
+ symbolTriangle: ube,
+ symbolWye: fbe
+}, Vbe = Math.PI / 180, Hbe = (e) => Yz[`symbol${Uz(e)}`] || $R, Ube = (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 * Bbe;
+ var r = 18 * Vbe;
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;
}
-}, Ube = (e, t) => {
- Xz[`symbol${Wz(e)}`] = t;
-}, Zz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = Yz(Yz({}, Rbe(e, Pbe)), {}, {
+}, Wbe = (e, t) => {
+ Yz[`symbol${Uz(e)}`] = t;
+}, Xz = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = Jz(Jz({}, zbe(e, Fbe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = Vbe(a), t = fbe().type(e).size(Hbe(n, r, a))();
+ var e = Hbe(a), t = pbe().type(e).size(Ube(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = OR(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ V.createElement("path", qz({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = DR(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ V.createElement("path", Kz({}, u, {
className: za("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-Zz.registerSymbol = Ube;
+Xz.registerSymbol = Wbe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var Qz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, $z = (e, t) => {
+var Zz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, Qz = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, V.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- CR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ SR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, Wbe = (e, t, n) => (r) => (e(t, n, r), null), eB = (e, t, n) => {
+}, Gbe = (e, t, n) => (r) => (e(t, n, r), null), $z = (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];
- CR(i) && typeof a == "function" && (r ||= {}, r[i] = Wbe(a, t, n));
+ SR(i) && typeof a == "function" && (r ||= {}, r[i] = Gbe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function tB(e, t) {
+function eB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51877,30 +51877,30 @@ function tB(e, t) {
}
return n;
}
-function Gbe(e) {
+function Kbe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tB(Object(n), !0).forEach(function(t) {
- Kbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tB(Object(n)).forEach(function(t) {
+ t % 2 ? eB(Object(n), !0).forEach(function(t) {
+ qbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Kbe(e, t, n) {
- return (t = qbe(t)) in e ? Object.defineProperty(e, t, {
+function qbe(e, t, n) {
+ return (t = Jbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qbe(e) {
- var t = Jbe(e, "string");
+function Jbe(e) {
+ var t = Ybe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jbe(e, t) {
+function Ybe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51910,22 +51910,22 @@ function Jbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function nB(e, t) {
- var n = Gbe({}, e), r = t;
+function tB(e, t) {
+ var n = Kbe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function rB() {
- return rB = Object.assign ? Object.assign.bind() : function(e) {
+function nB() {
+ return nB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, rB.apply(null, arguments);
+ }, nB.apply(null, arguments);
}
-function iB(e, t) {
+function rB(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51935,30 +51935,30 @@ function iB(e, t) {
}
return n;
}
-function aB(e) {
+function iB(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? iB(Object(n), !0).forEach(function(t) {
- Ybe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iB(Object(n)).forEach(function(t) {
+ t % 2 ? rB(Object(n), !0).forEach(function(t) {
+ Xbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rB(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ybe(e, t, n) {
- return (t = Xbe(t)) in e ? Object.defineProperty(e, t, {
+function Xbe(e, t, n) {
+ return (t = Zbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xbe(e) {
- var t = Zbe(e, "string");
+function Zbe(e) {
+ var t = Qbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zbe(e, t) {
+function Qbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51968,7 +51968,7 @@ function Zbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var oB = 32, Qbe = {
+var aB = 32, $be = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -51976,20 +51976,20 @@ var oB = 32, Qbe = {
verticalAlign: "middle",
labelStyle: {}
};
-function $be(e) {
+function exe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function exe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = oB / 2, a = oB / 6, o = oB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function txe(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = aB / 2, a = aB / 6, o = aB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ V.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: $be(t.payload),
+ strokeDasharray: exe(t.payload),
x1: 0,
y1: i,
- x2: oB,
+ x2: aB,
y2: i,
className: "recharts-legend-icon"
});
@@ -51999,35 +51999,35 @@ function exe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${oB}M${2 * o},${i}
+ H${aB}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ V.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${oB / 8}h${oB}v${oB * 3 / 4}h${-oB}z`,
+ d: `M0,${aB / 8}h${aB}v${aB * 3 / 4}h${-aB}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ V.isValidElement(t.legendIcon)) {
- var l = aB({}, t);
+ var l = iB({}, t);
return delete l.legendIcon, /*#__PURE__*/ V.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ V.createElement(Zz, {
+ return /*#__PURE__*/ V.createElement(Xz, {
fill: s,
cx: i,
cy: i,
- size: oB,
+ size: aB,
sizeType: "diameter",
type: c
});
}
-function txe(e) {
+function nxe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: oB,
- height: oB
+ width: aB,
+ height: aB
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -52043,20 +52043,20 @@ function txe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? aB({}, s) : {};
+ var p = typeof s == "object" ? iB({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ V.createElement("li", rB({
+ return /*#__PURE__*/ V.createElement("li", nB({
className: f,
style: l,
key: `legend-item-${r}`
- }, eB(e, t, r)), /*#__PURE__*/ V.createElement(AR, {
+ }, $z(e, t, r)), /*#__PURE__*/ V.createElement(kR, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ V.createElement(exe, {
+ }, /*#__PURE__*/ V.createElement(txe, {
data: t,
iconType: o,
inactiveColor: a
@@ -52066,8 +52066,8 @@ function txe(e) {
}, m));
});
}
-var nxe = (e) => {
- var t = nB(e, Qbe), { payload: n, layout: r, align: i } = t;
+var rxe = (e) => {
+ var t = tB(e, $be), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -52077,11 +52077,11 @@ var nxe = (e) => {
return /*#__PURE__*/ V.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ V.createElement(txe, rB({}, t, { payload: n })));
+ }, /*#__PURE__*/ V.createElement(nxe, nB({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function rxe(e, t) {
+function ixe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -52091,77 +52091,77 @@ function rxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function ixe(e, t) {
+function axe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function sB(e) {
+function oB(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function axe(e) {
+function oxe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function cB(e) {
- return e != null && typeof e != "function" && axe(e.length);
+function sB(e) {
+ return e != null && typeof e != "function" && oxe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function oxe(e) {
+function sxe(e) {
return function(t) {
- return jz(t, e);
+ return Az(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function lB(e) {
+function cB(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function sxe(e) {
+function cxe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function cxe(e) {
+function lxe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function uB(e) {
+function lB(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var lxe = "[object RegExp]", dB = "[object String]", fB = "[object Number]", pB = "[object Boolean]", mB = "[object Arguments]", uxe = "[object Symbol]", dxe = "[object Date]", fxe = "[object Map]", pxe = "[object Set]", mxe = "[object Array]", hxe = "[object ArrayBuffer]", gxe = "[object Object]", _xe = "[object DataView]", vxe = "[object Uint8Array]", yxe = "[object Uint8ClampedArray]", bxe = "[object Uint16Array]", xxe = "[object Uint32Array]", Sxe = "[object Int8Array]", Cxe = "[object Int16Array]", wxe = "[object Int32Array]", Txe = "[object Float32Array]", Exe = "[object Float64Array]", hB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var uxe = "[object RegExp]", uB = "[object String]", dB = "[object Number]", fB = "[object Boolean]", pB = "[object Arguments]", dxe = "[object Symbol]", fxe = "[object Date]", pxe = "[object Map]", mxe = "[object Set]", hxe = "[object Array]", gxe = "[object ArrayBuffer]", _xe = "[object Object]", vxe = "[object DataView]", yxe = "[object Uint8Array]", bxe = "[object Uint8ClampedArray]", xxe = "[object Uint16Array]", Sxe = "[object Uint32Array]", Cxe = "[object Int8Array]", wxe = "[object Int16Array]", Txe = "[object Int32Array]", Exe = "[object Float32Array]", Dxe = "[object Float64Array]", mB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Dxe(e) {
- return hB.Buffer !== void 0 && hB.Buffer.isBuffer(e);
+function Oxe(e) {
+ return mB.Buffer !== void 0 && mB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Oxe(e, t) {
- return gB(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function kxe(e, t) {
+ return hB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function gB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function hB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (lB(e)) return e;
+ if (cB(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = gB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = hB(e[a], a, n, r, i);
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
}
if (e instanceof Date) return new Date(e.getTime());
@@ -52172,132 +52172,132 @@ function gB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
if (e instanceof Map) {
let t = /* @__PURE__ */ new Map();
r.set(e, t);
- for (let [a, o] of e) t.set(a, gB(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, hB(o, a, n, r, i));
return t;
}
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(gB(a, void 0, n, r, i));
+ for (let a of e) t.add(hB(a, void 0, n, r, i));
return t;
}
- if (Dxe(e)) return e.subarray();
- if (sxe(e)) {
+ if (Oxe(e)) return e.subarray();
+ if (cxe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = gB(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = hB(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
if (e instanceof DataView) {
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
if (typeof File < "u" && e instanceof File) {
let t = new File([e], e.name, { type: e.type });
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
if (typeof Blob < "u" && e instanceof Blob) {
let t = new Blob([e], { type: e.type });
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
if (e instanceof Error) {
let t = structuredClone(e);
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, _B(t, e, n, r, i), t;
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, gB(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
- if (typeof e == "object" && kxe(e)) {
+ if (typeof e == "object" && Axe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), _B(t, e, n, r, i), t;
+ return r.set(e, t), gB(t, e, n, r, i), t;
}
return e;
}
-function _B(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...cxe(t)];
+function gB(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...lxe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = gB(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = hB(t[s], s, n, r, i));
}
}
-function kxe(e) {
- switch (uB(e)) {
- case mB:
- case mxe:
- case hxe:
- case _xe:
+function Axe(e) {
+ switch (lB(e)) {
case pB:
- case dxe:
- case Txe:
+ case hxe:
+ case gxe:
+ case vxe:
+ case fB:
+ case fxe:
case Exe:
- case Sxe:
+ case Dxe:
case Cxe:
case wxe:
- case fxe:
- case fB:
- case gxe:
- case lxe:
+ case Txe:
case pxe:
case dB:
+ case _xe:
case uxe:
- case vxe:
+ case mxe:
+ case uB:
+ case dxe:
case yxe:
case bxe:
- case xxe: return !0;
+ case xxe:
+ case Sxe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function Axe(e) {
- return gB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function jxe(e) {
+ return hB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function vB(e, t) {
+function _B(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function yB(e) {
+function vB(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function bB(e, t, n) {
- return typeof n == "function" ? xB(e, t, function e(t, r, i, a, o, s) {
+function yB(e, t, n) {
+ return typeof n == "function" ? bB(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? xB(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : bB(e, t, () => void 0);
+ return c === void 0 ? bB(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : yB(e, t, () => void 0);
}
-function xB(e, t, n, r, i = !1) {
+function bB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return jxe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? xB(e, { ...t }, n, r, i) : vB(e, t);
- default: return yB(e) && i ? typeof t != "string" || t === "" : vB(e, t);
+ case "object": return Mxe(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? bB(e, { ...t }, n, r, i) : _B(e, t);
+ default: return vB(e) && i ? typeof t != "string" || t === "" : _B(e, t);
}
}
-function jxe(e, t, n, r, i = !1) {
+function Mxe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return SB(e, t, n, r);
- if (t instanceof Map) return Mxe(e, t, n, r);
- if (t instanceof Set) return Nxe(e, t, n, r);
+ if (Array.isArray(t)) return xB(e, t, n, r);
+ if (t instanceof Map) return Nxe(e, t, n, r);
+ if (t instanceof Set) return Pxe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) lB(e) && (e = Object(e));
+ if (i) cB(e) && (e = Object(e));
else {
- let t = uB(e);
+ let t = lB(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -52313,13 +52313,13 @@ function jxe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function Mxe(e, t, n, r) {
+function Nxe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function SB(e, t, n, r) {
+function xB(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -52337,40 +52337,40 @@ function SB(e, t, n, r) {
}
return !0;
}
-function Nxe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && SB([...e], [...t], n, r);
+function Pxe(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && xB([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function CB(e, t) {
- return bB(e, t, () => void 0);
+function SB(e, t) {
+ return yB(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function Pxe(e) {
- return e = Axe(e), (t) => CB(t, e);
+function Fxe(e) {
+ return e = jxe(e), (t) => SB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function Fxe(e, t) {
- return Oxe(e, (n, r, i, a) => {
+function Ixe(e, t) {
+ return kxe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (uB(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (lB(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), _B(t, e, i, a), t;
+ return a.set(e, t), gB(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case fB:
case dB:
- case pB: {
+ case uB:
+ case fB: {
let t = new e.constructor(e?.valueOf());
- return _B(t, e), t;
+ return gB(t, e), t;
}
- case mB: {
+ case pB: {
let t = {};
- return _B(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return gB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -52379,79 +52379,79 @@ function Fxe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function Ixe(e) {
- return Fxe(e);
+function Lxe(e) {
+ return Ixe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var Lxe = /^(?:0|[1-9]\d*)$/;
-function wB(e, t = 2 ** 53 - 1) {
+var Rxe = /^(?:0|[1-9]\d*)$/;
+function CB(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 Lxe.test(e);
+ case "string": return Rxe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function Rxe(e) {
- return typeof e == "object" && !!e && uB(e) === "[object Arguments]";
+function zxe(e) {
+ return typeof e == "object" && !!e && lB(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function zxe(e, t) {
+function Bxe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && Ez(t) && !(t in Object(e)) ? Az(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && Tz(t) && !(t in Object(e)) ? kz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = Dz(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Rxe(r)) && wB(t) && Number(t) < r.length)) return !1;
+ let t = Ez(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zxe(r)) && CB(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function Bxe(e, t) {
+function Vxe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = Dz(e);
+ case "number": e = Ez(e);
}
- return t = Ixe(t), function(n) {
- let r = jz(n, e);
- return r === void 0 ? zxe(n, e) : t === void 0 ? r === void 0 : CB(r, t);
+ return t = Lxe(t), function(n) {
+ let r = Az(n, e);
+ return r === void 0 ? Bxe(n, e) : t === void 0 ? r === void 0 : SB(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function TB(e) {
- if (e == null) return sB;
+function wB(e) {
+ if (e == null) return oB;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? Bxe(e[0], e[1]) : Pxe(e);
- default: return oxe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? Vxe(e[0], e[1]) : Fxe(e);
+ default: return sxe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function Vxe(e) {
+function Hxe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function EB(e, t = sB) {
- return cB(e) ? rxe(Array.from(e), ixe(TB(t), 1)).map(Vxe) : [];
+function TB(e, t = oB) {
+ return sB(e) ? ixe(Array.from(e), axe(wB(t), 1)).map(Hxe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function DB(e, t, n) {
- return t === !0 ? EB(e, n) : typeof t == "function" ? EB(e, t) : e;
+function EB(e, t, n) {
+ return t === !0 ? TB(e, n) : typeof t == "function" ? TB(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var OB = /* @__PURE__ */ gt(((e) => {
+var Uxe = /* @__PURE__ */ gt(((e) => {
var t = wt(), n = tl();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -52496,60 +52496,60 @@ var OB = /* @__PURE__ */ gt(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), kB = /* @__PURE__ */ gt(((e, t) => {
- t.exports = OB();
-})), AB = /*#__PURE__*/ (0, V.createContext)(null), jB = kB(), MB = (e) => e, NB = () => {
- var e = (0, V.useContext)(AB);
- return e ? e.store.dispatch : MB;
-}, PB = () => {}, FB = () => PB, IB = (e, t) => e === t;
+})), Wxe = /* @__PURE__ */ gt(((e, t) => {
+ t.exports = Uxe();
+})), DB = /*#__PURE__*/ (0, V.createContext)(null), Gxe = Wxe(), OB = (e) => e, kB = () => {
+ var e = (0, V.useContext)(DB);
+ return e ? e.store.dispatch : OB;
+}, AB = () => {}, jB = () => AB, MB = (e, t) => e === t;
function Q(e) {
- var t = (0, V.useContext)(AB), n = (0, V.useMemo)(() => t ? (t) => {
+ var t = (0, V.useContext)(DB), n = (0, V.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : PB, [t, e]);
- return (0, jB.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : FB, t ? t.store.getState : PB, t ? t.store.getState : PB, n, IB);
+ } : AB, [t, e]);
+ return (0, Gxe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : jB, t ? t.store.getState : AB, t ? t.store.getState : AB, n, MB);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function LB(e, t = `expected a function, instead received ${typeof e}`) {
+function NB(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function RB(e, t = `expected an object, instead received ${typeof e}`) {
+function PB(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function zB(e, t = "expected all items to be functions, instead received the following types: ") {
+function FB(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 BB = (e) => Array.isArray(e) ? e : [e];
-function VB(e) {
+var IB = (e) => Array.isArray(e) ? e : [e];
+function LB(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return zB(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return FB(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function HB(e, t) {
+function RB(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var UB = class {
+var zB = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, WB = typeof WeakRef < "u" ? WeakRef : UB, GB = 0, KB = 1;
-function qB() {
+}, BB = typeof WeakRef < "u" ? WeakRef : zB, VB = 0, HB = 1;
+function UB() {
return {
- s: GB,
+ s: VB,
v: void 0,
o: null,
p: null
};
}
-function JB(e, t = {}) {
- let n = qB(), { resultEqualityCheck: r } = t, i, a = 0;
+function WB(e, t = {}) {
+ let n = UB(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -52558,43 +52558,43 @@ function JB(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = qB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = UB(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = qB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = UB(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === KB) c = t.v;
+ if (t.s === HB) 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 WB(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new BB(c) : c;
}
- return s.s = KB, s.v = c, c;
+ return s.s = HB, s.v = c, c;
}
return o.clearCache = () => {
- n = qB(), o.resetResultsCount();
+ n = UB(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function YB(e, ...t) {
+function GB(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()), LB(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = JB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), NB(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = WB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = BB(c), p = BB(u), m = VB(e), h = s(function() {
+ }, f = IB(c), p = IB(u), m = LB(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = HB(m, arguments);
+ let e = RB(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -52616,14 +52616,14 @@ function YB(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ YB(JB), XB = Object.assign((e, t = $) => {
- RB(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ GB(WB), KB = Object.assign((e, t = $) => {
+ PB(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: () => XB });
+}, { withTypes: () => KB });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function ZB(e, t = 1) {
+function qB(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -52634,17 +52634,17 @@ function ZB(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function QB(e, t, n) {
- return yB(n) && (typeof t == "number" && cB(n) && wB(t) && t < n.length || typeof t == "string" && t in n) ? vB(n[t], e) : !1;
+function JB(e, t, n) {
+ return vB(n) && (typeof t == "number" && sB(n) && CB(t) && t < n.length || typeof t == "string" && t in n) ? _B(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function $B(e) {
+function YB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var eV = (e, t, n) => {
+var XB = (e, t, n) => {
if (e !== t) {
- let r = $B(e), i = $B(t);
+ let r = YB(e), i = YB(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -52652,15 +52652,15 @@ var eV = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, tV = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, nV = /^\w*$/;
-function rV(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Oz(e) ? !0 : typeof e == "string" && (nV.test(e) || !tV.test(e)) || t != null && Object.hasOwn(t, e);
+}, ZB = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, QB = /^\w*$/;
+function $B(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Dz(e) ? !0 : typeof e == "string" && (QB.test(e) || !ZB.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function iV(e, t, n, r) {
+function eV(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = cB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = sB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -52668,16 +52668,16 @@ function iV(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) || rV(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || $B(e) ? e : {
key: e,
- path: Az(e)
+ path: kz(e)
}));
return e.map((e) => ({
original: e,
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = eV(e.criteria[r], t.criteria[r], n[r]);
+ let i = XB(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -52685,25 +52685,25 @@ function iV(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function aV(e, ...t) {
+function tV(e, ...t) {
let n = t.length;
- return n > 1 && QB(e, t[0], t[1]) ? t = [] : n > 2 && QB(t[0], t[1], t[2]) && (t = [t[0]]), iV(e, ZB(t), ["asc"]);
+ return n > 1 && JB(e, t[0], t[1]) ? t = [] : n > 2 && JB(t[0], t[1], t[2]) && (t = [t[0]]), eV(e, qB(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var oV = (e) => e.legend.settings, sV = (e) => e.legend.size, cV = $([(e) => e.legend.payload, oV], (e, t) => {
+var nV = (e) => e.legend.settings, rV = (e) => e.legend.size, iV = $([(e) => e.legend.payload, nV], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? aV(r, n) : r;
+ return n ? tV(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function lV() {
- return Q(cV);
+function aV() {
+ return Q(iV);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var uV = 1;
-function dV() {
+var oV = 1;
+function sV() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, V.useState)({
height: 0,
left: 0,
@@ -52718,7 +52718,7 @@ function dV() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > uV || Math.abs(i.left - t.left) > uV || Math.abs(i.top - t.top) > uV || Math.abs(i.width - t.width) > uV) && n({
+ (Math.abs(i.height - t.height) > oV || Math.abs(i.left - t.left) > oV || Math.abs(i.top - t.top) > oV || Math.abs(i.width - t.width) > oV) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -52735,26 +52735,26 @@ function dV() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function fV(e) {
+function cV(e) {
return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
-var pV = typeof Symbol == "function" && Symbol.observable || "@@observable", mV = () => Math.random().toString(36).substring(7).split("").join("."), hV = {
- INIT: `@@redux/INIT${/* @__PURE__ */ mV()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ mV()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${mV()}`
+var lV = typeof Symbol == "function" && Symbol.observable || "@@observable", uV = () => Math.random().toString(36).substring(7).split("").join("."), dV = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ uV()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ uV()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${uV()}`
};
-function gV(e) {
+function fV(e) {
if (typeof e != "object" || !e) return !1;
let t = e;
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
}
-function _V(e, t, n) {
- if (typeof e != "function") throw Error(fV(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(fV(0));
+function pV(e, t, n) {
+ if (typeof e != "function") throw Error(cV(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(cV(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(fV(1));
- return n(_V)(e, t);
+ if (typeof n != "function") throw Error(cV(1));
+ return n(pV)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -52763,27 +52763,27 @@ function _V(e, t, n) {
}));
}
function u() {
- if (c) throw Error(fV(3));
+ if (c) throw Error(cV(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(fV(4));
- if (c) throw Error(fV(5));
+ if (typeof e != "function") throw Error(cV(4));
+ if (c) throw Error(cV(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(fV(6));
+ if (c) throw Error(cV(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!gV(e)) throw Error(fV(7));
- if (e.type === void 0) throw Error(fV(8));
- if (typeof e.type != "string") throw Error(fV(17));
- if (c) throw Error(fV(9));
+ if (!fV(e)) throw Error(cV(7));
+ if (e.type === void 0) throw Error(cV(8));
+ if (typeof e.type != "string") throw Error(cV(17));
+ if (c) throw Error(cV(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -52794,41 +52794,41 @@ function _V(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(fV(10));
- r = e, f({ type: hV.REPLACE });
+ if (typeof e != "function") throw Error(cV(10));
+ r = e, f({ type: dV.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(fV(11));
+ if (typeof t != "object" || !t) throw Error(cV(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [pV]() {
+ [lV]() {
return this;
}
};
}
- return f({ type: hV.INIT }), {
+ return f({ type: dV.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [pV]: m
+ [lV]: m
};
}
-function vV(e) {
+function mV(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: hV.INIT }) === void 0) throw Error(fV(12));
- if (n(void 0, { type: hV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(fV(13));
+ if (n(void 0, { type: dV.INIT }) === void 0) throw Error(cV(12));
+ if (n(void 0, { type: dV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(cV(13));
});
}
-function yV(e) {
+function hV(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -52836,7 +52836,7 @@ function yV(e) {
}
let r = Object.keys(n), i;
try {
- vV(n);
+ mV(n);
} catch (e) {
i = e;
}
@@ -52845,124 +52845,124 @@ function yV(e) {
let a = !1, o = {};
for (let i = 0; i < r.length; i++) {
let s = r[i], c = n[s], l = e[s], u = c(l, t);
- if (u === void 0) throw t && t.type, Error(fV(14));
+ if (u === void 0) throw t && t.type, Error(cV(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function bV(...e) {
+function gV(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function xV(...e) {
+function _V(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(fV(15));
+ throw Error(cV(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = bV(...e.map((e) => e(o)))(i.dispatch), {
+ return a = gV(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function SV(e) {
- return gV(e) && "type" in e && typeof e.type == "string";
+function vV(e) {
+ return fV(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var CV = Symbol.for("immer-nothing"), wV = Symbol.for("immer-draftable"), TV = Symbol.for("immer-state");
-function EV(e, ...t) {
+var yV = Symbol.for("immer-nothing"), bV = Symbol.for("immer-draftable"), xV = Symbol.for("immer-state");
+function SV(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var DV = Object, OV = DV.getPrototypeOf, kV = "constructor", AV = "prototype", jV = "configurable", MV = "enumerable", NV = "writable", PV = "value", FV = (e) => !!e && !!e[TV];
-function IV(e) {
- return e ? zV(e) || KV(e) || !!e[wV] || !!e[kV]?.[wV] || qV(e) || JV(e) : !1;
+var CV = Object, wV = CV.getPrototypeOf, TV = "constructor", EV = "prototype", DV = "configurable", OV = "enumerable", kV = "writable", AV = "value", jV = (e) => !!e && !!e[xV];
+function MV(e) {
+ return e ? FV(e) || HV(e) || !!e[bV] || !!e[TV]?.[bV] || UV(e) || WV(e) : !1;
}
-var LV = DV[AV][kV].toString(), RV = /* @__PURE__ */ new WeakMap();
-function zV(e) {
- if (!e || !YV(e)) return !1;
- let t = OV(e);
- if (t === null || t === DV[AV]) return !0;
- let n = DV.hasOwnProperty.call(t, kV) && t[kV];
+var NV = CV[EV][TV].toString(), PV = /* @__PURE__ */ new WeakMap();
+function FV(e) {
+ if (!e || !GV(e)) return !1;
+ let t = wV(e);
+ if (t === null || t === CV[EV]) return !0;
+ let n = CV.hasOwnProperty.call(t, TV) && t[TV];
if (n === Object) return !0;
- if (!XV(n)) return !1;
- let r = RV.get(n);
- return r === void 0 && (r = Function.toString.call(n), RV.set(n, r)), r === LV;
+ if (!KV(n)) return !1;
+ let r = PV.get(n);
+ return r === void 0 && (r = Function.toString.call(n), PV.set(n, r)), r === NV;
}
-function BV(e, t, n = !0) {
- VV(e) === 0 ? (n ? Reflect.ownKeys(e) : DV.keys(e)).forEach((n) => {
+function IV(e, t, n = !0) {
+ LV(e) === 0 ? (n ? Reflect.ownKeys(e) : CV.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function VV(e) {
- let t = e[TV];
- return t ? t.type_ : KV(e) ? 1 : qV(e) ? 2 : JV(e) ? 3 : 0;
+function LV(e) {
+ let t = e[xV];
+ return t ? t.type_ : HV(e) ? 1 : UV(e) ? 2 : WV(e) ? 3 : 0;
}
-var HV = (e, t, n = VV(e)) => n === 2 ? e.has(t) : DV[AV].hasOwnProperty.call(e, t), UV = (e, t, n = VV(e)) => n === 2 ? e.get(t) : e[t], WV = (e, t, n, r = VV(e)) => {
+var RV = (e, t, n = LV(e)) => n === 2 ? e.has(t) : CV[EV].hasOwnProperty.call(e, t), zV = (e, t, n = LV(e)) => n === 2 ? e.get(t) : e[t], BV = (e, t, n, r = LV(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function GV(e, t) {
+function VV(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var KV = Array.isArray, qV = (e) => e instanceof Map, JV = (e) => e instanceof Set, YV = (e) => typeof e == "object", XV = (e) => typeof e == "function", ZV = (e) => typeof e == "boolean";
-function QV(e) {
+var HV = Array.isArray, UV = (e) => e instanceof Map, WV = (e) => e instanceof Set, GV = (e) => typeof e == "object", KV = (e) => typeof e == "function", qV = (e) => typeof e == "boolean";
+function JV(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var $V = (e) => e.copy_ || e.base_, eH = (e) => e.modified_ ? e.copy_ : e.base_;
-function tH(e, t) {
- if (qV(e)) return new Map(e);
- if (JV(e)) return new Set(e);
- if (KV(e)) return Array[AV].slice.call(e);
- let n = zV(e);
+var YV = (e) => e.copy_ || e.base_, XV = (e) => e.modified_ ? e.copy_ : e.base_;
+function ZV(e, t) {
+ if (UV(e)) return new Map(e);
+ if (WV(e)) return new Set(e);
+ if (HV(e)) return Array[EV].slice.call(e);
+ let n = FV(e);
if (t === !0 || t === "class_only" && !n) {
- let t = DV.getOwnPropertyDescriptors(e);
- delete t[TV];
+ let t = CV.getOwnPropertyDescriptors(e);
+ delete t[xV];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[NV] === !1 && (a[NV] = !0, a[jV] = !0), (a.get || a.set) && (t[i] = {
- [jV]: !0,
- [NV]: !0,
- [MV]: a[MV],
- [PV]: e[i]
+ a[kV] === !1 && (a[kV] = !0, a[DV] = !0), (a.get || a.set) && (t[i] = {
+ [DV]: !0,
+ [kV]: !0,
+ [OV]: a[OV],
+ [AV]: e[i]
});
}
- return DV.create(OV(e), t);
+ return CV.create(wV(e), t);
}
{
- let t = OV(e);
+ let t = wV(e);
if (t !== null && n) return { ...e };
- let r = DV.create(t);
- return DV.assign(r, e);
- }
-}
-function nH(e, t = !1) {
- return aH(e) || FV(e) || !IV(e) ? e : (VV(e) > 1 && DV.defineProperties(e, {
- set: iH,
- add: iH,
- clear: iH,
- delete: iH
- }), DV.freeze(e), t && BV(e, (e, t) => {
- nH(t, !0);
+ let r = CV.create(t);
+ return CV.assign(r, e);
+ }
+}
+function QV(e, t = !1) {
+ return tH(e) || jV(e) || !MV(e) ? e : (LV(e) > 1 && CV.defineProperties(e, {
+ set: eH,
+ add: eH,
+ clear: eH,
+ delete: eH
+ }), CV.freeze(e), t && IV(e, (e, t) => {
+ QV(t, !0);
}, !1), e);
}
-function rH() {
- EV(2);
+function $V() {
+ SV(2);
}
-var iH = { [PV]: rH };
-function aH(e) {
- return e === null || !YV(e) || DV.isFrozen(e);
+var eH = { [AV]: $V };
+function tH(e) {
+ return e === null || !GV(e) || CV.isFrozen(e);
}
-var oH = "MapSet", sH = "Patches", cH = "ArrayMethods", lH = {};
-function uH(e) {
- let t = lH[e];
- return t || EV(0, e), t;
+var nH = "MapSet", rH = "Patches", iH = "ArrayMethods", aH = {};
+function oH(e) {
+ let t = aH[e];
+ return t || SV(0, e), t;
}
-var dH = (e) => !!lH[e], fH, pH = () => fH, Hxe = (e, t) => ({
+var sH = (e) => !!aH[e], cH, lH = () => cH, Kxe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -52970,114 +52970,114 @@ var dH = (e) => !!lH[e], fH, pH = () => fH, Hxe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: dH(oH) ? uH(oH) : void 0,
- arrayMethodsPlugin_: dH(cH) ? uH(cH) : void 0
+ mapSetPlugin_: sH(nH) ? oH(nH) : void 0,
+ arrayMethodsPlugin_: sH(iH) ? oH(iH) : void 0
});
-function mH(e, t) {
- t && (e.patchPlugin_ = uH(sH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function uH(e, t) {
+ t && (e.patchPlugin_ = oH(rH), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function hH(e) {
- gH(e), e.drafts_.forEach(Uxe), e.drafts_ = null;
+function dH(e) {
+ fH(e), e.drafts_.forEach(qxe), e.drafts_ = null;
}
-function gH(e) {
- e === fH && (fH = e.parent_);
+function fH(e) {
+ e === cH && (cH = e.parent_);
}
-var _H = (e) => fH = Hxe(fH, e);
-function Uxe(e) {
- let t = e[TV];
+var pH = (e) => cH = Kxe(cH, e);
+function qxe(e) {
+ let t = e[xV];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function vH(e, t) {
+function mH(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[TV].modified_ && (hH(t), EV(4)), IV(e) && (e = yH(t, e));
+ n[xV].modified_ && (dH(t), SV(4)), MV(e) && (e = hH(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[TV].base_, e, t);
- } else e = yH(t, n);
- return Wxe(t, e, !0), hH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === CV ? void 0 : e;
-}
-function yH(e, t) {
- if (aH(t)) return t;
- let n = t[TV];
- if (!n) return wH(t, e.handledSet_, e);
- if (!xH(n, e)) return t;
+ r && r.generateReplacementPatches_(n[xV].base_, e, t);
+ } else e = hH(t, n);
+ return Jxe(t, e, !0), dH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === yV ? void 0 : e;
+}
+function hH(e, t) {
+ if (tH(t)) return t;
+ let n = t[xV];
+ if (!n) return bH(t, e.handledSet_, e);
+ if (!_H(n, e)) return t;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- CH(n, e);
+ yH(n, e);
}
return n.copy_;
}
-function Wxe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && nH(t, n);
+function Jxe(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && QV(t, n);
}
-function bH(e) {
+function gH(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var xH = (e, t) => e.scope_ === t, Gxe = [];
-function SH(e, t, n, r) {
- let i = $V(e), a = e.type_;
- if (r !== void 0 && UV(i, r, a) === t) {
- WV(i, r, n, a);
+var _H = (e, t) => e.scope_ === t, Yxe = [];
+function vH(e, t, n, r) {
+ let i = YV(e), a = e.type_;
+ if (r !== void 0 && zV(i, r, a) === t) {
+ BV(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- BV(i, (e, n) => {
- if (FV(n)) {
+ IV(i, (e, n) => {
+ if (jV(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? Gxe;
- for (let e of o) WV(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? Yxe;
+ for (let e of o) BV(i, e, n, a);
}
-function Kxe(e, t, n) {
+function Xxe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !xH(i, r)) return;
+ if (!i || !_H(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = eH(i);
- SH(e, i.draft_ ?? i, a, n), CH(i, r);
+ let a = XV(i);
+ vH(e, i.draft_ ?? i, a, n), yH(i, r);
});
}
-function CH(e, t) {
+function yH(e, t) {
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
let { patchPlugin_: n } = t;
if (n) {
let r = n.getPath(e);
r && n.generatePatches_(e, r, t);
}
- bH(e);
+ gH(e);
}
}
-function qxe(e, t, n) {
+function Zxe(e, t, n) {
let { scope_: r } = e;
- if (FV(n)) {
- let i = n[TV];
- xH(i, r) && i.callbacks_.push(function() {
- AH(e), SH(e, n, eH(i), t);
+ if (jV(n)) {
+ let i = n[xV];
+ _H(i, r) && i.callbacks_.push(function() {
+ EH(e), vH(e, n, XV(i), t);
});
- } else IV(n) && e.callbacks_.push(function() {
- let i = $V(e);
- e.type_ === 3 ? i.has(n) && wH(n, r.handledSet_, r) : UV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && wH(UV(e.copy_, t, e.type_), r.handledSet_, r);
+ } else MV(n) && e.callbacks_.push(function() {
+ let i = YV(e);
+ e.type_ === 3 ? i.has(n) && bH(n, r.handledSet_, r) : zV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && bH(zV(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function wH(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || FV(e) || t.has(e) || !IV(e) || aH(e) ? e : (t.add(e), BV(e, (r, i) => {
- if (FV(i)) {
- let t = i[TV];
- xH(t, n) && (WV(e, r, eH(t), e.type_), bH(t));
- } else IV(i) && wH(i, t, n);
+function bH(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || jV(e) || t.has(e) || !MV(e) || tH(e) ? e : (t.add(e), IV(e, (r, i) => {
+ if (jV(i)) {
+ let t = i[xV];
+ _H(t, n) && (BV(e, r, XV(t), e.type_), gH(t));
+ } else MV(i) && bH(i, t, n);
}), e);
}
-function Jxe(e, t) {
- let n = KV(e), r = {
+function Qxe(e, t) {
+ let n = HV(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : pH(),
+ scope_: t ? t.scope_ : lH(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -53088,108 +53088,108 @@ function Jxe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = TH;
- n && (i = [r], a = EH);
+ }, i = r, a = xH;
+ n && (i = [r], a = SH);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var TH = {
+var xH = {
get(e, t) {
- if (t === TV) return e;
+ if (t === xV) return e;
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
- let i = $V(e);
- if (!HV(i, t, e.type_)) return Xxe(e, i, t);
+ let i = YV(e);
+ if (!RV(i, t, e.type_)) return eSe(e, i, t);
let a = i[t];
- if (e.finalized_ || !IV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && QV(t)) return a;
- if (a === DH(e.base_, t) || Yxe(e, t, a)) {
- AH(e);
- let n = e.type_ === 1 ? +t : t, r = jH(e.scope_, a, e, n);
+ if (e.finalized_ || !MV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && JV(t)) return a;
+ if (a === CH(e.base_, t) || $xe(e, t, a)) {
+ EH(e);
+ let n = e.type_ === 1 ? +t : t, r = DH(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in $V(e);
+ return t in YV(e);
},
ownKeys(e) {
- return Reflect.ownKeys($V(e));
+ return Reflect.ownKeys(YV(e));
},
set(e, t, n) {
- let r = OH($V(e), t);
+ let r = wH(YV(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = DH($V(e), t), i = r?.[TV];
+ let r = CH(YV(e), t), i = r?.[xV];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (GV(n, r) && (n !== void 0 || HV(e.base_, t, e.type_))) return !0;
- AH(e), kH(e);
+ if (VV(n, r) && (n !== void 0 || RV(e.base_, t, e.type_))) return !0;
+ EH(e), TH(e);
}
- return e.copy_[t] === n && (n !== void 0 || HV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), qxe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || RV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Zxe(e, t, n), !0);
},
deleteProperty(e, t) {
- return AH(e), DH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), kH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return EH(e), CH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), TH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = $V(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = YV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [NV]: !0,
- [jV]: e.type_ !== 1 || t !== "length",
- [MV]: r[MV],
- [PV]: n[t]
+ [kV]: !0,
+ [DV]: e.type_ !== 1 || t !== "length",
+ [OV]: r[OV],
+ [AV]: n[t]
};
},
defineProperty() {
- EV(11);
+ SV(11);
},
getPrototypeOf(e) {
- return OV(e.base_);
+ return wV(e.base_);
},
setPrototypeOf() {
- EV(12);
+ SV(12);
}
-}, EH = {};
-for (let e in TH) {
- let t = TH[e];
- EH[e] = function() {
+}, SH = {};
+for (let e in xH) {
+ let t = xH[e];
+ SH[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-EH.deleteProperty = function(e, t) {
- return EH.set.call(this, e, t, void 0);
-}, EH.set = function(e, t, n) {
- return TH.set.call(this, e[0], t, n, e[0]);
+SH.deleteProperty = function(e, t) {
+ return SH.set.call(this, e, t, void 0);
+}, SH.set = function(e, t, n) {
+ return xH.set.call(this, e[0], t, n, e[0]);
};
-function DH(e, t) {
- let n = e[TV];
- return (n ? $V(n) : e)[t];
+function CH(e, t) {
+ let n = e[xV];
+ return (n ? YV(n) : e)[t];
}
-function Yxe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !IV(n) || n[TV] ? !1 : e.baseRefs_.has(n);
+function $xe(e, t, n) {
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !MV(n) || n[xV] ? !1 : e.baseRefs_.has(n);
}
-function Xxe(e, t, n) {
- let r = OH(t, n);
- return r ? PV in r ? r[PV] : r.get?.call(e.draft_) : void 0;
+function eSe(e, t, n) {
+ let r = wH(t, n);
+ return r ? AV in r ? r[AV] : r.get?.call(e.draft_) : void 0;
}
-function OH(e, t) {
+function wH(e, t) {
if (!(t in e)) return;
- let n = OV(e);
+ let n = wV(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = OV(n);
+ n = wV(n);
}
}
-function kH(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && kH(e.parent_));
+function TH(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && TH(e.parent_));
}
-function AH(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), tH(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function EH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), ZV(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var Zxe = class {
+var tSe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (XV(e) && !XV(t)) {
+ if (KV(e) && !KV(t)) {
let n = t;
t = e;
let r = this;
@@ -53197,30 +53197,30 @@ var Zxe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- XV(t) || EV(6), n !== void 0 && !XV(n) && EV(7);
+ KV(t) || SV(6), n !== void 0 && !KV(n) && SV(7);
let r;
- if (IV(e)) {
- let i = _H(this), a = jH(i, e, void 0), o = !0;
+ if (MV(e)) {
+ let i = pH(this), a = DH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? hH(i) : gH(i);
+ o ? dH(i) : fH(i);
}
- return mH(i, n), vH(r, i);
+ return uH(i, n), mH(r, i);
}
- if (!e || !YV(e)) {
- if (r = t(e), r === void 0 && (r = e), r === CV && (r = void 0), this.autoFreeze_ && nH(r, !0), n) {
+ if (!e || !GV(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === yV && (r = void 0), this.autoFreeze_ && QV(r, !0), n) {
let t = [], i = [];
- uH(sH).generateReplacementPatches_(e, r, {
+ oH(rH).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- EV(1, e);
+ SV(1, e);
}, this.produceWithPatches = (e, t) => {
- if (XV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (KV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -53229,18 +53229,18 @@ var Zxe = class {
n,
r
];
- }, ZV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), ZV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), ZV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, qV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), qV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), qV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- IV(e) || EV(8), FV(e) && (e = MH(e));
- let t = _H(this), n = jH(t, e, void 0);
- return n[TV].isManual_ = !0, gH(t), n;
+ MV(e) || SV(8), jV(e) && (e = OH(e));
+ let t = pH(this), n = DH(t, e, void 0);
+ return n[xV].isManual_ = !0, fH(t), n;
}
finishDraft(e, t) {
- let n = e && e[TV];
- (!n || !n.isManual_) && EV(9);
+ let n = e && e[xV];
+ (!n || !n.isManual_) && SV(9);
let { scope_: r } = n;
- return mH(r, t), vH(void 0, r);
+ return uH(r, t), mH(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -53264,48 +53264,48 @@ var Zxe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = uH(sH).applyPatches_;
- return FV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = oH(rH).applyPatches_;
+ return jV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function jH(e, t, n, r) {
- let [i, a] = qV(t) ? uH(oH).proxyMap_(t, n) : JV(t) ? uH(oH).proxySet_(t, n) : Jxe(t, n);
- return (n?.scope_ ?? pH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Kxe(n, a, r) : a.callbacks_.push(function(e) {
+function DH(e, t, n, r) {
+ let [i, a] = UV(t) ? oH(nH).proxyMap_(t, n) : WV(t) ? oH(nH).proxySet_(t, n) : Qxe(t, n);
+ return (n?.scope_ ?? lH()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Xxe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function MH(e) {
- return FV(e) || EV(10, e), NH(e);
+function OH(e) {
+ return jV(e) || SV(10, e), kH(e);
}
-function NH(e) {
- if (!IV(e) || aH(e)) return e;
- let t = e[TV], n, r = !0;
+function kH(e) {
+ if (!MV(e) || tH(e)) return e;
+ let t = e[xV], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = tH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = tH(e, !0);
- return BV(n, (e, t) => {
- WV(n, e, NH(t));
+ t.finalized_ = !0, n = ZV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = ZV(e, !0);
+ return IV(n, (e, t) => {
+ BV(n, e, kH(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var PH = new Zxe().produce;
+var AH = new tSe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function FH(e) {
+function jH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var Qxe = FH(), $xe = FH, eSe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? bV : bV.apply(null, arguments);
+var nSe = jH(), rSe = jH, iSe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? gV : gV.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function IH(e, t) {
+function MH(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(_U(0));
+ if (!r) throw Error(pU(0));
return {
type: e,
payload: r.payload,
@@ -53318,9 +53318,9 @@ function IH(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => SV(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => vV(t) && t.type === e, n;
}
-var LH = class e extends Array {
+var NH = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -53334,29 +53334,29 @@ var LH = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function RH(e) {
- return IV(e) ? PH(e, () => {}) : e;
+function PH(e) {
+ return MV(e) ? AH(e, () => {}) : e;
}
-function zH(e, t, n) {
+function FH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function tSe(e) {
+function aSe(e) {
return typeof e == "boolean";
}
-var nSe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new LH();
- return t && (tSe(t) ? a.push(Qxe) : a.push($xe(t.extraArgument))), a;
-}, BH = "RTK_autoBatch", VH = () => (e) => ({
+var oSe = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new NH();
+ return t && (aSe(t) ? a.push(nSe) : a.push(rSe(t.extraArgument))), a;
+}, IH = "RTK_autoBatch", LH = () => (e) => ({
payload: e,
- meta: { [BH]: !0 }
-}), HH = (e) => (t) => {
+ meta: { [IH]: !0 }
+}), RH = (e) => (t) => {
setTimeout(t, e);
-}, rSe = (e, t) => (n) => {
+}, sSe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, UH = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? rSe(window.requestAnimationFrame, 100) : HH(10) : e.type === "callback" ? e.queueNotification : HH(e.timeout), l = () => {
+}, zH = (e = { type: "raf" }) => (t) => (...n) => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? sSe(window.requestAnimationFrame, 100) : RH(10) : e.type === "callback" ? e.queueNotification : RH(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -53368,37 +53368,37 @@ var nSe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[BH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[IH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, iSe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new LH(e);
- return n && r.push(UH(typeof n == "object" ? n : void 0)), r;
+}, cSe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new NH(e);
+ return n && r.push(zH(typeof n == "object" ? n : void 0)), r;
};
-function aSe(e) {
- let t = nSe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function lSe(e) {
+ let t = oSe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
- else if (gV(n)) c = yV(n);
- else throw Error(_U(1));
+ else if (fV(n)) c = hV(n);
+ else throw Error(pU(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = bV;
- i && (u = eSe({
+ let u = gV;
+ i && (u = iSe({
trace: !1,
...typeof i == "object" && i
}));
- let d = iSe(xV(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return _V(c, o, p);
+ let d = cSe(_V(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return pV(c, o, p);
}
-function WH(e) {
+function BH(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(_U(28));
- if (r in t) throw Error(_U(29));
+ if (!r) throw Error(pU(28));
+ if (r in t) throw Error(pU(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -53423,25 +53423,25 @@ function WH(e) {
r
];
}
-function oSe(e) {
+function uSe(e) {
return typeof e == "function";
}
-function sSe(e, t) {
- let [n, r, i] = WH(t), a;
- if (oSe(e)) a = () => RH(e());
+function dSe(e, t) {
+ let [n, r, i] = BH(t), a;
+ if (uSe(e)) a = () => PH(e());
else {
- let t = RH(e);
+ let t = PH(e);
a = () => t;
}
function o(e = a(), t) {
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
if (n) {
- if (FV(e)) {
+ if (jV(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (IV(e)) return PH(e, (e) => n(e, t));
+ if (MV(e)) return AH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -53456,20 +53456,20 @@ function sSe(e, t) {
}
return o.getInitialState = a, o;
}
-var cSe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", lSe = (e = 21) => {
+var fSe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", pSe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += cSe[Math.random() * 64 | 0];
+ for (; n--;) t += fSe[Math.random() * 64 | 0];
return t;
-}, uSe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function dSe(e, t) {
+}, mSe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function hSe(e, t) {
return `${e}/${t}`;
}
-function fSe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[uSe];
+function gSe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[mSe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(_U(11));
- let i = (typeof e.reducers == "function" ? e.reducers(mSe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(pU(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(vSe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -53477,8 +53477,8 @@ function fSe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(_U(12));
- if (n in o.sliceCaseReducersByType) throw Error(_U(13));
+ if (!n) throw Error(pU(12));
+ if (n in o.sliceCaseReducersByType) throw Error(pU(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -53497,17 +53497,17 @@ function fSe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: dSe(n, r),
+ type: hSe(n, r),
createNotation: typeof e.reducers == "function"
};
- gSe(a) ? vSe(o, a, s, t) : hSe(o, a, s);
+ bSe(a) ? SSe(o, a, s, t) : ySe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? WH(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? BH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return sSe(e.initialState, (e) => {
+ return dSe(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -53524,12 +53524,12 @@ function fSe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = zH(d, r, m)), i;
+ return i === void 0 && n && (i = FH(d, r, m)), i;
}
function i(t = l) {
- return zH(zH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return FH(FH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = pSe(a, t, () => zH(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = _Se(a, t, () => FH(d, t, m), n);
return r;
});
}
@@ -53563,15 +53563,15 @@ function fSe({ creators: e } = {}) {
return g;
};
}
-function pSe(e, t, n, r) {
+function _Se(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var GH = /* @__PURE__ */ fSe();
-function mSe() {
+var VH = /* @__PURE__ */ gSe();
+function vSe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -53595,57 +53595,57 @@ function mSe() {
asyncThunk: e
};
}
-function hSe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function ySe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !_Se(r)) throw Error(_U(17));
+ if (n && !xSe(r)) throw Error(pU(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? IH(e, o) : IH(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? MH(e, o) : MH(e));
}
-function gSe(e) {
+function bSe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function _Se(e) {
+function xSe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function vSe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(_U(18));
+function SSe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(pU(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
- fulfilled: o || KH,
- pending: s || KH,
- rejected: c || KH,
- settled: l || KH
+ fulfilled: o || HH,
+ pending: s || HH,
+ rejected: c || HH,
+ settled: l || HH
});
}
-function KH() {}
-var ySe = "task", qH = "listener", JH = "completed", YH = "cancelled", bSe = `task-${YH}`, xSe = `task-${JH}`, XH = `${qH}-${YH}`, SSe = `${qH}-${JH}`, ZH = class {
+function HH() {}
+var CSe = "task", UH = "listener", WH = "completed", GH = "cancelled", wSe = `task-${GH}`, TSe = `task-${WH}`, KH = `${UH}-${GH}`, ESe = `${UH}-${WH}`, qH = class {
constructor(e) {
- this.code = e, this.message = `${ySe} ${YH} (reason: ${e})`;
+ this.code = e, this.message = `${CSe} ${GH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, QH = (e, t) => {
- if (typeof e != "function") throw TypeError(_U(32));
-}, $H = () => {}, eU = (e, t = $H) => (e.catch(t), e), tU = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), nU = (e) => {
- if (e.aborted) throw new ZH(e.reason);
+}, JH = (e, t) => {
+ if (typeof e != "function") throw TypeError(pU(32));
+}, YH = () => {}, XH = (e, t = YH) => (e.catch(t), e), ZH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), QH = (e) => {
+ if (e.aborted) throw new qH(e.reason);
};
-function rU(e, t) {
- let n = $H;
+function $H(e, t) {
+ let n = YH;
return new Promise((r, i) => {
- let a = () => i(new ZH(e.reason));
+ let a = () => i(new qH(e.reason));
if (e.aborted) {
a();
return;
}
- n = tU(e, a), t.finally(() => n()).then(r, i);
+ n = ZH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = $H;
+ n = YH;
});
}
-var CSe = async (e, t) => {
+var DSe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -53653,40 +53653,40 @@ var CSe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof ZH ? "cancelled" : "rejected",
+ status: e instanceof qH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, iU = (e) => (t) => eU(rU(e, t).then((t) => (nU(e), t))), aU = (e) => {
- let t = iU(e);
+}, eU = (e) => (t) => XH($H(e, t).then((t) => (QH(e), t))), tU = (e) => {
+ let t = eU(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: oU } = Object, sU = {}, cU = "listenerMiddleware", wSe = (e, t) => {
- let n = (t) => tU(e, () => t.abort(e.reason));
+}, { assign: nU } = Object, rU = {}, iU = "listenerMiddleware", OSe = (e, t) => {
+ let n = (t) => ZH(e, () => t.abort(e.reason));
return (r, i) => {
- QH(r, "taskExecutor");
+ JH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = CSe(async () => {
- nU(e), nU(a.signal);
+ let o = DSe(async () => {
+ QH(e), QH(a.signal);
let t = await r({
- pause: iU(a.signal),
- delay: aU(a.signal),
+ pause: eU(a.signal),
+ delay: tU(a.signal),
signal: a.signal
});
- return nU(a.signal), t;
- }, () => a.abort(xSe));
- return i?.autoJoin && t.push(o.catch($H)), {
- result: iU(e)(o),
+ return QH(a.signal), t;
+ }, () => a.abort(TSe));
+ return i?.autoJoin && t.push(o.catch(YH)), {
+ result: eU(e)(o),
cancel() {
- a.abort(bSe);
+ a.abort(wSe);
}
};
};
-}, TSe = (e, t) => {
+}, kSe = (e, t) => {
let n = async (n, r) => {
- nU(t);
+ QH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -53704,47 +53704,47 @@ var CSe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await rU(t, Promise.race(a));
- return nU(t), e;
+ let e = await $H(t, Promise.race(a));
+ return QH(t), e;
} finally {
i();
}
};
- return ((e, t) => eU(n(e, t)));
-}, lU = (e) => {
+ return ((e, t) => XH(n(e, t)));
+}, aU = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = IH(t).match;
+ if (t) i = MH(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(_U(21));
- return QH(a, "options.listener"), {
+ else if (!i) throw Error(pU(21));
+ return JH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, uU = /* @__PURE__ */ oU((e) => {
- let { type: t, predicate: n, effect: r } = lU(e);
+}, oU = /* @__PURE__ */ nU((e) => {
+ let { type: t, predicate: n, effect: r } = aU(e);
return {
- id: lSe(),
+ id: pSe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(_U(22));
+ throw Error(pU(22));
}
};
-}, { withTypes: () => uU }), dU = (e, t) => {
- let { type: n, effect: r, predicate: i } = lU(t);
+}, { withTypes: () => oU }), sU = (e, t) => {
+ let { type: n, effect: r, predicate: i } = aU(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, fU = (e) => {
+}, cU = (e) => {
e.pending.forEach((e) => {
- e.abort(XH);
+ e.abort(KH);
});
-}, ESe = (e, t) => () => {
- for (let e of t.keys()) fU(e);
+}, ASe = (e, t) => () => {
+ for (let e of t.keys()) cU(e);
e.clear();
-}, pU = (e, t, n) => {
+}, lU = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -53752,74 +53752,74 @@ var CSe = async (e, t) => {
throw e;
}, 0);
}
-}, mU = /* @__PURE__ */ oU(/* @__PURE__ */ IH(`${cU}/add`), { withTypes: () => mU }), DSe = /* @__PURE__ */ IH(`${cU}/removeAll`), hU = /* @__PURE__ */ oU(/* @__PURE__ */ IH(`${cU}/remove`), { withTypes: () => hU }), OSe = (...e) => {
- console.error(`${cU}/error`, ...e);
-}, gU = (e = {}) => {
+}, uU = /* @__PURE__ */ nU(/* @__PURE__ */ MH(`${iU}/add`), { withTypes: () => uU }), jSe = /* @__PURE__ */ MH(`${iU}/removeAll`), dU = /* @__PURE__ */ nU(/* @__PURE__ */ MH(`${iU}/remove`), { withTypes: () => dU }), MSe = (...e) => {
+ console.error(`${iU}/error`, ...e);
+}, fU = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
let t = n.get(e) ?? 0;
n.set(e, t + 1);
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = OSe } = e;
- QH(o, "onError");
+ }, { extra: a, onError: o = MSe } = e;
+ JH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && fU(e);
+ e.unsubscribe(), t?.cancelActive && cU(e);
}), c = ((e) => {
- let n = dU(t, e) ?? uU(e);
+ let n = sU(t, e) ?? oU(e);
return s(n);
});
- oU(c, { withTypes: () => c });
+ nU(c, { withTypes: () => c });
let l = (e) => {
- let n = dU(t, e);
- return n && (n.unsubscribe(), e.cancelActive && fU(n)), !!n;
+ let n = sU(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && cU(n)), !!n;
};
- oU(l, { withTypes: () => l });
+ nU(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = TSe(c, u.signal), f = [];
+ let u = new AbortController(), d = kSe(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, oU({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, nU({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: aU(u.signal),
- pause: iU(u.signal),
+ delay: tU(u.signal),
+ pause: eU(u.signal),
extra: a,
signal: u.signal,
- fork: wSe(u.signal, f),
+ fork: OSe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(XH), n.delete(e));
+ e !== u && (e.abort(KH), n.delete(e));
});
},
cancel: () => {
- u.abort(XH), e.pending.delete(u);
+ u.abort(KH), e.pending.delete(u);
},
throwIfCancelled: () => {
- nU(u.signal);
+ QH(u.signal);
}
})));
} catch (e) {
- e instanceof ZH || pU(o, e, { raisedBy: "effect" });
+ e instanceof qH || lU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(SSe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(ESe), i(e), e.pending.delete(u);
}
- }, d = ESe(t, n);
+ }, d = ASe(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!SV(r)) return n(r);
- if (mU.match(r)) return c(r.payload);
- if (DSe.match(r)) {
+ if (!vV(r)) return n(r);
+ if (uU.match(r)) return c(r.payload);
+ if (jSe.match(r)) {
d();
return;
}
- if (hU.match(r)) return l(r.payload);
+ if (dU.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === sU) throw Error(_U(23));
+ if (i === rU) throw Error(pU(23));
return i;
}, s;
try {
@@ -53830,13 +53830,13 @@ var CSe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, pU(o, e, { raisedBy: "predicate" });
+ s = !1, lU(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = sU;
+ i = rU;
}
return s;
},
@@ -53845,12 +53845,12 @@ var CSe = async (e, t) => {
clearListeners: d
};
};
-function _U(e) {
+function pU(e) {
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
}
//#endregion
//#region node_modules/recharts/es6/state/layoutSlice.js
-var vU = GH({
+var mU = VH({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -53878,23 +53878,23 @@ var vU = GH({
e.scale = t.payload;
}
}
-}), { setMargin: kSe, setLayout: ASe, setChartSize: jSe, setScale: MSe } = vU.actions, NSe = vU.reducer;
+}), { setMargin: NSe, setLayout: PSe, setChartSize: FSe, setScale: ISe } = mU.actions, LSe = mU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function yU(e, t, n) {
+function hU(e, t, n) {
return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;
}
//#endregion
//#region node_modules/recharts/es6/util/isWellBehavedNumber.js
-function bU(e) {
+function gU(e) {
return Number.isFinite(e);
}
-function xU(e) {
+function _U(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function SU(e, t) {
+function vU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53904,30 +53904,30 @@ function SU(e, t) {
}
return n;
}
-function CU(e) {
+function yU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? SU(Object(n), !0).forEach(function(t) {
- PSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SU(Object(n)).forEach(function(t) {
+ t % 2 ? vU(Object(n), !0).forEach(function(t) {
+ RSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PSe(e, t, n) {
- return (t = FSe(t)) in e ? Object.defineProperty(e, t, {
+function RSe(e, t, n) {
+ return (t = zSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FSe(e) {
- var t = ISe(e, "string");
+function zSe(e) {
+ var t = BSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ISe(e, t) {
+function BSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53937,63 +53937,63 @@ function ISe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wU(e, t, n) {
- return Uz(e) || Uz(t) ? n : Lz(t) ? jz(e, t, n) : typeof t == "function" ? t(e) : n;
+function bU(e, t, n) {
+ return Hz(e) || Hz(t) ? n : Iz(t) ? Az(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var LSe = (e, t, n) => {
+var VSe = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return CU(CU({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return CU(CU({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return yU(yU({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return yU(yU({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, TU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", EU = (e, t, n, r) => {
+}, xU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", SU = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, DU = (e, t, n) => {
+}, CU = (e, t, n) => {
if (!e) return null;
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? Pz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? Nz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return bU(i) ? {
+ return gU(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(Gz) : c && l ? l.map((e, t) => {
+ }).filter(Wz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(Gz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(Wz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(Gz) : o.domain().map((e, t) => {
+ }).filter(Wz) : o.domain().map((e, t) => {
var n = o.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(Gz);
-}, OU = (e, t) => {
+ }).filter(Wz);
+}, wU = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, RSe = {
+}, HSe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54001,16 +54001,16 @@ var LSe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = Fz(c) ? l : c;
+ var c = s[1], l = s[0], u = Pz(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Ebe,
- none: Cz,
- silhouette: Dbe,
- wiggle: Obe,
+ expand: Dbe,
+ none: Sz,
+ silhouette: Obe,
+ wiggle: kbe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -54018,70 +54018,70 @@ var LSe = (e, t, n) => {
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = Fz(o[1]) ? o[0] : o[1];
+ var s = Pz(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, zSe = (e, t, n) => {
- var r = RSe[n] ?? Cz, i = Tbe().keys(t).value((e, t) => Number(wU(e, t, 0))).order(wz).offset(r)(e);
+}, USe = (e, t, n) => {
+ var r = HSe[n] ?? Sz, i = Ebe().keys(t).value((e, t) => Number(bU(e, t, 0))).order(Cz).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = wU(e[i], t[r], 0);
+ var a = bU(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function kU(e) {
+function TU(e) {
return e == null ? void 0 : String(e);
}
-function AU(e) {
+function EU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !Uz(i[t.dataKey])) {
- var s = Hz(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !Hz(i[t.dataKey])) {
+ var s = Vz(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = wU(i, Uz(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = bU(i, Hz(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var jU = (e) => {
+var DU = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = wU(a, t.dataKey, t.scale.domain()[o]);
- if (Uz(s)) return null;
+ var s = bU(a, t.dataKey, t.scale.domain()[o]);
+ if (Hz(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, MU = (e) => {
+}, OU = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, BSe = (e) => {
+}, WSe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, VSe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], HSe = (e, t, n) => {
- if (e != null) return VSe(Object.keys(e).reduce((r, i) => {
+}, GSe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], KSe = (e, t, n) => {
+ if (e != null) return GSe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = BSe(yU(r, t, n));
- return !bU(i[0]) || !bU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = WSe(hU(r, t, n));
+ return !gU(i[0]) || !gU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, NU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, PU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, FU = (e, t, n) => {
+}, kU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, AU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, jU = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = aV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = tV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -54089,26 +54089,26 @@ var jU = (e) => {
}
return n ? void 0 : 0;
};
-function IU(e) {
+function MU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return CU(CU({}, t), {}, {
+ return yU(yU({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function LU(e, t) {
+function NU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var USe = (e, t) => {
+var qSe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, WSe = (e, t) => t === "centric" ? e.angle : e.radius, RU = (e) => e.layout.width, zU = (e) => e.layout.height, GSe = (e) => e.layout.scale, BU = (e) => e.layout.margin, VU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), HU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), KSe = "data-recharts-item-index";
+}, JSe = (e, t) => t === "centric" ? e.angle : e.radius, PU = (e) => e.layout.width, FU = (e) => e.layout.height, YSe = (e) => e.layout.scale, IU = (e) => e.layout.margin, LU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), RU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), XSe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function UU(e, t) {
+function zU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54118,30 +54118,30 @@ function UU(e, t) {
}
return n;
}
-function WU(e) {
+function BU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UU(Object(n), !0).forEach(function(t) {
- qSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UU(Object(n)).forEach(function(t) {
+ t % 2 ? zU(Object(n), !0).forEach(function(t) {
+ ZSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qSe(e, t, n) {
- return (t = JSe(t)) in e ? Object.defineProperty(e, t, {
+function ZSe(e, t, n) {
+ return (t = QSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JSe(e) {
- var t = YSe(e, "string");
+function QSe(e) {
+ var t = $Se(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YSe(e, t) {
+function $Se(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54151,58 +54151,58 @@ function YSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var XSe = (e) => e.brush.height;
-function ZSe(e) {
- return HU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+var eCe = (e) => e.brush.height;
+function tCe(e) {
+ return RU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function QSe(e) {
- return HU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function $Se(e) {
- return VU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-function eCe(e) {
- return VU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-var GU = $([
- RU,
- zU,
- BU,
- XSe,
- ZSe,
- QSe,
- $Se,
+function nCe(e) {
+ return RU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
+function rCe(e) {
+ return LU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+function iCe(e) {
+ return LU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+var VU = $([
+ PU,
+ FU,
+ IU,
eCe,
- oV,
- sV
+ tCe,
+ nCe,
+ rCe,
+ iCe,
+ nV,
+ rV
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = WU(WU({}, {
+ }, d = BU(BU({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = LSe(d, c, l);
+ d.bottom += r, d = VSe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return WU(WU({ brushBottom: f }, d), {}, {
+ return BU(BU({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), tCe = $(GU, (e) => ({
+}), aCe = $(VU, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), KU = $(RU, zU, (e, t) => ({
+})), HU = $(PU, FU, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), nCe = /*#__PURE__*/ (0, V.createContext)(null), qU = () => (0, V.useContext)(nCe) != null, JU = (e) => e.brush, YU = $([
- JU,
- GU,
- BU
+})), oCe = /*#__PURE__*/ (0, V.createContext)(null), UU = () => (0, V.useContext)(oCe) != null, WU = (e) => e.brush, GU = $([
+ WU,
+ VU,
+ IU
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -54211,7 +54211,7 @@ var GU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function rCe(e, t, { signal: n, edges: r } = {}) {
+function sCe(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -54236,11 +54236,11 @@ function rCe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function iCe(e, t = 0, n = {}) {
+function cCe(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = rCe(function(...t) {
+ let s, c = null, l = sCe(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -54249,9 +54249,9 @@ function iCe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function aCe(e, t = 0, n = {}) {
+function lCe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return iCe(e, t, {
+ return cCe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -54259,7 +54259,7 @@ function aCe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var XU = function(e, t) {
+var KU = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -54268,7 +54268,7 @@ var XU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, ZU = {
+}, qU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -54277,45 +54277,45 @@ var XU = function(e, t) {
width: -1,
height: -1
}
-}, QU = (e, t, n) => {
- var { width: r = ZU.width, height: i = ZU.height, aspect: a, maxHeight: o } = n, s = Iz(r) ? e : Number(r), c = Iz(i) ? t : Number(i);
+}, JU = (e, t, n) => {
+ var { width: r = qU.width, height: i = qU.height, aspect: a, maxHeight: o } = n, s = Fz(r) ? e : Number(r), c = Fz(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, oCe = {
+}, uCe = {
width: 0,
height: 0,
overflow: "visible"
-}, sCe = {
+}, dCe = {
width: 0,
overflowX: "visible"
-}, cCe = {
+}, fCe = {
height: 0,
overflowY: "visible"
-}, lCe = {}, uCe = (e) => {
- var { width: t, height: n } = e, r = Iz(t), i = Iz(n);
- return r && i ? oCe : r ? sCe : i ? cCe : lCe;
+}, pCe = {}, mCe = (e) => {
+ var { width: t, height: n } = e, r = Fz(t), i = Fz(n);
+ return r && i ? uCe : r ? dCe : i ? fCe : pCe;
};
-function dCe(e) {
+function hCe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = ZU.width, a = ZU.height) : i === void 0 ? i = r && r > 0 ? void 0 : ZU.width : a === void 0 && (a = r && r > 0 ? void 0 : ZU.height), {
+ return i === void 0 && a === void 0 ? (i = qU.width, a = qU.height) : i === void 0 ? i = r && r > 0 ? void 0 : qU.width : a === void 0 && (a = r && r > 0 ? void 0 : qU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function $U() {
- return $U = Object.assign ? Object.assign.bind() : function(e) {
+function YU() {
+ return YU = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $U.apply(null, arguments);
+ }, YU.apply(null, arguments);
}
-function eW(e, t) {
+function XU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54325,30 +54325,30 @@ function eW(e, t) {
}
return n;
}
-function tW(e) {
+function ZU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eW(Object(n), !0).forEach(function(t) {
- fCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eW(Object(n)).forEach(function(t) {
+ t % 2 ? XU(Object(n), !0).forEach(function(t) {
+ gCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fCe(e, t, n) {
- return (t = pCe(t)) in e ? Object.defineProperty(e, t, {
+function gCe(e, t, n) {
+ return (t = _Ce(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pCe(e) {
- var t = mCe(e, "string");
+function _Ce(e) {
+ var t = vCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mCe(e, t) {
+function vCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54358,19 +54358,19 @@ function mCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var nW = /*#__PURE__*/ (0, V.createContext)(ZU.initialDimension);
-function hCe(e) {
- return xU(e.width) && xU(e.height);
+var QU = /*#__PURE__*/ (0, V.createContext)(qU.initialDimension);
+function yCe(e) {
+ return _U(e.width) && _U(e.height);
}
-function rW(e) {
+function $U(e) {
var { children: t, width: n, height: r } = e, i = (0, V.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return hCe(i) ? /*#__PURE__*/ V.createElement(nW.Provider, { value: i }, t) : null;
+ return yCe(i) ? /*#__PURE__*/ V.createElement(QU.Provider, { value: i }, t) : null;
}
-var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = ZU.initialDimension, width: i, height: a, minWidth: o = ZU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = ZU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, V.useRef)(null), g = (0, V.useRef)();
+var eW = () => (0, V.useContext)(QU), bCe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = qU.initialDimension, width: i, height: a, minWidth: o = qU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = qU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, V.useRef)(null), g = (0, V.useRef)();
g.current = p, (0, V.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, V.useState)({
containerWidth: r.width,
@@ -54385,7 +54385,7 @@ var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e,
});
}, []);
(0, V.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return Kz;
+ if (h.current == null || typeof ResizeObserver > "u") return Gz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -54393,7 +54393,7 @@ var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = aCe(e, u, {
+ u > 0 && (e = lCe(e, u, {
trailing: !0,
leading: !1
}));
@@ -54403,17 +54403,17 @@ var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e,
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- XU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = QU(b, x, {
+ KU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = JU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return XU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ V.createElement("div", {
+ return KU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ V.createElement("div", {
id: d ? `${d}` : void 0,
className: za("recharts-responsive-container", f),
- style: tW(tW({}, m), {}, {
+ style: ZU(ZU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -54421,30 +54421,30 @@ var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ V.createElement("div", { style: uCe({
+ }, /*#__PURE__*/ V.createElement("div", { style: mCe({
width: i,
height: a
- }) }, /*#__PURE__*/ V.createElement(rW, {
+ }) }, /*#__PURE__*/ V.createElement($U, {
width: S,
height: C
}, l)));
-}), aW = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var n = iW();
- if (xU(n.width) && xU(n.height)) return e.children;
- var { width: r, height: i } = dCe({
+}), tW = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var n = eW();
+ if (_U(n.width) && _U(n.height)) return e.children;
+ var { width: r, height: i } = hCe({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = QU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = JU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ V.createElement(rW, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ V.createElement($U, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ V.createElement(gCe, $U({}, e, {
+ }, e.children) : /*#__PURE__*/ V.createElement(bCe, YU({}, e, {
width: r,
height: i,
ref: t
@@ -54452,7 +54452,7 @@ var iW = () => (0, V.useContext)(nW), gCe = /*#__PURE__*/ (0, V.forwardRef)((e,
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function oW(e) {
+function nW(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -54462,15 +54462,15 @@ function oW(e) {
height: e.height
};
}
-var sW = () => {
- var e = qU(), t = Q(tCe), n = Q(YU), r = Q(JU)?.padding;
+var rW = () => {
+ var e = UU(), t = Q(aCe), n = Q(GU), r = Q(WU)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, _Ce = {
+}, xCe = {
top: 0,
bottom: 0,
left: 0,
@@ -54478,16 +54478,16 @@ var sW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, cW = () => Q(GU) ?? _Ce, lW = () => Q(RU), uW = () => Q(zU), vCe = () => Q((e) => e.layout.margin), dW = (e) => e.layout.layoutType, fW = () => Q(dW), pW = () => {
- var e = fW();
+}, iW = () => Q(VU) ?? xCe, aW = () => Q(PU), oW = () => Q(FU), SCe = () => Q((e) => e.layout.margin), sW = (e) => e.layout.layoutType, cW = () => Q(sW), lW = () => {
+ var e = cW();
if (e === "horizontal" || e === "vertical") return e;
-}, mW = (e) => {
+}, uW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, hW = () => Q(mW), yCe = () => fW() !== void 0, gW = (e) => {
- var t = NB(), n = qU(), { width: r, height: i } = e, a = iW(), o = r, s = i;
+}, dW = () => Q(uW), CCe = () => cW() !== void 0, fW = (e) => {
+ var t = kB(), n = UU(), { width: r, height: i } = e, a = eW(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, V.useEffect)(() => {
- !n && xU(o) && xU(s) && t(jSe({
+ !n && _U(o) && _U(s) && t(FSe({
width: o,
height: s
}));
@@ -54497,64 +54497,64 @@ var sW = () => {
o,
s
]), null;
-}, _W = Symbol.for("immer-nothing"), vW = Symbol.for("immer-draftable"), yW = Symbol.for("immer-state");
-function bW(e, ...t) {
+}, pW = Symbol.for("immer-nothing"), mW = Symbol.for("immer-draftable"), hW = Symbol.for("immer-state");
+function gW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var xW = Object.getPrototypeOf;
-function SW(e) {
- return !!e && !!e[yW];
+var _W = Object.getPrototypeOf;
+function vW(e) {
+ return !!e && !!e[hW];
}
-function CW(e) {
- return e ? TW(e) || Array.isArray(e) || !!e[vW] || !!e.constructor?.[vW] || AW(e) || jW(e) : !1;
+function yW(e) {
+ return e ? xW(e) || Array.isArray(e) || !!e[mW] || !!e.constructor?.[mW] || EW(e) || DW(e) : !1;
}
-var bCe = Object.prototype.constructor.toString(), wW = /* @__PURE__ */ new WeakMap();
-function TW(e) {
+var wCe = Object.prototype.constructor.toString(), bW = /* @__PURE__ */ new WeakMap();
+function xW(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = wW.get(n);
- return r === void 0 && (r = Function.toString.call(n), wW.set(n, r)), r === bCe;
+ let r = bW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), bW.set(n, r)), r === wCe;
}
-function EW(e, t, n = !0) {
- DW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function SW(e, t, n = !0) {
+ CW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function DW(e) {
- let t = e[yW];
- return t ? t.type_ : Array.isArray(e) ? 1 : AW(e) ? 2 : jW(e) ? 3 : 0;
+function CW(e) {
+ let t = e[hW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : EW(e) ? 2 : DW(e) ? 3 : 0;
}
-function OW(e, t) {
- return DW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function wW(e, t) {
+ return CW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function kW(e, t, n) {
- let r = DW(e);
+function TW(e, t, n) {
+ let r = CW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function xCe(e, t) {
+function TCe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function AW(e) {
+function EW(e) {
return e instanceof Map;
}
-function jW(e) {
+function DW(e) {
return e instanceof Set;
}
-function MW(e) {
+function OW(e) {
return e.copy_ || e.base_;
}
-function NW(e, t) {
- if (AW(e)) return new Map(e);
- if (jW(e)) return new Set(e);
+function kW(e, t) {
+ if (EW(e)) return new Map(e);
+ if (DW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = TW(e);
+ let n = xW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[yW];
+ delete t[hW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -54565,40 +54565,40 @@ function NW(e, t) {
value: e[i]
});
}
- return Object.create(xW(e), t);
+ return Object.create(_W(e), t);
}
{
- let t = xW(e);
+ let t = _W(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function PW(e, t = !1) {
- return IW(e) || SW(e) || !CW(e) ? e : (DW(e) > 1 && Object.defineProperties(e, {
- set: FW,
- add: FW,
- clear: FW,
- delete: FW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => PW(e, !0)), e);
+function AW(e, t = !1) {
+ return MW(e) || vW(e) || !yW(e) ? e : (CW(e) > 1 && Object.defineProperties(e, {
+ set: jW,
+ add: jW,
+ clear: jW,
+ delete: jW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => AW(e, !0)), e);
}
-function SCe() {
- bW(2);
+function ECe() {
+ gW(2);
}
-var FW = { value: SCe };
-function IW(e) {
+var jW = { value: ECe };
+function MW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var CCe = {};
-function LW(e) {
- let t = CCe[e];
- return t || bW(0, e), t;
+var DCe = {};
+function NW(e) {
+ let t = DCe[e];
+ return t || gW(0, e), t;
}
-var RW;
-function zW() {
- return RW;
+var PW;
+function FW() {
+ return PW;
}
-function wCe(e, t) {
+function OCe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -54607,62 +54607,62 @@ function wCe(e, t) {
unfinalizedDrafts_: 0
};
}
-function BW(e, t) {
- t && (LW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function IW(e, t) {
+ t && (NW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function VW(e) {
- HW(e), e.drafts_.forEach(TCe), e.drafts_ = null;
+function LW(e) {
+ RW(e), e.drafts_.forEach(kCe), e.drafts_ = null;
}
-function HW(e) {
- e === RW && (RW = e.parent_);
+function RW(e) {
+ e === PW && (PW = e.parent_);
}
-function UW(e) {
- return RW = wCe(RW, e);
+function zW(e) {
+ return PW = OCe(PW, e);
}
-function TCe(e) {
- let t = e[yW];
+function kCe(e) {
+ let t = e[hW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function WW(e, t) {
+function BW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[yW].modified_ && (VW(t), bW(4)), CW(e) && (e = GW(t, e), t.parent_ || qW(t, e)), t.patches_ && LW("Patches").generateReplacementPatches_(n[yW].base_, e, t.patches_, t.inversePatches_)) : e = GW(t, n, []), VW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === _W ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[hW].modified_ && (LW(t), gW(4)), yW(e) && (e = VW(t, e), t.parent_ || UW(t, e)), t.patches_ && NW("Patches").generateReplacementPatches_(n[hW].base_, e, t.patches_, t.inversePatches_)) : e = VW(t, n, []), LW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === pW ? void 0 : e;
}
-function GW(e, t, n) {
- if (IW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[yW];
- if (!i) return EW(t, (r, a) => KW(e, i, t, r, a, n), r), t;
+function VW(e, t, n) {
+ if (MW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[hW];
+ if (!i) return SW(t, (r, a) => HW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return qW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return UW(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), EW(a, (r, a) => KW(e, i, t, r, a, n, o), r), qW(e, t, !1), n && e.patches_ && LW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), SW(a, (r, a) => HW(e, i, t, r, a, n, o), r), UW(e, t, !1), n && e.patches_ && NW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function KW(e, t, n, r, i, a, o) {
+function HW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = IW(i);
+ let s = MW(i);
if (!(s && !o)) {
- if (SW(i)) {
- let o = GW(e, i, a && t && t.type_ !== 3 && !OW(t.assigned_, r) ? a.concat(r) : void 0);
- if (kW(n, r, o), SW(o)) e.canAutoFreeze_ = !1;
+ if (vW(i)) {
+ let o = VW(e, i, a && t && t.type_ !== 3 && !wW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (TW(n, r, o), vW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (CW(i) && !s) {
+ if (yW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- GW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (AW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && qW(e, i);
+ VW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (EW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && UW(e, i);
}
}
}
-function qW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && PW(t, n);
+function UW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && AW(t, n);
}
-function ECe(e, t) {
+function ACe(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : zW(),
+ scope_: t ? t.scope_ : FW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -54672,41 +54672,41 @@ function ECe(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = JW;
- n && (i = [r], a = YW);
+ }, i = r, a = WW;
+ n && (i = [r], a = GW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var JW = {
+var WW = {
get(e, t) {
- if (t === yW) return e;
- let n = MW(e);
- if (!OW(n, t)) return DCe(e, n, t);
+ if (t === hW) return e;
+ let n = OW(e);
+ if (!wW(n, t)) return jCe(e, n, t);
let r = n[t];
- return e.finalized_ || !CW(r) ? r : r === XW(e.base_, t) ? ($W(e), e.copy_[t] = eG(r, e)) : r;
+ return e.finalized_ || !yW(r) ? r : r === KW(e.base_, t) ? (YW(e), e.copy_[t] = XW(r, e)) : r;
},
has(e, t) {
- return t in MW(e);
+ return t in OW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(MW(e));
+ return Reflect.ownKeys(OW(e));
},
set(e, t, n) {
- let r = ZW(MW(e), t);
+ let r = qW(OW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = XW(MW(e), t), i = r?.[yW];
+ let r = KW(OW(e), t), i = r?.[hW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (xCe(n, r) && (n !== void 0 || OW(e.base_, t))) return !0;
- $W(e), QW(e);
+ if (TCe(n, r) && (n !== void 0 || wW(e.base_, t))) return !0;
+ YW(e), JW(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return XW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, $W(e), QW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return KW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, YW(e), JW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = MW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = OW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -54715,48 +54715,48 @@ var JW = {
};
},
defineProperty() {
- bW(11);
+ gW(11);
},
getPrototypeOf(e) {
- return xW(e.base_);
+ return _W(e.base_);
},
setPrototypeOf() {
- bW(12);
+ gW(12);
}
-}, YW = {};
-EW(JW, (e, t) => {
- YW[e] = function() {
+}, GW = {};
+SW(WW, (e, t) => {
+ GW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), YW.deleteProperty = function(e, t) {
- return YW.set.call(this, e, t, void 0);
-}, YW.set = function(e, t, n) {
- return JW.set.call(this, e[0], t, n, e[0]);
+}), GW.deleteProperty = function(e, t) {
+ return GW.set.call(this, e, t, void 0);
+}, GW.set = function(e, t, n) {
+ return WW.set.call(this, e[0], t, n, e[0]);
};
-function XW(e, t) {
- let n = e[yW];
- return (n ? MW(n) : e)[t];
+function KW(e, t) {
+ let n = e[hW];
+ return (n ? OW(n) : e)[t];
}
-function DCe(e, t, n) {
- let r = ZW(t, n);
+function jCe(e, t, n) {
+ let r = qW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function ZW(e, t) {
+function qW(e, t) {
if (!(t in e)) return;
- let n = xW(e);
+ let n = _W(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = xW(n);
+ n = _W(n);
}
}
-function QW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && QW(e.parent_));
+function JW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && JW(e.parent_));
}
-function $W(e) {
- e.copy_ ||= NW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function YW(e) {
+ e.copy_ ||= kW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var OCe = class {
+var MCe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -54767,25 +54767,25 @@ var OCe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && bW(6), n !== void 0 && typeof n != "function" && bW(7);
+ typeof t != "function" && gW(6), n !== void 0 && typeof n != "function" && gW(7);
let r;
- if (CW(e)) {
- let i = UW(this), a = eG(e, void 0), o = !0;
+ if (yW(e)) {
+ let i = zW(this), a = XW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? VW(i) : HW(i);
+ o ? LW(i) : RW(i);
}
- return BW(i, n), WW(r, i);
+ return IW(i, n), BW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === _W && (r = void 0), this.autoFreeze_ && PW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === pW && (r = void 0), this.autoFreeze_ && AW(r, !0), n) {
let t = [], i = [];
- LW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ NW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- bW(1, e);
+ gW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -54799,15 +54799,15 @@ var OCe = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- CW(e) || bW(8), SW(e) && (e = kCe(e));
- let t = UW(this), n = eG(e, void 0);
- return n[yW].isManual_ = !0, HW(t), n;
+ yW(e) || gW(8), vW(e) && (e = NCe(e));
+ let t = zW(this), n = XW(e, void 0);
+ return n[hW].isManual_ = !0, RW(t), n;
}
finishDraft(e, t) {
- let n = e && e[yW];
- (!n || !n.isManual_) && bW(9);
+ let n = e && e[hW];
+ (!n || !n.isManual_) && gW(9);
let { scope_: r } = n;
- return BW(r, t), WW(void 0, r);
+ return IW(r, t), BW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -54831,35 +54831,35 @@ var OCe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = LW("Patches").applyPatches_;
- return SW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = NW("Patches").applyPatches_;
+ return vW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function eG(e, t) {
- let n = AW(e) ? LW("MapSet").proxyMap_(e, t) : jW(e) ? LW("MapSet").proxySet_(e, t) : ECe(e, t);
- return (t ? t.scope_ : zW()).drafts_.push(n), n;
+function XW(e, t) {
+ let n = EW(e) ? NW("MapSet").proxyMap_(e, t) : DW(e) ? NW("MapSet").proxySet_(e, t) : ACe(e, t);
+ return (t ? t.scope_ : FW()).drafts_.push(n), n;
}
-function kCe(e) {
- return SW(e) || bW(10, e), tG(e);
+function NCe(e) {
+ return vW(e) || gW(10, e), ZW(e);
}
-function tG(e) {
- if (!CW(e) || IW(e)) return e;
- let t = e[yW], n, r = !0;
+function ZW(e) {
+ if (!yW(e) || MW(e)) return e;
+ let t = e[hW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = NW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = NW(e, !0);
- return EW(n, (e, t) => {
- kW(n, e, tG(t));
+ t.finalized_ = !0, n = kW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = kW(e, !0);
+ return SW(n, (e, t) => {
+ TW(n, e, ZW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new OCe().produce;
-function nG(e) {
+new MCe().produce;
+function QW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var rG = GH({
+var $W = VH({
name: "legend",
initialState: {
settings: {
@@ -54883,43 +54883,43 @@ var rG = GH({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(nG(t.payload));
+ e.payload.push(QW(t.payload));
},
- prepare: VH()
+ prepare: LH()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MH(e).payload.indexOf(nG(n));
- i > -1 && (e.payload[i] = nG(r));
+ var { prev: n, next: r } = t.payload, i = OH(e).payload.indexOf(QW(n));
+ i > -1 && (e.payload[i] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeLegendPayload: {
reducer(e, t) {
- var n = MH(e).payload.indexOf(nG(t.payload));
+ var n = OH(e).payload.indexOf(QW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: VH()
+ prepare: LH()
}
}
-}), { setLegendSize: iG, setLegendSettings: ACe, addLegendPayload: aG, replaceLegendPayload: oG, removeLegendPayload: sG } = rG.actions, jCe = rG.reducer, MCe = /* @__PURE__ */ gt(((e) => {
+}), { setLegendSize: eG, setLegendSettings: PCe, addLegendPayload: tG, replaceLegendPayload: nG, removeLegendPayload: rG } = $W.actions, FCe = $W.reducer, ICe = /* @__PURE__ */ gt(((e) => {
var t = wt();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ gt(((e, t) => {
- t.exports = MCe();
+ t.exports = ICe();
})))();
-function NCe(e) {
+function LCe(e) {
e();
}
-function PCe() {
+function RCe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- NCe(() => {
+ LCe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -54941,12 +54941,12 @@ function PCe() {
}
};
}
-var cG = {
+var iG = {
notify() {},
get: () => []
};
-function FCe(e, t) {
- let n, r = cG, i = 0, a = !1;
+function zCe(e, t) {
+ let n, r = iG, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -54964,10 +54964,10 @@ function FCe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = PCe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = RCe());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = cG);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = iG);
}
function f() {
a || (a = !0, u());
@@ -54986,44 +54986,44 @@ function FCe(e, t) {
};
return m;
}
-var ICe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, LCe = typeof navigator < "u" && navigator.product === "ReactNative", RCe = ICe || LCe ? V.useLayoutEffect : V.useEffect;
-function lG(e, t) {
+var BCe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, VCe = typeof navigator < "u" && navigator.product === "ReactNative", HCe = BCe || VCe ? V.useLayoutEffect : V.useEffect;
+function aG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function zCe(e, t) {
- if (lG(e, t)) return !0;
+function UCe(e, t) {
+ if (aG(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !lG(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !aG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var BCe = /* @__PURE__ */ Symbol.for("react-redux-context"), VCe = typeof globalThis < "u" ? globalThis : {};
-function HCe() {
+var WCe = /* @__PURE__ */ Symbol.for("react-redux-context"), GCe = typeof globalThis < "u" ? globalThis : {};
+function KCe() {
if (!V.createContext) return {};
- let e = VCe[BCe] ??= /* @__PURE__ */ new Map(), t = e.get(V.createContext);
+ let e = GCe[WCe] ??= /* @__PURE__ */ new Map(), t = e.get(V.createContext);
return t || (t = V.createContext(null), e.set(V.createContext, t)), t;
}
-var UCe = /* @__PURE__ */ HCe();
-function WCe(e) {
+var qCe = /* @__PURE__ */ KCe();
+function JCe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = V.useMemo(() => {
- let e = FCe(i);
+ let e = zCe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = V.useMemo(() => i.getState(), [i]);
- RCe(() => {
+ HCe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || UCe;
+ let s = n || qCe;
return /* @__PURE__ */ V.createElement(s.Provider, { value: a }, t);
}
-var GCe = WCe, KCe = /* @__PURE__ */ new Set([
+var YCe = JCe, XCe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -55046,169 +55046,29 @@ var GCe = WCe, KCe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function qCe(e, t) {
+function ZCe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function uG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (KCe.has(n)) {
+function oG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (XCe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!zCe(e[n], t[n])) return !1;
- } else if (!qCe(e[n], t[n])) return !1;
+ if (!UCe(e[n], t[n])) return !1;
+ } else if (!ZCe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var JCe = ["contextPayload"];
-function dG() {
- return dG = Object.assign ? Object.assign.bind() : function(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t];
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
- }
- return e;
- }, dG.apply(null, arguments);
-}
-function fG(e, t) {
- var n = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- t && (r = r.filter(function(t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
- })), n.push.apply(n, r);
- }
- return n;
-}
-function pG(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? fG(Object(n), !0).forEach(function(t) {
- YCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
- });
- }
- return e;
-}
-function YCe(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 XCe(e) {
- var t = ZCe(e, "string");
- return typeof t == "symbol" ? t : t + "";
-}
-function ZCe(e, t) {
- if (typeof e != "object" || !e) return e;
- var n = e[Symbol.toPrimitive];
- if (n !== void 0) {
- var r = n.call(e, t || "default");
- if (typeof r != "object") return r;
- throw TypeError("@@toPrimitive must return a primitive value.");
- }
- return (t === "string" ? String : Number)(e);
-}
-function QCe(e, t) {
- if (e == null) return {};
- var n, r, i = $Ce(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 $Ce(e, t) {
- if (e == null) return {};
- var n = {};
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
- if (t.indexOf(r) !== -1) continue;
- n[r] = e[r];
- }
- return n;
-}
-function ewe(e) {
- return e.value;
-}
-function twe(e) {
- var { contextPayload: t } = e, n = QCe(e, JCe), r = DB(t, e.payloadUniqBy, ewe), i = pG(pG({}, n), {}, { payload: r });
- return /*#__PURE__*/ V.isValidElement(e.content) ? /*#__PURE__*/ V.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ V.createElement(e.content, i) : /*#__PURE__*/ V.createElement(nxe, i);
-}
-function nwe(e, t, n, r, i, a) {
- var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), pG(pG({}, l), u);
-}
-function rwe(e) {
- var t = NB();
- return (0, V.useEffect)(() => {
- t(ACe(e));
- }, [t, e]), null;
-}
-function iwe(e) {
- var t = NB();
- return (0, V.useEffect)(() => (t(iG(e)), () => {
- t(iG({
- width: 0,
- height: 0
- }));
- }), [t, e]), null;
-}
-function awe(e, t, n, r) {
- return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
-}
-var owe = {
- align: "center",
- iconSize: 14,
- inactiveColor: "#ccc",
- itemSorter: "value",
- layout: "horizontal",
- verticalAlign: "bottom"
-};
-function swe(e) {
- var t = nB(e, owe), n = lV(), r = Xye(), i = vCe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = dV([n]), d = lW(), f = uW();
- if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = awe(t.layout, o, a, p), h = c ? s : pG(pG({
- position: "absolute",
- width: m?.width || a || "auto",
- height: m?.height || o || "auto"
- }, nwe(s, t, i, d, f, l)), s), g = c ?? r;
- if (g == null || n == null) return null;
- var _ = /*#__PURE__*/ V.createElement("div", {
- className: "recharts-legend-wrapper",
- style: h,
- ref: u
- }, /*#__PURE__*/ V.createElement(rwe, {
- layout: t.layout,
- align: t.align,
- verticalAlign: t.verticalAlign,
- itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ V.createElement(iwe, {
- width: l.width,
- height: l.height
- }), /*#__PURE__*/ V.createElement(twe, dG({}, t, m, {
- margin: i,
- chartWidth: d,
- chartHeight: f,
- contextPayload: n
- })));
- return /*#__PURE__*/ (0, kt.createPortal)(_, g);
-}
-var mG = /*#__PURE__*/ V.memo(swe, uG);
-mG.displayName = "Legend";
-//#endregion
-//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function hG() {
- return hG = Object.assign ? Object.assign.bind() : function(e) {
+var QCe = ["contextPayload"];
+function sG() {
+ return sG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, hG.apply(null, arguments);
+ }, sG.apply(null, arguments);
}
-function gG(e, t) {
+function cG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55218,30 +55078,30 @@ function gG(e, t) {
}
return n;
}
-function _G(e) {
+function lG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? gG(Object(n), !0).forEach(function(t) {
- cwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gG(Object(n)).forEach(function(t) {
+ t % 2 ? cG(Object(n), !0).forEach(function(t) {
+ $Ce(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cG(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 $Ce(e, t, n) {
+ return (t = ewe(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 ewe(e) {
+ var t = twe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uwe(e, t) {
+function twe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55251,10 +55111,150 @@ function uwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
+function nwe(e, t) {
+ if (e == null) return {};
+ var n, r, i = rwe(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) {
+ if (e == null) return {};
+ var n = {};
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
+ if (t.indexOf(r) !== -1) continue;
+ n[r] = e[r];
+ }
+ return n;
+}
+function iwe(e) {
+ return e.value;
+}
+function awe(e) {
+ var { contextPayload: t } = e, n = nwe(e, QCe), r = EB(t, e.payloadUniqBy, iwe), i = lG(lG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ V.isValidElement(e.content) ? /*#__PURE__*/ V.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ V.createElement(e.content, i) : /*#__PURE__*/ V.createElement(rxe, i);
+}
+function owe(e, t, n, r, i, a) {
+ var { layout: o, align: s, verticalAlign: c } = t, l, u;
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), lG(lG({}, l), u);
+}
+function swe(e) {
+ var t = kB();
+ return (0, V.useEffect)(() => {
+ t(PCe(e));
+ }, [t, e]), null;
+}
+function cwe(e) {
+ var t = kB();
+ return (0, V.useEffect)(() => (t(eG(e)), () => {
+ t(eG({
+ width: 0,
+ height: 0
+ }));
+ }), [t, e]), null;
+}
+function lwe(e, t, n, r) {
+ return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
+}
+var uwe = {
+ align: "center",
+ iconSize: 14,
+ inactiveColor: "#ccc",
+ itemSorter: "value",
+ layout: "horizontal",
+ verticalAlign: "bottom"
+};
function dwe(e) {
- return Array.isArray(e) && Lz(e[0]) && Lz(e[1]) ? e.join(" ~ ") : e;
+ var t = tB(e, uwe), n = aV(), r = Zye(), i = SCe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = sV([n]), d = aW(), f = oW();
+ if (d == null || f == null) return null;
+ var p = d - (i?.left || 0) - (i?.right || 0), m = lwe(t.layout, o, a, p), h = c ? s : lG(lG({
+ position: "absolute",
+ width: m?.width || a || "auto",
+ height: m?.height || o || "auto"
+ }, owe(s, t, i, d, f, l)), s), g = c ?? r;
+ if (g == null || n == null) return null;
+ var _ = /*#__PURE__*/ V.createElement("div", {
+ className: "recharts-legend-wrapper",
+ style: h,
+ ref: u
+ }, /*#__PURE__*/ V.createElement(swe, {
+ layout: t.layout,
+ align: t.align,
+ verticalAlign: t.verticalAlign,
+ itemSorter: t.itemSorter
+ }), !c && /*#__PURE__*/ V.createElement(cwe, {
+ width: l.width,
+ height: l.height
+ }), /*#__PURE__*/ V.createElement(awe, sG({}, t, m, {
+ margin: i,
+ chartWidth: d,
+ chartHeight: f,
+ contextPayload: n
+ })));
+ return /*#__PURE__*/ (0, kt.createPortal)(_, g);
}
-var vG = {
+var uG = /*#__PURE__*/ V.memo(dwe, oG);
+uG.displayName = "Legend";
+//#endregion
+//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
+function dG() {
+ return dG = Object.assign ? Object.assign.bind() : function(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }, dG.apply(null, arguments);
+}
+function fG(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t && (r = r.filter(function(t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })), n.push.apply(n, r);
+ }
+ return n;
+}
+function pG(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t] == null ? {} : arguments[t];
+ t % 2 ? fG(Object(n), !0).forEach(function(t) {
+ fwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+}
+function fwe(e, t, n) {
+ return (t = pwe(t)) in e ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : e[t] = n, e;
+}
+function pwe(e) {
+ var t = mwe(e, "string");
+ return typeof t == "symbol" ? t : t + "";
+}
+function mwe(e, t) {
+ if (typeof e != "object" || !e) return e;
+ var n = e[Symbol.toPrimitive];
+ if (n !== void 0) {
+ var r = n.call(e, t || "default");
+ if (typeof r != "object") return r;
+ throw TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return (t === "string" ? String : Number)(e);
+}
+function hwe(e) {
+ return Array.isArray(e) && Iz(e[0]) && Iz(e[1]) ? e.join(" ~ ") : e;
+}
+var mG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -55272,30 +55272,30 @@ var vG = {
labelStyle: {},
accessibilityLayer: !1
};
-function fwe(e, t) {
- return t == null ? e : aV(e, t);
+function gwe(e, t) {
+ return t == null ? e : tV(e, t);
}
-var pwe = (e) => {
- var { separator: t = vG.separator, contentStyle: n, itemStyle: r, labelStyle: i = vG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = vG.accessibilityLayer } = e, p = () => {
+var _we = (e) => {
+ var { separator: t = mG.separator, contentStyle: n, itemStyle: r, labelStyle: i = mG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = mG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = fwe(a, s).map((e, n) => {
+ }, n = gwe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || dwe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || hwe, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = _G(_G({}, vG.itemStyle), {}, { color: e.color || vG.itemStyle.color }, r);
+ var f = pG(pG({}, mG.itemStyle), {}, { color: e.color || mG.itemStyle.color }, r);
return /*#__PURE__*/ V.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, Lz(u) ? /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, Lz(u) ? /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, Iz(u) ? /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, Iz(u) ? /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ V.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ V.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -55303,30 +55303,30 @@ var pwe = (e) => {
}, n);
}
return null;
- }, m = _G(_G({}, vG.contentStyle), n), h = _G({ margin: 0 }, i), g = !Uz(u), _ = g ? u : "", v = za("recharts-default-tooltip", c), y = za("recharts-tooltip-label", l);
+ }, m = pG(pG({}, mG.contentStyle), n), h = pG({ margin: 0 }, i), g = !Hz(u), _ = g ? u : "", v = za("recharts-default-tooltip", c), y = za("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ V.createElement("div", hG({
+ return /*#__PURE__*/ V.createElement("div", dG({
className: v,
style: m
}, b), /*#__PURE__*/ V.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ V.isValidElement(_) ? _ : `${_}`), p());
-}, yG = "recharts-tooltip-wrapper", mwe = { visibility: "hidden" };
-function hwe(e) {
+}, hG = "recharts-tooltip-wrapper", vwe = { visibility: "hidden" };
+function ywe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return za(yG, {
- [`${yG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${yG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${yG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${yG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return za(hG, {
+ [`${hG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${hG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${hG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${hG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function bG(e) {
+function gG(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -55334,13 +55334,13 @@ function bG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function gwe(e) {
+function bwe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function _we(e) {
+function xwe(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
- return s.height > 0 && s.width > 0 && n ? (d = bG({
+ return s.height > 0 && s.width > 0 && n ? (d = gG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -55350,7 +55350,7 @@ function _we(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = bG({
+ }), f = gG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -55360,27 +55360,27 @@ function _we(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = gwe({
+ }), u = bwe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = mwe, {
+ })) : u = vwe, {
cssProperties: u,
- cssClasses: hwe({
+ cssClasses: ywe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var xG = {
+var _G = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function SG() {
- var [e, t] = (0, V.useState)(() => xG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function vG() {
+ var [e, t] = (0, V.useState)(() => _G.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, V.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -55394,7 +55394,7 @@ function SG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function CG(e, t) {
+function yG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55404,30 +55404,30 @@ function CG(e, t) {
}
return n;
}
-function wG(e) {
+function bG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CG(Object(n), !0).forEach(function(t) {
- vwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CG(Object(n)).forEach(function(t) {
+ t % 2 ? yG(Object(n), !0).forEach(function(t) {
+ Swe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vwe(e, t, n) {
- return (t = ywe(t)) in e ? Object.defineProperty(e, t, {
+function Swe(e, t, n) {
+ return (t = Cwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ywe(e) {
- var t = bwe(e, "string");
+function Cwe(e) {
+ var t = wwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bwe(e, t) {
+function wwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55437,11 +55437,11 @@ function bwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function xwe(e) {
+function Twe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function Swe(e) {
- var t = SG(), [n, r] = V.useState(() => ({
+function Ewe(e) {
+ var t = vG(), [n, r] = V.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -55461,8 +55461,8 @@ function Swe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(wG(wG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = _we({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(bG(bG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = xwe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -55475,7 +55475,7 @@ function Swe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = wG(wG({}, e.hasPortalFromProps ? {} : wG(wG({ transition: xwe({
+ }), o = bG(bG({}, e.hasPortalFromProps ? {} : bG(bG({ transition: Twe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -55495,19 +55495,19 @@ function Swe(e) {
ref: e.innerRef
}, e.children);
}
-var Cwe = /*#__PURE__*/ V.memo(Swe), TG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Dwe = /*#__PURE__*/ V.memo(Ewe), xG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function EG() {
- return EG = Object.assign ? Object.assign.bind() : function(e) {
+function SG() {
+ return SG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, EG.apply(null, arguments);
+ }, SG.apply(null, arguments);
}
-function DG(e, t) {
+function CG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55517,30 +55517,30 @@ function DG(e, t) {
}
return n;
}
-function OG(e) {
+function wG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DG(Object(n), !0).forEach(function(t) {
- wwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {
+ t % 2 ? CG(Object(n), !0).forEach(function(t) {
+ Owe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wwe(e, t, n) {
- return (t = Twe(t)) in e ? Object.defineProperty(e, t, {
+function Owe(e, t, n) {
+ return (t = kwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Twe(e) {
- var t = Ewe(e, "string");
+function kwe(e) {
+ var t = Awe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ewe(e, t) {
+function Awe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55550,40 +55550,40 @@ function Ewe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kG = {
- curveBasisClosed: mbe,
- curveBasisOpen: hbe,
- curveBasis: pbe,
- curveBumpX: $ye,
- curveBumpY: ebe,
- curveLinearClosed: gbe,
- curveLinear: JR,
- curveMonotoneX: _be,
- curveMonotoneY: vbe,
- curveNatural: ybe,
- curveStep: bbe,
- curveStepAfter: Sbe,
- curveStepBefore: xbe
-}, AG = (e) => bU(e.x) && bU(e.y), jG = (e) => e.base != null && AG(e.base) && AG(e), MG = (e) => e.x, NG = (e) => e.y, Dwe = (e, t) => {
+var TG = {
+ curveBasisClosed: hbe,
+ curveBasisOpen: gbe,
+ curveBasis: mbe,
+ curveBumpX: ebe,
+ curveBumpY: tbe,
+ curveLinearClosed: _be,
+ curveLinear: qR,
+ curveMonotoneX: vbe,
+ curveMonotoneY: ybe,
+ curveNatural: bbe,
+ curveStep: xbe,
+ curveStepAfter: Cbe,
+ curveStepBefore: Sbe
+}, EG = (e) => gU(e.x) && gU(e.y), DG = (e) => e.base != null && EG(e.base) && EG(e), OG = (e) => e.x, kG = (e) => e.y, jwe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${Wz(e)}`;
+ var n = `curve${Uz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = kG[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = TG[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return kG[n] || JR;
-}, PG = {
+ return TG[n] || qR;
+}, AG = {
connectNulls: !1,
type: "linear"
-}, Owe = (e) => {
- var { type: t = PG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = PG.connectNulls } = e, o = Dwe(t, i), s = a ? n.filter(AG) : n;
+}, Mwe = (e) => {
+ var { type: t = AG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = AG.connectNulls } = e, o = jwe(t, i), s = a ? n.filter(EG) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => OG(OG({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? QR().y(NG).x1(MG).x0((e) => e.base.x) : QR().x(MG).y1(NG).y0((e) => e.base.y), c.defined(jG).curve(o)(a ? l.filter(jG) : l);
+ var c, l = n.map((e, t) => wG(wG({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? ZR().y(kG).x1(OG).x0((e) => e.base.x) : ZR().x(OG).y1(kG).y0((e) => e.base.y), c.defined(DG).curve(o)(a ? l.filter(DG) : l);
}
- return (i === "vertical" && Z(r) ? QR().y(NG).x1(MG).x0(r) : Z(r) ? QR().x(MG).y1(NG).y0(r) : ZR().x(MG).y(NG)).defined(AG).curve(o)(s);
-}, FG = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = fW();
+ return (i === "vertical" && Z(r) ? ZR().y(kG).x1(OG).x0(r) : Z(r) ? ZR().x(OG).y1(kG).y0(r) : XR().x(OG).y(kG)).defined(EG).curve(o)(s);
+}, jG = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = cW();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -55591,13 +55591,13 @@ var kG = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Owe(o) : r;
- return /*#__PURE__*/ V.createElement("path", EG({}, ER(e), $z(e), {
+ }, s = n && n.length ? Mwe(o) : r;
+ return /*#__PURE__*/ V.createElement("path", SG({}, TR(e), Qz(e), {
className: za("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, kwe = [
+}, Nwe = [
"x",
"y",
"top",
@@ -55606,16 +55606,16 @@ var kG = {
"height",
"className"
];
-function IG() {
- return IG = Object.assign ? Object.assign.bind() : function(e) {
+function MG() {
+ return MG = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, IG.apply(null, arguments);
+ }, MG.apply(null, arguments);
}
-function LG(e, t) {
+function NG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55625,30 +55625,30 @@ function LG(e, t) {
}
return n;
}
-function Awe(e) {
+function Pwe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? LG(Object(n), !0).forEach(function(t) {
- jwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LG(Object(n)).forEach(function(t) {
+ t % 2 ? NG(Object(n), !0).forEach(function(t) {
+ Fwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jwe(e, t, n) {
- return (t = Mwe(t)) in e ? Object.defineProperty(e, t, {
+function Fwe(e, t, n) {
+ return (t = Iwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Mwe(e) {
- var t = Nwe(e, "string");
+function Iwe(e) {
+ var t = Lwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Nwe(e, t) {
+function Lwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55658,16 +55658,16 @@ function Nwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Pwe(e, t) {
+function Rwe(e, t) {
if (e == null) return {};
- var n, r, i = Fwe(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 Fwe(e, t) {
+function zwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55676,8 +55676,8 @@ function Fwe(e, t) {
}
return n;
}
-var Iwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Lwe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Pwe(e, kwe), l = Awe({
+var Bwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Vwe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Rwe(e, Nwe), l = Pwe({
x: t,
y: n,
top: r,
@@ -55685,14 +55685,14 @@ var Iwe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Lwe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ V.createElement("path", IG({}, OR(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ V.createElement("path", MG({}, DR(l), {
className: za("recharts-cross", s),
- d: Iwe(t, n, a, o, r, i)
+ d: Bwe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function Rwe(e, t, n, r) {
+function Hwe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -55705,7 +55705,7 @@ function Rwe(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function RG(e, t) {
+function PG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55715,30 +55715,30 @@ function RG(e, t) {
}
return n;
}
-function zG(e) {
+function FG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? RG(Object(n), !0).forEach(function(t) {
- zwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RG(Object(n)).forEach(function(t) {
+ t % 2 ? PG(Object(n), !0).forEach(function(t) {
+ Uwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zwe(e, t, n) {
- return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
+function Uwe(e, t, n) {
+ return (t = Wwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Bwe(e) {
- var t = Vwe(e, "string");
+function Wwe(e) {
+ var t = Gwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Vwe(e, t) {
+function Gwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55748,10 +55748,10 @@ function Vwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Hwe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), BG = (e, t, n) => e.map((e) => `${Hwe(e)} ${t}ms ${n}`).join(","), Uwe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), VG = (e, t) => Object.keys(t).reduce((n, r) => zG(zG({}, n), {}, { [r]: e(r, t[r]) }), {});
+var Kwe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), IG = (e, t, n) => e.map((e) => `${Kwe(e)} ${t}ms ${n}`).join(","), qwe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), LG = (e, t) => Object.keys(t).reduce((n, r) => FG(FG({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function HG(e, t) {
+function RG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55761,30 +55761,30 @@ function HG(e, t) {
}
return n;
}
-function UG(e) {
+function zG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HG(Object(n), !0).forEach(function(t) {
- Wwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HG(Object(n)).forEach(function(t) {
+ t % 2 ? RG(Object(n), !0).forEach(function(t) {
+ Jwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wwe(e, t, n) {
- return (t = Gwe(t)) in e ? Object.defineProperty(e, t, {
+function Jwe(e, t, n) {
+ return (t = Ywe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Gwe(e) {
- var t = Kwe(e, "string");
+function Ywe(e) {
+ var t = Xwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kwe(e, t) {
+function Xwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55794,51 +55794,51 @@ function Kwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var WG = (e, t, n) => e + (t - e) * n, GG = (e) => {
+var BG = (e, t, n) => e + (t - e) * n, VG = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, KG = (e, t, n) => {
- var r = VG((t, n) => {
- if (GG(n)) {
+}, HG = (e, t, n) => {
+ var r = LG((t, n) => {
+ if (VG(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return UG(UG({}, n), {}, {
+ return zG(zG({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? VG((e, t) => GG(t) && r[e] != null ? UG(UG({}, t), {}, {
- velocity: WG(t.velocity, r[e].velocity, n),
- from: WG(t.from, r[e].from, n)
- }) : t, t) : KG(e, r, n - 1);
+ return n < 1 ? LG((e, t) => VG(t) && r[e] != null ? zG(zG({}, t), {}, {
+ velocity: BG(t.velocity, r[e].velocity, n),
+ from: BG(t.from, r[e].from, n)
+ }) : t, t) : HG(e, r, n - 1);
};
-function qwe(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => UG(UG({}, n), {}, { [r]: {
+function Zwe(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => zG(zG({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => VG((e, t) => t.from, s), l = () => !Object.values(s).filter(GG).length, u = null, d = (r) => {
+ } }), {}), c = () => LG((e, t) => t.from, s), l = () => !Object.values(s).filter(VG).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = KG(n, s, f), i(UG(UG(UG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = HG(n, s, f), i(zG(zG(zG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function Jwe(e, t, n, r, i, a, o) {
+function Qwe(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
- return i == null || a == null ? n : UG(UG({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : zG(zG({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = VG((e, t) => WG(...t, n(d)), c);
- if (a(UG(UG(UG({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = LG((e, t) => BG(...t, n(d)), c);
+ if (a(zG(zG(zG({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = VG((e, t) => WG(...t, n(1)), c);
- a(UG(UG(UG({}, e), t), p));
+ var p = LG((e, t) => BG(...t, n(1)), c);
+ a(zG(zG(zG({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -55846,15 +55846,15 @@ function Jwe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var Ywe = (e, t, n, r, i, a) => {
- var o = Uwe(e, t);
- return n == null ? () => (i(UG(UG({}, e), t)), () => {}) : n.isStepper === !0 ? qwe(e, t, n, o, i, a) : Jwe(e, t, n, r, o, i, a);
-}, qG = (e, t) => [
+var $we = (e, t, n, r, i, a) => {
+ var o = qwe(e, t);
+ return n == null ? () => (i(zG(zG({}, e), t)), () => {}) : n.isStepper === !0 ? Zwe(e, t, n, o, i, a) : Qwe(e, t, n, r, o, i, a);
+}, UG = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], JG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), YG = (e, t) => (n) => JG(qG(e, t), n), Xwe = (e, t) => (n) => JG([...qG(e, t).map((e, t) => e * t).slice(1), 0], n), Zwe = (e) => {
+], WG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), GG = (e, t) => (n) => WG(UG(e, t), n), eTe = (e, t) => (n) => WG([...UG(e, t).map((e, t) => e * t).slice(1), 0], n), tTe = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -55866,7 +55866,7 @@ var Ywe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, Qwe = function() {
+}, nTe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -55900,7 +55900,7 @@ var Ywe = (e, t, n, r, i, a) => {
1
];
default:
- var t = Zwe(e[0]);
+ var t = tTe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -55909,8 +55909,8 @@ var Ywe = (e, t, n, r, i, a) => {
1,
1
];
-}, $we = (e, t, n, r) => {
- var i = YG(e, n), a = YG(t, r), o = Xwe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, rTe = (e, t, n, r) => {
+ var i = GG(e, n), a = GG(t, r), o = eTe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -55919,29 +55919,29 @@ var Ywe = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, XG = function() {
- return $we(...Qwe(...arguments));
-}, eTe = function() {
+}, KG = function() {
+ return rTe(...nTe(...arguments));
+}, iTe = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, tTe = (e) => {
+}, aTe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return XG(e);
- case "spring": return eTe();
- default: if (e.split("(")[0] === "cubic-bezier") return XG(e);
+ case "linear": return KG(e);
+ case "spring": return iTe();
+ default: if (e.split("(")[0] === "cubic-bezier") return KG(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function nTe(e) {
+function oTe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -55972,7 +55972,7 @@ function nTe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var rTe = class {
+var sTe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -55984,14 +55984,14 @@ var rTe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function iTe() {
- return nTe(new rTe());
+function cTe() {
+ return oTe(new sTe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var aTe = /*#__PURE__*/ (0, V.createContext)(iTe);
-function oTe(e, t) {
- var n = (0, V.useContext)(aTe);
+var lTe = /*#__PURE__*/ (0, V.createContext)(cTe);
+function uTe(e, t) {
+ var n = (0, V.useContext)(lTe);
return (0, V.useMemo)(() => t ?? n(e), [
e,
t,
@@ -56000,7 +56000,7 @@ function oTe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var sTe = {
+var dTe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -56008,14 +56008,14 @@ var sTe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, ZG = { t: 0 }, QG = { t: 1 };
-function $G(e) {
- var t = nB(e, sTe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = SG(), d = n === "auto" ? !xG.isSsr && !u : n, f = oTe(t.animationId, t.animationManager), [p, m] = (0, V.useState)(d ? ZG : QG), h = (0, V.useRef)(null);
+}, qG = { t: 0 }, JG = { t: 1 };
+function YG(e) {
+ var t = tB(e, dTe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = vG(), d = n === "auto" ? !_G.isSsr && !u : n, f = uTe(t.animationId, t.animationManager), [p, m] = (0, V.useState)(d ? qG : JG), h = (0, V.useRef)(null);
return (0, V.useEffect)(() => {
- d || m(QG);
+ d || m(JG);
}, [d]), (0, V.useEffect)(() => {
- if (!d || !r) return Kz;
- var e = Ywe(ZG, QG, tTe(a), i, m, f.getTimeoutController());
+ if (!d || !r) return Gz;
+ var e = $we(qG, JG, aTe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -56040,14 +56040,14 @@ function $G(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function eK(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, V.useRef)(Rz(t)), r = (0, V.useRef)(e);
- return r.current !== e && (n.current = Rz(t), r.current = e), n.current;
+function XG(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, V.useRef)(Lz(t)), r = (0, V.useRef)(e);
+ return r.current !== e && (n.current = Lz(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var cTe = ["radius"], lTe = ["radius"], uTe, dTe, fTe, pTe, mTe, hTe, gTe, _Te, vTe, yTe;
-function tK(e, t) {
+var fTe = ["radius"], pTe = ["radius"], mTe, hTe, gTe, _Te, vTe, yTe, bTe, xTe, STe, CTe;
+function ZG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56057,30 +56057,30 @@ function tK(e, t) {
}
return n;
}
-function nK(e) {
+function QG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tK(Object(n), !0).forEach(function(t) {
- bTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tK(Object(n)).forEach(function(t) {
+ t % 2 ? ZG(Object(n), !0).forEach(function(t) {
+ wTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bTe(e, t, n) {
- return (t = xTe(t)) in e ? Object.defineProperty(e, t, {
+function wTe(e, t, n) {
+ return (t = TTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xTe(e) {
- var t = STe(e, "string");
+function TTe(e) {
+ var t = ETe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function STe(e, t) {
+function ETe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56090,25 +56090,25 @@ function STe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function rK() {
- return rK = Object.assign ? Object.assign.bind() : function(e) {
+function $G() {
+ return $G = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, rK.apply(null, arguments);
+ }, $G.apply(null, arguments);
}
-function iK(e, t) {
+function eK(e, t) {
if (e == null) return {};
- var n, r, i = CTe(e, t);
+ var n, r, i = DTe(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 CTe(e, t) {
+function DTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56117,11 +56117,11 @@ function CTe(e, t) {
}
return n;
}
-function aK(e, t) {
+function tK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var oK = (e, t, n, r, i) => {
- var a = Mz(n), o = Mz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var nK = (e, t, n, r, i) => {
+ var a = jz(n), o = jz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -56132,44 +56132,44 @@ var oK = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = Nz(uTe ||= aK([
+ d = Mz(mTe ||= tK([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += Nz(dTe ||= aK([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += Mz(hTe ||= tK([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += Nz(fTe ||= aK([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += Mz(gTe ||= tK([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += Nz(pTe ||= aK([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Mz(_Te ||= tK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Nz(mTe ||= aK([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Mz(vTe ||= tK([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Nz(hTe ||= aK([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Mz(yTe ||= tK([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Nz(gTe ||= aK([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Mz(bTe ||= tK([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += Nz(_Te ||= aK([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Mz(xTe ||= tK([
"A ",
",",
",0,0,",
@@ -56179,8 +56179,8 @@ var oK = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = Nz(vTe ||= aK(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = Nz(yTe ||= aK([
+ d = Mz(STe ||= tK(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = Mz(CTe ||= tK([
"M ",
",",
" h ",
@@ -56189,7 +56189,7 @@ var oK = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, sK = {
+}, rK = {
x: 0,
y: 0,
width: 0,
@@ -56200,15 +56200,15 @@ var oK = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, cK = (e) => {
- var t = nB(e, sK), n = (0, V.useRef)(null), [r, i] = (0, V.useState)(-1);
+}, iK = (e) => {
+ var t = tB(e, rK), n = (0, V.useRef)(null), [r, i] = (0, V.useState)(-1);
(0, V.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, V.useRef)(s), _ = (0, V.useRef)(c), v = (0, V.useRef)(a), y = (0, V.useRef)(o), b = eK((0, V.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, V.useRef)(s), _ = (0, V.useRef)(c), v = (0, V.useRef)(a), y = (0, V.useRef)(o), b = XG((0, V.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -56224,19 +56224,19 @@ var oK = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = za("recharts-rectangle", u);
if (!h) {
- var S = OR(t), { radius: C } = S, w = iK(S, cTe);
- return /*#__PURE__*/ V.createElement("path", rK({}, w, {
- x: Mz(a),
- y: Mz(o),
- width: Mz(s),
- height: Mz(c),
+ var S = DR(t), { radius: C } = S, w = eK(S, fTe);
+ return /*#__PURE__*/ V.createElement("path", $G({}, w, {
+ x: jz(a),
+ y: jz(o),
+ width: jz(s),
+ height: jz(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: oK(a, o, s, c, l)
+ d: nK(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = BG(["strokeDasharray"], f, typeof d == "string" ? d : sK.animationEasing);
- return /*#__PURE__*/ V.createElement($G, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = IG(["strokeDasharray"], f, typeof d == "string" ? d : rK.animationEasing);
+ return /*#__PURE__*/ V.createElement(YG, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -56245,24 +56245,24 @@ var oK = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = Vz(T, s, e), i = Vz(E, c, e), u = Vz(D, a, e), d = Vz(O, o, e);
+ var r = Bz(T, s, e), i = Bz(E, c, e), u = Bz(D, a, e), d = Bz(O, o, e);
n.current && (g.current = r, _.current = i, v.current = u, y.current = d);
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = OR(t), { radius: h } = p, b = iK(p, lTe);
- return /*#__PURE__*/ V.createElement("path", rK({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = DR(t), { radius: h } = p, b = eK(p, pTe);
+ return /*#__PURE__*/ V.createElement("path", $G({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: oK(u, d, r, i, l),
+ d: nK(u, d, r, i, l),
ref: n,
- style: nK(nK({}, f), t.style)
+ style: QG(QG({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function lK(e, t) {
+function aK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56272,30 +56272,30 @@ function lK(e, t) {
}
return n;
}
-function uK(e) {
+function oK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? lK(Object(n), !0).forEach(function(t) {
- wTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lK(Object(n)).forEach(function(t) {
+ t % 2 ? aK(Object(n), !0).forEach(function(t) {
+ OTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wTe(e, t, n) {
- return (t = TTe(t)) in e ? Object.defineProperty(e, t, {
+function OTe(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 TTe(e) {
- var t = ETe(e, "string");
+function kTe(e) {
+ var t = ATe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ETe(e, t) {
+function ATe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56305,10 +56305,10 @@ function ETe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var dK = Math.PI / 180, fK = (e) => e * Math.PI / 180, DTe = (e) => e * 180 / Math.PI, pK = (e, t, n, r) => ({
- x: e + Math.cos(-dK * r) * n,
- y: t + Math.sin(-dK * r) * n
-}), OTe = function(e, t) {
+var sK = Math.PI / 180, cK = (e) => e * Math.PI / 180, jTe = (e) => e * 180 / Math.PI, lK = (e, t, n, r) => ({
+ x: e + Math.cos(-sK * r) * n,
+ y: t + Math.sin(-sK * r) * n
+}), MTe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -56319,11 +56319,11 @@ var dK = Math.PI / 180, fK = (e) => e * Math.PI / 180, DTe = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, kTe = (e, t) => {
+}, NTe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, ATe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = kTe({
+}, PTe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = NTe({
x: n,
y: r
}, {
@@ -56337,25 +56337,25 @@ var dK = Math.PI / 180, fK = (e) => e * Math.PI / 180, DTe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: DTe(c),
+ angle: jTe(c),
angleInRadian: c
};
-}, jTe = (e) => {
+}, FTe = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, MTe = (e, t) => {
+}, ITe = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, NTe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = ATe({
+}, LTe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = PTe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = jTe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = FTe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -56365,17 +56365,17 @@ var dK = Math.PI / 180, fK = (e) => e * Math.PI / 180, DTe = (e) => e * 180 / Ma
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? uK(uK({}, t), {}, {
+ return d ? oK(oK({}, t), {}, {
radius: i,
- angle: MTe(u, t)
+ angle: ITe(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function mK(e) {
+function uK(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [pK(t, n, r, i), pK(t, n, r, a)],
+ points: [lK(t, n, r, i), lK(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -56385,29 +56385,29 @@ function mK(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var PTe, FTe, ITe, LTe, RTe, zTe, BTe;
-function hK() {
- return hK = Object.assign ? Object.assign.bind() : function(e) {
+var RTe, zTe, BTe, VTe, HTe, UTe, WTe;
+function dK() {
+ return dK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, hK.apply(null, arguments);
+ }, dK.apply(null, arguments);
}
-function gK(e, t) {
+function fK(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) => {
- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / dK, d = c ? i : i + a * u, f = pK(t, n, l, d), p = pK(t, n, r, d), m = c ? i - a * u : i;
+var GTe = (e, t) => Nz(t - e) * Math.min(Math.abs(t - e), 359.999), pK = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / sK, d = c ? i : i + a * u, f = lK(t, n, l, d), p = lK(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: pK(t, n, l * Math.cos(u * dK), m),
+ lineTangency: lK(t, n, l * Math.cos(u * sK), m),
theta: u
};
-}, vK = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = VTe(a, o), c = a + s, l = pK(t, n, i, a), u = pK(t, n, i, c), d = Nz(PTe ||= gK([
+}, mK = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = GTe(a, o), c = a + s, l = lK(t, n, i, a), u = lK(t, n, i, c), d = Mz(RTe ||= fK([
"M ",
",",
"\n A ",
@@ -56419,8 +56419,8 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = pK(t, n, r, a), p = pK(t, n, r, c);
- d += Nz(FTe ||= gK([
+ var f = lK(t, n, r, a), p = lK(t, n, r, c);
+ d += Mz(zTe ||= fK([
"L ",
",",
"\n A ",
@@ -56431,14 +56431,14 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += Nz(ITe ||= gK([
+ } else d += Mz(BTe ||= fK([
"L ",
",",
" Z"
]), t, n);
return d;
-}, HTe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Pz(l - c), { circleTangency: d, lineTangency: f, theta: p } = _K({
+}, KTe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Nz(l - c), { circleTangency: d, lineTangency: f, theta: p } = pK({
cx: t,
cy: n,
radius: i,
@@ -56446,7 +56446,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = _K({
+ }), { circleTangency: m, lineTangency: h, theta: g } = pK({
cx: t,
cy: n,
radius: i,
@@ -56455,7 +56455,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? Nz(LTe ||= gK([
+ if (_ < 0) return o ? Mz(VTe ||= fK([
"M ",
",",
"\n a",
@@ -56465,7 +56465,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : vK({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : mK({
cx: t,
cy: n,
innerRadius: r,
@@ -56473,7 +56473,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
startAngle: c,
endAngle: l
});
- var v = Nz(RTe ||= gK([
+ var v = Mz(HTe ||= fK([
"M ",
",",
"\n A",
@@ -56495,7 +56495,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = _K({
+ var { circleTangency: y, lineTangency: b, theta: x } = pK({
cx: t,
cy: n,
radius: r,
@@ -56504,7 +56504,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = _K({
+ }), { circleTangency: S, lineTangency: C, theta: w } = pK({
cx: t,
cy: n,
radius: r,
@@ -56515,7 +56515,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += Nz(zTe ||= gK([
+ v += Mz(UTe ||= fK([
"L",
",",
"\n A",
@@ -56536,13 +56536,13 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += Nz(BTe ||= gK([
+ } else v += Mz(WTe ||= fK([
"L",
",",
"Z"
]), t, n);
return v;
-}, UTe = {
+}, qTe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -56552,10 +56552,10 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, yK = (e) => {
- var t = nB(e, UTe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, hK = (e) => {
+ var t = tB(e, qTe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = za("recharts-sector", d), p = a - i, m = zz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? HTe({
+ var f = za("recharts-sector", d), p = a - i, m = Rz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? KTe({
cx: n,
cy: r,
innerRadius: i,
@@ -56565,7 +56565,7 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : vK({
+ }) : mK({
cx: n,
cy: r,
innerRadius: i,
@@ -56573,14 +56573,14 @@ var VTe = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 359.999), _K = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ V.createElement("path", hK({}, OR(t), {
+ return /*#__PURE__*/ V.createElement("path", dK({}, DR(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function WTe(e, t, n) {
+function JTe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -56595,9 +56595,9 @@ function WTe(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (Qz(t)) {
+ if (Zz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = pK(r, i, a, s), l = pK(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = lK(r, i, a, s), l = lK(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -56606,30 +56606,30 @@ function WTe(e, t, n) {
y: l.y
}];
}
- return mK(t);
+ return uK(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function GTe(e) {
- return Oz(e) ? NaN : Number(e);
+function YTe(e) {
+ return Dz(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function bK(e) {
- return e ? (e = GTe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function gK(e) {
+ return e ? (e = YTe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function xK(e, t, n) {
- n && typeof n != "number" && QB(e, t, n) && (t = n = void 0), e = bK(e), t === void 0 ? (t = e, e = 0) : t = bK(t), n = n === void 0 ? e < t ? 1 : -1 : bK(n);
+function _K(e, t, n) {
+ n && typeof n != "number" && JB(e, t, n) && (t = n = void 0), e = gK(e), t === void 0 ? (t = e, e = 0) : t = gK(t), n = n === void 0 ? e < t ? 1 : -1 : gK(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var SK = (e) => e.chartData, CK = $([SK], (e) => {
+var vK = (e) => e.chartData, yK = $([vK], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -56637,35 +56637,35 @@ var SK = (e) => e.chartData, CK = $([SK], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), wK = (e, t, n, r) => r ? CK(e) : SK(e), TK = (e, t, n) => n ? CK(e) : SK(e);
+}), bK = (e, t, n, r) => r ? yK(e) : vK(e), xK = (e, t, n) => n ? yK(e) : vK(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function EK(e) {
+function SK(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (bU(t) && bU(n)) return !0;
+ if (gU(t) && gU(n)) return !0;
}
return !1;
}
-function DK(e, t, n) {
+function CK(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function OK(e, t) {
+function wK(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (bU(n)) i = n;
+ if (gU(n)) i = n;
else if (typeof n == "function") return;
- if (bU(r)) a = r;
+ if (gU(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (EK(o)) return o;
+ if (SK(o)) return o;
}
}
-function KTe(e, t, n) {
+function XTe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (EK(r)) return DK(r, t, n);
+ if (SK(r)) return CK(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -56674,8 +56674,8 @@ function KTe(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && NU.test(i)) {
- var c = NU.exec(i);
+ else if (typeof i == "string" && kU.test(i)) {
+ var c = kU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -56687,8 +56687,8 @@ function KTe(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && PU.test(a)) {
- var u = PU.exec(a);
+ else if (typeof a == "string" && AU.test(a)) {
+ var u = AU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -56696,13 +56696,13 @@ function KTe(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (EK(f)) return t == null ? f : DK(f, t, n);
+ if (SK(f)) return t == null ? f : CK(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var kK = /* @__PURE__ */ bt((/* @__PURE__ */ gt(((e, t) => {
+var TK = /* @__PURE__ */ bt((/* @__PURE__ */ gt(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -57078,75 +57078,75 @@ var kK = /* @__PURE__ */ bt((/* @__PURE__ */ gt(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function AK(e) {
- return e === 0 ? 1 : Math.floor(new kK.default(e).abs().log(10).toNumber()) + 1;
+function EK(e) {
+ return e === 0 ? 1 : Math.floor(new TK.default(e).abs().log(10).toNumber()) + 1;
}
-function jK(e, t, n) {
- for (var r = new kK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function DK(e, t, n) {
+ for (var r = new TK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var MK = (e) => {
+var OK = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
-}, NK = (e, t, n) => {
- if (e.lte(0)) return new kK.default(0);
- var r = AK(e.toNumber()), i = new kK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new kK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new kK.default(s.toNumber()) : new kK.default(Math.ceil(s.toNumber()));
-}, PK = (e, t, n) => {
- if (e.lte(0)) return new kK.default(0);
+}, kK = (e, t, n) => {
+ if (e.lte(0)) return new TK.default(0);
+ var r = EK(e.toNumber()), i = new TK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new TK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new TK.default(s.toNumber()) : new TK.default(Math.ceil(s.toNumber()));
+}, AK = (e, t, n) => {
+ if (e.lte(0)) return new TK.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new kK.default(i).abs().log(10).toNumber()), o = new kK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new TK.default(i).abs().log(10).toNumber()), o = new TK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new kK.default(10).pow(l));
+ c %= r.length, o = o.mul(new TK.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new kK.default(u).mul(o);
- return t ? d : new kK.default(Math.ceil(d.toNumber()));
-}, qTe = (e, t, n) => {
- var r = new kK.default(1), i = new kK.default(e);
+ var u = r[c] ?? 1, d = new TK.default(u).mul(o);
+ return t ? d : new TK.default(Math.ceil(d.toNumber()));
+}, ZTe = (e, t, n) => {
+ var r = new TK.default(1), i = new TK.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new kK.default(10).pow(AK(e) - 1), i = new kK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new kK.default(Math.floor(e)));
- } else e === 0 ? i = new kK.default(Math.floor((t - 1) / 2)) : n || (i = new kK.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new kK.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new TK.default(10).pow(EK(e) - 1), i = new TK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new TK.default(Math.floor(e)));
+ } else e === 0 ? i = new TK.default(Math.floor((t - 1) / 2)) : n || (i = new TK.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new TK.default(c - o).mul(r)).toNumber());
return s;
-}, FK = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : NK;
+}, jK = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : kK;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new kK.default(0),
- tickMin: new kK.default(0),
- tickMax: new kK.default(0)
- };
- var o = a(new kK.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new kK.default(0) : (s = new kK.default(e).add(t).div(2), s = s.sub(new kK.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new kK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? FK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new TK.default(0),
+ tickMin: new TK.default(0),
+ tickMax: new TK.default(0)
+ };
+ var o = a(new TK.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new TK.default(0) : (s = new TK.default(e).add(t).div(2), s = s.sub(new TK.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new TK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? jK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new kK.default(c).mul(o)),
- tickMax: s.add(new kK.default(l).mul(o))
+ tickMin: s.sub(new TK.default(c).mul(o)),
+ tickMax: s.add(new TK.default(l).mul(o))
});
-}, IK = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = MK([t, n]);
+}, MK = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = OK([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return qTe(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = FK(s, c, o, i, 0, a === "snap125" ? PK : NK), p = jK(d, f.add(new kK.default(.1).mul(u)), u);
+ if (s === c) return ZTe(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = jK(s, c, o, i, 0, a === "snap125" ? AK : kK), p = DK(d, f.add(new TK.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, LK = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = MK([n, r]);
+}, NK = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = OK([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? PK : NK, l = Math.max(t, 2), u = c(new kK.default(s).sub(o).div(l - 1), i, 0), d = [...jK(new kK.default(o), new kK.default(s), u), s];
+ var c = a === "snap125" ? AK : kK, l = Math.max(t, 2), u = c(new TK.default(s).sub(o).div(l - 1), i, 0), d = [...DK(new TK.default(o), new TK.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, RK = (e) => e.rootProps.maxBarSize, zK = (e) => e.rootProps.barGap, BK = (e) => e.rootProps.barCategoryGap, VK = (e) => e.rootProps.barSize, HK = (e) => e.rootProps.stackOffset, UK = (e) => e.rootProps.reverseStackOrder, WK = (e) => e.options.chartName, GK = (e) => e.rootProps.syncId, KK = (e) => e.rootProps.syncMethod, qK = (e) => e.options.eventEmitter, JTe = (e) => e.rootProps.baseValue, JK = {
+}, PK = (e) => e.rootProps.maxBarSize, FK = (e) => e.rootProps.barGap, IK = (e) => e.rootProps.barCategoryGap, LK = (e) => e.rootProps.barSize, RK = (e) => e.rootProps.stackOffset, zK = (e) => e.rootProps.reverseStackOrder, BK = (e) => e.options.chartName, VK = (e) => e.rootProps.syncId, HK = (e) => e.rootProps.syncMethod, UK = (e) => e.options.eventEmitter, QTe = (e) => e.rootProps.baseValue, WK = {
grid: -100,
barBackground: -50,
area: 100,
@@ -57159,7 +57159,7 @@ var MK = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, YK = {
+}, GK = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -57180,8 +57180,8 @@ var MK = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: JK.axis
-}, XK = {
+ zIndex: WK.axis
+}, KK = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -57200,19 +57200,19 @@ var MK = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: JK.axis
-}, ZK = (e, t) => {
+ zIndex: WK.axis
+}, qK = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function QK(e, t, n) {
+function JK(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return TU(e, t) ? "category" : "number";
+ if (e != null) return xU(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function $K(e, t) {
+function YK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57222,30 +57222,30 @@ function $K(e, t) {
}
return n;
}
-function eq(e) {
+function XK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $K(Object(n), !0).forEach(function(t) {
- YTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(Object(n)).forEach(function(t) {
+ t % 2 ? YK(Object(n), !0).forEach(function(t) {
+ $Te(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YTe(e, t, n) {
- return (t = XTe(t)) in e ? Object.defineProperty(e, t, {
+function $Te(e, t, n) {
+ return (t = eEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XTe(e) {
- var t = ZTe(e, "string");
+function eEe(e) {
+ var t = tEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZTe(e, t) {
+function tEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57255,81 +57255,81 @@ function ZTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var tq = {
- allowDataOverflow: YK.allowDataOverflow,
- allowDecimals: YK.allowDecimals,
+var ZK = {
+ allowDataOverflow: GK.allowDataOverflow,
+ allowDecimals: GK.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: YK.angleAxisId,
+ id: GK.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: YK.reversed,
- scale: YK.scale,
- tick: YK.tick,
+ reversed: GK.reversed,
+ scale: GK.scale,
+ tick: GK.tick,
tickCount: void 0,
ticks: void 0,
- type: YK.type,
+ type: GK.type,
unit: void 0,
niceTicks: "auto"
-}, nq = {
- allowDataOverflow: XK.allowDataOverflow,
- allowDecimals: XK.allowDecimals,
- allowDuplicatedCategory: XK.allowDuplicatedCategory,
+}, QK = {
+ allowDataOverflow: KK.allowDataOverflow,
+ allowDecimals: KK.allowDecimals,
+ allowDuplicatedCategory: KK.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: XK.radiusAxisId,
- includeHidden: XK.includeHidden,
+ id: KK.radiusAxisId,
+ includeHidden: KK.includeHidden,
name: void 0,
- reversed: XK.reversed,
- scale: XK.scale,
- tick: XK.tick,
- tickCount: XK.tickCount,
+ reversed: KK.reversed,
+ scale: KK.scale,
+ tick: KK.tick,
+ tickCount: KK.tickCount,
ticks: void 0,
- type: XK.type,
+ type: KK.type,
unit: void 0,
niceTicks: "auto"
-}, rq = $([(e, t) => {
+}, $K = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, mW], (e, t) => {
+}, uW], (e, t) => {
if (e != null) return e;
- var n = QK(t, "angleAxis", tq.type) ?? "category";
- return eq(eq({}, tq), {}, { type: n });
-}), iq = $([(e, t) => e.polarAxis.radiusAxis[t], mW], (e, t) => {
+ var n = JK(t, "angleAxis", ZK.type) ?? "category";
+ return XK(XK({}, ZK), {}, { type: n });
+}), eq = $([(e, t) => e.polarAxis.radiusAxis[t], uW], (e, t) => {
if (e != null) return e;
- var n = QK(t, "radiusAxis", nq.type) ?? "category";
- return eq(eq({}, nq), {}, { type: n });
-}), aq = (e) => e.polarOptions, oq = $([
- RU,
- zU,
- GU
-], OTe), sq = $([aq, oq], (e, t) => {
- if (e != null) return zz(e.innerRadius, t, 0);
-}), cq = $([aq, oq], (e, t) => {
- if (e != null) return zz(e.outerRadius, t, t * .8);
-}), lq = $([aq], (e) => {
+ var n = JK(t, "radiusAxis", QK.type) ?? "category";
+ return XK(XK({}, QK), {}, { type: n });
+}), tq = (e) => e.polarOptions, nq = $([
+ PU,
+ FU,
+ VU
+], MTe), rq = $([tq, nq], (e, t) => {
+ if (e != null) return Rz(e.innerRadius, t, 0);
+}), iq = $([tq, nq], (e, t) => {
+ if (e != null) return Rz(e.outerRadius, t, t * .8);
+}), aq = $([tq], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), QTe = $([rq, lq], ZK), uq = $([
- oq,
- sq,
- cq
+}), nEe = $([$K, aq], qK), oq = $([
+ nq,
+ rq,
+ iq
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), $Te = $([iq, uq], ZK), dq = $([
- dW,
- aq,
- sq,
- cq,
- RU,
- zU
+}), rEe = $([eq, oq], qK), sq = $([
+ sW,
+ tq,
+ rq,
+ iq,
+ PU,
+ FU
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: zz(o, i, i / 2),
- cy: zz(s, a, a / 2),
+ cx: Rz(o, i, i / 2),
+ cy: Rz(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -57337,22 +57337,22 @@ var tq = {
clockWise: !1
};
}
-}), fq = (e, t) => t, pq = (e, t, n) => n;
+}), cq = (e, t) => t, lq = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function mq(e) {
+function uq(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function hq(e, t, n) {
+function dq(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = mq(e);
+ var n = uq(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(wU(t, a, null)), c = wU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(bU(t, a, null)), c = bU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -57360,18 +57360,18 @@ function hq(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function gq(e) {
+function fq(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var _q = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var pq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function vq(e, t) {
+function mq(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function eEe(e, t) {
+function iEe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -57380,13 +57380,13 @@ function eEe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var yq = (e) => {
- var t = dW(e);
+var hq = (e) => {
+ var t = sW(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, bq = (e) => e.tooltip.settings.axisId;
+}, gq = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function xq(e) {
+function _q(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -57427,13 +57427,13 @@ function xq(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var Sq = (e, t) => {
+var vq = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!EK(t)) {
+ if (!SK(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- bU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ gU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
}
return n !== void 0 && r !== void 0 ? [n, r] : void 0;
}
@@ -57443,14 +57443,14 @@ var Sq = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function Cq(e, t) {
+function yq(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function wq(e) {
+function bq(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = tEe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = aEe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -57476,15 +57476,15 @@ function wq(e) {
right: i
};
}
-function tEe(e) {
- return (t, n) => Cq(e(t), n);
+function aEe(e) {
+ return (t, n) => yq(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function Tq(e) {
+function xq(e) {
return e === null ? NaN : +e;
}
-function* nEe(e, t) {
+function* oEe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -57493,52 +57493,52 @@ function* nEe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var Eq = wq(Cq), Dq = Eq.right;
-Eq.left, wq(Tq).center;
+var Sq = bq(yq), Cq = Sq.right;
+Sq.left, bq(xq).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var Oq = class extends Map {
- constructor(e, t = aEe) {
+var wq = class extends Map {
+ constructor(e, t = lEe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(kq(this, e));
+ return super.get(Tq(this, e));
}
has(e) {
- return super.has(kq(this, e));
+ return super.has(Tq(this, e));
}
set(e, t) {
- return super.set(rEe(this, e), t);
+ return super.set(sEe(this, e), t);
}
delete(e) {
- return super.delete(iEe(this, e));
+ return super.delete(cEe(this, e));
}
};
-function kq({ _intern: e, _key: t }, n) {
+function Tq({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function rEe({ _intern: e, _key: t }, n) {
+function sEe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function iEe({ _intern: e, _key: t }, n) {
+function cEe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function aEe(e) {
+function lEe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var Aq = Math.sqrt(50), jq = Math.sqrt(10), Mq = Math.sqrt(2);
-function Nq(e, t, n) {
+var Eq = Math.sqrt(50), Dq = Math.sqrt(10), Oq = Math.sqrt(2);
+function kq(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = Pq(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = Aq(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -57549,17 +57549,17 @@ function Nq(e, t, n) {
}
return r && o.reverse(), o;
}
-function Pq(e, t, n) {
+function Aq(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= Aq ? 10 : a >= jq ? 5 : a >= Mq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= Aq ? 10 : a >= jq ? 5 : a >= Mq ? 2 : 1);
+ return i >= 0 ? (a >= Eq ? 10 : a >= Dq ? 5 : a >= Oq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= Eq ? 10 : a >= Dq ? 5 : a >= Oq ? 2 : 1);
}
-function Fq(e, t, n) {
+function jq(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= Aq ? i *= 10 : a >= jq ? i *= 5 : a >= Mq && (i *= 2), t < e ? -i : i;
+ return a >= Eq ? i *= 10 : a >= Dq ? i *= 5 : a >= Oq && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Iq(e, t) {
+function Mq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -57570,7 +57570,7 @@ function Iq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Lq(e, t) {
+function Nq(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -57581,36 +57581,36 @@ function Lq(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function Rq(e, t, n = 0, r = e.length - 1, i = Cq) {
+function Pq(e, t, n = 0, r = e.length - 1, i = yq) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- Rq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ Pq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (zq(e, n, t), i(e[r], a) > 0 && zq(e, n, r); o < s;) {
- for (zq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (Fq(e, n, t), i(e[r], a) > 0 && Fq(e, n, r); o < s;) {
+ for (Fq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? zq(e, n, s) : (++s, zq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? Fq(e, n, s) : (++s, Fq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function zq(e, t, n) {
+function Fq(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function oEe(e, t, n) {
- if (e = Float64Array.from(nEe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return Lq(e);
- if (t >= 1) return Iq(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = Iq(Rq(e, a).subarray(0, a + 1));
- return o + (Lq(e.subarray(a + 1)) - o) * (i - a);
+function uEe(e, t, n) {
+ if (e = Float64Array.from(oEe(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return Nq(e);
+ if (t >= 1) return Mq(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = Mq(Pq(e, a).subarray(0, a + 1));
+ return o + (Nq(e.subarray(a + 1)) - o) * (i - a);
}
}
-function sEe(e, t, n = Tq) {
+function dEe(e, t, n = xq) {
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);
@@ -57620,14 +57620,14 @@ function sEe(e, t, n = Tq) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function cEe(e, t, n) {
+function fEe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function Bq(e, t) {
+function Iq(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -57638,7 +57638,7 @@ function Bq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function Vq(e, t) {
+function Lq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -57648,7 +57648,7 @@ function Vq(e, t) {
}
return this;
}
-function Hq(e, t) {
+function Rq(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -57660,20 +57660,20 @@ function Hq(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var Uq = Symbol("implicit");
-function Wq() {
- var e = new Oq(), t = [], n = [], r = Uq;
+var zq = Symbol("implicit");
+function Bq() {
+ var e = new wq(), t = [], n = [], r = zq;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== Uq) return r;
+ if (r !== zq) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new Oq();
+ t = [], e = new wq();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -57681,18 +57681,18 @@ function Wq() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return Wq(t, n).unknown(r);
- }, Vq.apply(i, arguments), i;
+ return Bq(t, n).unknown(r);
+ }, Lq.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function Gq() {
- var e = Wq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function Vq() {
+ var e = Bq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = cEe(e).map(function(e) {
+ var m = fEe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -57718,32 +57718,32 @@ function Gq() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return Gq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, Vq.apply(d(), arguments);
+ return Vq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, Lq.apply(d(), arguments);
}
-function Kq(e) {
+function Hq(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return Kq(t());
+ return Hq(t());
}, e;
}
-function lEe() {
- return Kq(Gq.apply(null, arguments).paddingInner(1));
+function pEe() {
+ return Hq(Vq.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function qq(e, t, n) {
+function Uq(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function Jq(e, t) {
+function Wq(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function Yq() {}
-var Xq = .7, Zq = 1 / Xq, Qq = "\\s*([+-]?\\d+)\\s*", $q = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", eJ = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", uEe = /^#([0-9a-f]{3,8})$/, dEe = RegExp(`^rgb\\(${Qq},${Qq},${Qq}\\)$`), fEe = RegExp(`^rgb\\(${eJ},${eJ},${eJ}\\)$`), pEe = RegExp(`^rgba\\(${Qq},${Qq},${Qq},${$q}\\)$`), mEe = RegExp(`^rgba\\(${eJ},${eJ},${eJ},${$q}\\)$`), hEe = RegExp(`^hsl\\(${$q},${eJ},${eJ}\\)$`), gEe = RegExp(`^hsla\\(${$q},${eJ},${eJ},${$q}\\)$`), tJ = {
+function Gq() {}
+var Kq = .7, qq = 1 / Kq, Jq = "\\s*([+-]?\\d+)\\s*", Yq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Xq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", mEe = /^#([0-9a-f]{3,8})$/, hEe = RegExp(`^rgb\\(${Jq},${Jq},${Jq}\\)$`), gEe = RegExp(`^rgb\\(${Xq},${Xq},${Xq}\\)$`), _Ee = RegExp(`^rgba\\(${Jq},${Jq},${Jq},${Yq}\\)$`), vEe = RegExp(`^rgba\\(${Xq},${Xq},${Xq},${Yq}\\)$`), yEe = RegExp(`^hsl\\(${Yq},${Xq},${Xq}\\)$`), bEe = RegExp(`^hsla\\(${Yq},${Xq},${Xq},${Yq}\\)$`), Zq = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -57893,170 +57893,170 @@ var Xq = .7, Zq = 1 / Xq, Qq = "\\s*([+-]?\\d+)\\s*", $q = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-qq(Yq, iJ, {
+Uq(Gq, eJ, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: nJ,
- formatHex: nJ,
- formatHex8: _Ee,
- formatHsl: vEe,
- formatRgb: rJ,
- toString: rJ
+ hex: Qq,
+ formatHex: Qq,
+ formatHex8: xEe,
+ formatHsl: SEe,
+ formatRgb: $q,
+ toString: $q
});
-function nJ() {
+function Qq() {
return this.rgb().formatHex();
}
-function _Ee() {
+function xEe() {
return this.rgb().formatHex8();
}
-function vEe() {
- return hJ(this).formatHsl();
+function SEe() {
+ return dJ(this).formatHsl();
}
-function rJ() {
+function $q() {
return this.rgb().formatRgb();
}
-function iJ(e) {
+function eJ(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = uEe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? aJ(t) : n === 3 ? new cJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? oJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? oJ(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 = dEe.exec(e)) ? new cJ(t[1], t[2], t[3], 1) : (t = fEe.exec(e)) ? new cJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = pEe.exec(e)) ? oJ(t[1], t[2], t[3], t[4]) : (t = mEe.exec(e)) ? oJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = hEe.exec(e)) ? mJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = gEe.exec(e)) ? mJ(t[1], t[2] / 100, t[3] / 100, t[4]) : tJ.hasOwnProperty(e) ? aJ(tJ[e]) : e === "transparent" ? new cJ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = mEe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? tJ(t) : n === 3 ? new iJ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? nJ(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? nJ(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 = hEe.exec(e)) ? new iJ(t[1], t[2], t[3], 1) : (t = gEe.exec(e)) ? new iJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = _Ee.exec(e)) ? nJ(t[1], t[2], t[3], t[4]) : (t = vEe.exec(e)) ? nJ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = yEe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = bEe.exec(e)) ? uJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Zq.hasOwnProperty(e) ? tJ(Zq[e]) : e === "transparent" ? new iJ(NaN, NaN, NaN, 0) : null;
}
-function aJ(e) {
- return new cJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function tJ(e) {
+ return new iJ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function oJ(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new cJ(e, t, n, r);
+function nJ(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new iJ(e, t, n, r);
}
-function yEe(e) {
- return e instanceof Yq || (e = iJ(e)), e ? (e = e.rgb(), new cJ(e.r, e.g, e.b, e.opacity)) : new cJ();
+function CEe(e) {
+ return e instanceof Gq || (e = eJ(e)), e ? (e = e.rgb(), new iJ(e.r, e.g, e.b, e.opacity)) : new iJ();
}
-function sJ(e, t, n, r) {
- return arguments.length === 1 ? yEe(e) : new cJ(e, t, n, r ?? 1);
+function rJ(e, t, n, r) {
+ return arguments.length === 1 ? CEe(e) : new iJ(e, t, n, r ?? 1);
}
-function cJ(e, t, n, r) {
+function iJ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-qq(cJ, sJ, Jq(Yq, {
+Uq(iJ, rJ, Wq(Gq, {
brighter(e) {
- return e = e == null ? Zq : Zq ** +e, new cJ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? qq : qq ** +e, new iJ(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? Xq : Xq ** +e, new cJ(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? Kq : Kq ** +e, new iJ(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new cJ(fJ(this.r), fJ(this.g), fJ(this.b), dJ(this.opacity));
+ return new iJ(cJ(this.r), cJ(this.g), cJ(this.b), sJ(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: lJ,
- formatHex: lJ,
- formatHex8: bEe,
- formatRgb: uJ,
- toString: uJ
+ hex: aJ,
+ formatHex: aJ,
+ formatHex8: wEe,
+ formatRgb: oJ,
+ toString: oJ
}));
-function lJ() {
- return `#${pJ(this.r)}${pJ(this.g)}${pJ(this.b)}`;
+function aJ() {
+ return `#${lJ(this.r)}${lJ(this.g)}${lJ(this.b)}`;
}
-function bEe() {
- return `#${pJ(this.r)}${pJ(this.g)}${pJ(this.b)}${pJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function wEe() {
+ return `#${lJ(this.r)}${lJ(this.g)}${lJ(this.b)}${lJ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function uJ() {
- let e = dJ(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${fJ(this.r)}, ${fJ(this.g)}, ${fJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function oJ() {
+ let e = sJ(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${cJ(this.r)}, ${cJ(this.g)}, ${cJ(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function dJ(e) {
+function sJ(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function fJ(e) {
+function cJ(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function pJ(e) {
- return e = fJ(e), (e < 16 ? "0" : "") + e.toString(16);
+function lJ(e) {
+ return e = cJ(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function mJ(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new gJ(e, t, n, r);
+function uJ(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new fJ(e, t, n, r);
}
-function hJ(e) {
- if (e instanceof gJ) return new gJ(e.h, e.s, e.l, e.opacity);
- if (e instanceof Yq || (e = iJ(e)), !e) return new gJ();
- if (e instanceof gJ) return e;
+function dJ(e) {
+ if (e instanceof fJ) return new fJ(e.h, e.s, e.l, e.opacity);
+ if (e instanceof Gq || (e = eJ(e)), !e) return new fJ();
+ if (e instanceof fJ) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new gJ(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new fJ(o, s, c, e.opacity);
}
-function xEe(e, t, n, r) {
- return arguments.length === 1 ? hJ(e) : new gJ(e, t, n, r ?? 1);
+function TEe(e, t, n, r) {
+ return arguments.length === 1 ? dJ(e) : new fJ(e, t, n, r ?? 1);
}
-function gJ(e, t, n, r) {
+function fJ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-qq(gJ, xEe, Jq(Yq, {
+Uq(fJ, TEe, Wq(Gq, {
brighter(e) {
- return e = e == null ? Zq : Zq ** +e, new gJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? qq : qq ** +e, new fJ(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? Xq : Xq ** +e, new gJ(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? Kq : Kq ** +e, new fJ(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new cJ(yJ(e >= 240 ? e - 240 : e + 120, i, r), yJ(e, i, r), yJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new iJ(hJ(e >= 240 ? e - 240 : e + 120, i, r), hJ(e, i, r), hJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new gJ(_J(this.h), vJ(this.s), vJ(this.l), dJ(this.opacity));
+ return new fJ(pJ(this.h), mJ(this.s), mJ(this.l), sJ(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = dJ(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${_J(this.h)}, ${vJ(this.s) * 100}%, ${vJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = sJ(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${pJ(this.h)}, ${mJ(this.s) * 100}%, ${mJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function _J(e) {
+function pJ(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function vJ(e) {
+function mJ(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function yJ(e, t, n) {
+function hJ(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var bJ = (e) => () => e;
+var gJ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function SEe(e, t) {
+function EEe(e, t) {
return function(n) {
return e + n * t;
};
}
-function CEe(e, t, n) {
+function DEe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function wEe(e) {
- return (e = +e) == 1 ? xJ : function(t, n) {
- return n - t ? CEe(t, n, e) : bJ(isNaN(t) ? n : t);
+function OEe(e) {
+ return (e = +e) == 1 ? _J : function(t, n) {
+ return n - t ? DEe(t, n, e) : gJ(isNaN(t) ? n : t);
};
}
-function xJ(e, t) {
+function _J(e, t) {
var n = t - e;
- return n ? SEe(e, n) : bJ(isNaN(e) ? t : e);
+ return n ? EEe(e, n) : gJ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var SJ = (function e(t) {
- var n = wEe(t);
+var vJ = (function e(t) {
+ var n = OEe(t);
function r(e, t) {
- var r = n((e = sJ(e)).r, (t = sJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = xJ(e.opacity, t.opacity);
+ var r = n((e = rJ(e)).r, (t = rJ(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = _J(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -58065,7 +58065,7 @@ var SJ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function TEe(e, t) {
+function kEe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -58073,14 +58073,14 @@ function TEe(e, t) {
return r;
};
}
-function EEe(e) {
+function AEe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function DEe(e, t) {
+function jEe(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] = EJ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = SJ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -58089,7 +58089,7 @@ function DEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function OEe(e, t) {
+function MEe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -58097,16 +58097,16 @@ function OEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function CJ(e, t) {
+function yJ(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function kEe(e, t) {
+function NEe(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] = EJ(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = SJ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -58114,45 +58114,45 @@ function kEe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var wJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, TJ = new RegExp(wJ.source, "g");
-function AEe(e) {
+var bJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, xJ = new RegExp(bJ.source, "g");
+function PEe(e) {
return function() {
return e;
};
}
-function jEe(e) {
+function FEe(e) {
return function(t) {
return e(t) + "";
};
}
-function MEe(e, t) {
- var n = wJ.lastIndex = TJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = wJ.exec(e)) && (i = TJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function IEe(e, t) {
+ var n = bJ.lastIndex = xJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = bJ.exec(e)) && (i = xJ.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: CJ(r, i)
- })), n = TJ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? jEe(c[0].x) : AEe(t) : (t = c.length, function(e) {
+ x: yJ(r, i)
+ })), n = xJ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? FEe(c[0].x) : PEe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function EJ(e, t) {
+function SJ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? bJ(t) : (n === "number" ? CJ : n === "string" ? (r = iJ(t)) ? (t = r, SJ) : MEe : t instanceof iJ ? SJ : t instanceof Date ? OEe : EEe(t) ? TEe : Array.isArray(t) ? DEe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? kEe : CJ)(e, t);
+ return t == null || n === "boolean" ? gJ(t) : (n === "number" ? yJ : n === "string" ? (r = eJ(t)) ? (t = r, vJ) : IEe : t instanceof eJ ? vJ : t instanceof Date ? MEe : AEe(t) ? kEe : Array.isArray(t) ? jEe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? NEe : yJ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function DJ(e, t) {
+function CJ(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function NEe(e, t) {
- t === void 0 && (t = e, e = EJ);
+function LEe(e, t) {
+ t === void 0 && (t = e, e = SJ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -58161,69 +58161,69 @@ function NEe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function PEe(e) {
+function REe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function OJ(e) {
+function wJ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var kJ = [0, 1];
-function AJ(e) {
+var TJ = [0, 1];
+function EJ(e) {
return e;
}
-function jJ(e, t) {
+function DJ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : PEe(isNaN(t) ? NaN : .5);
+ } : REe(isNaN(t) ? NaN : .5);
}
-function FEe(e, t) {
+function zEe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function IEe(e, t, n) {
+function BEe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = jJ(i, r), a = n(o, a)) : (r = jJ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = DJ(i, r), a = n(o, a)) : (r = DJ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function LEe(e, t, n) {
+function VEe(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] = jJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = DJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = Dq(e, t, 1, r) - 1;
+ var n = Cq(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function MJ(e, t) {
+function OJ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function NJ() {
- var e = kJ, t = kJ, n = EJ, r, i, a, o = AJ, s, c, l;
+function kJ() {
+ var e = TJ, t = TJ, n = SJ, r, i, a, o = EJ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== AJ && (o = FEe(e[0], e[n - 1])), s = n > 2 ? LEe : IEe, c = l = null, d;
+ return o !== EJ && (o = zEe(e[0], e[n - 1])), s = n > 2 ? VEe : BEe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), CJ))(n)));
+ return o(i((l ||= s(t, e.map(r), yJ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, OJ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, wJ), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = DJ, u();
+ return t = Array.from(e), n = CJ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : AJ, u()) : o !== AJ;
+ return arguments.length ? (o = e ? !0 : EJ, u()) : o !== EJ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -58232,27 +58232,27 @@ function NJ() {
return r = e, i = t, u();
};
}
-function PJ() {
- return NJ()(AJ, AJ);
+function AJ() {
+ return kJ()(EJ, EJ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function REe(e) {
+function HEe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function FJ(e, t) {
+function jJ(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function IJ(e) {
- return e = FJ(Math.abs(e)), e ? e[1] : NaN;
+function MJ(e) {
+ return e = jJ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function zEe(e, t) {
+function UEe(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);
@@ -58260,7 +58260,7 @@ function zEe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function BEe(e) {
+function WEe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -58269,11 +58269,11 @@ function BEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var VEe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function LJ(e) {
- if (!(t = VEe.exec(e))) throw Error("invalid format: " + e);
+var GEe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function NJ(e) {
+ if (!(t = GEe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new RJ({
+ return new PJ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -58286,16 +58286,16 @@ function LJ(e) {
type: t[10]
});
}
-LJ.prototype = RJ.prototype;
-function RJ(e) {
+NJ.prototype = PJ.prototype;
+function PJ(e) {
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
-RJ.prototype.toString = function() {
+PJ.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function HEe(e) {
+function KEe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -58311,46 +58311,46 @@ function HEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var zJ;
-function UEe(e, t) {
- var n = FJ(e, t);
- if (!n) return zJ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (zJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + FJ(e, Math.max(0, t + a - 1))[0];
+var FJ;
+function qEe(e, t) {
+ var n = jJ(e, t);
+ if (!n) return FJ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (FJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + jJ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function BJ(e, t) {
- var n = FJ(e, t);
+function IJ(e, t) {
+ var n = jJ(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region node_modules/d3-format/src/formatTypes.js
-var VJ = {
+var LJ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: REe,
+ d: HEe,
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) => BJ(e * 100, t),
- r: BJ,
- s: UEe,
+ p: (e, t) => IJ(e * 100, t),
+ r: IJ,
+ s: qEe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
//#endregion
//#region node_modules/d3-format/src/identity.js
-function HJ(e) {
+function RJ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var UJ = Array.prototype.map, WJ = [
+var zJ = Array.prototype.map, BJ = [
"y",
"z",
"a",
@@ -58369,13 +58369,13 @@ var UJ = Array.prototype.map, WJ = [
"Z",
"Y"
];
-function WEe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? HJ : zEe(UJ.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 ? HJ : BEe(UJ.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 JEe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? RJ : UEe(zJ.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 ? RJ : WEe(zJ.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 = LJ(e);
+ e = NJ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
- y === "n" ? (g = !0, y = "g") : VJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = VJ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : LJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = LJ[y], C = /[defgprs%]/.test(y);
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
function w(e) {
var n = b, r = x, o, l, p;
@@ -58383,7 +58383,7 @@ function WEe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = HEe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && zJ !== void 0 ? WJ[8 + zJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = KEe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && FJ !== void 0 ? BJ[8 + FJ / 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;
@@ -58411,7 +58411,7 @@ function WEe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(IJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = LJ(e), e.type = "f", e), { suffix: WJ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(MJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = NJ(e), e.type = "f", e), { suffix: BJ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -58423,65 +58423,65 @@ function WEe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var GJ, KJ, qJ;
-GEe({
+var VJ, HJ, UJ;
+YEe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function GEe(e) {
- return GJ = WEe(e), KJ = GJ.format, qJ = GJ.formatPrefix, GJ;
+function YEe(e) {
+ return VJ = JEe(e), HJ = VJ.format, UJ = VJ.formatPrefix, VJ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function KEe(e) {
- return Math.max(0, -IJ(Math.abs(e)));
+function XEe(e) {
+ return Math.max(0, -MJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function qEe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(IJ(t) / 3))) * 3 - IJ(Math.abs(e)));
+function ZEe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(MJ(t) / 3))) * 3 - MJ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function JEe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, IJ(t) - IJ(e)) + 1;
+function QEe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, MJ(t) - MJ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function JJ(e, t, n, r) {
- var i = Fq(e, t, n), a;
- switch (r = LJ(r ?? ",f"), r.type) {
+function WJ(e, t, n, r) {
+ var i = jq(e, t, n), a;
+ switch (r = NJ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = qEe(i, o)) && (r.precision = a), qJ(r, o);
+ return r.precision == null && !isNaN(a = ZEe(i, o)) && (r.precision = a), UJ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = JEe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = QEe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = KEe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = XEe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return KJ(r);
+ return HJ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function YJ(e) {
+function GJ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return Nq(n[0], n[n.length - 1], e ?? 10);
+ return kq(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return JJ(r[0], r[r.length - 1], e ?? 10, n);
+ return WJ(r[0], r[r.length - 1], e ?? 10, n);
}, e.nice = function(n) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = Pq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = Aq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -58490,64 +58490,64 @@ function YJ(e) {
return e;
}, e;
}
-function XJ() {
- var e = PJ();
+function KJ() {
+ var e = AJ();
return e.copy = function() {
- return MJ(e, XJ());
- }, Vq.apply(e, arguments), YJ(e);
+ return OJ(e, KJ());
+ }, Lq.apply(e, arguments), GJ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function ZJ(e) {
+function qJ(e) {
var t;
function n(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, OJ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, wJ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return ZJ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, OJ) : [0, 1], YJ(n);
+ return qJ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, wJ) : [0, 1], GJ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function QJ(e, t) {
+function JJ(e, t) {
e = e.slice();
var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region node_modules/d3-scale/src/log.js
-function $J(e) {
+function YJ(e) {
return Math.log(e);
}
-function eY(e) {
+function XJ(e) {
return Math.exp(e);
}
-function YEe(e) {
+function $Ee(e) {
return -Math.log(-e);
}
-function XEe(e) {
+function eDe(e) {
return -Math.exp(-e);
}
-function ZEe(e) {
+function tDe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function QEe(e) {
- return e === 10 ? ZEe : e === Math.E ? Math.exp : (t) => e ** +t;
+function nDe(e) {
+ return e === 10 ? tDe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function $Ee(e) {
+function rDe(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 tY(e) {
+function ZJ(e) {
return (t, n) => -e(-t, n);
}
-function nY(e) {
- let t = e($J, eY), n = t.domain, r = 10, i, a;
+function QJ(e) {
+ let t = e(YJ, XJ), n = t.domain, r = 10, i, a;
function o() {
- return i = $Ee(r), a = QEe(r), n()[0] < 0 ? (i = tY(i), a = tY(a), e(YEe, XEe)) : e($J, eY), t;
+ return i = rDe(r), a = nDe(r), n()[0] < 0 ? (i = ZJ(i), a = ZJ(a), e($Ee, eDe)) : e(YJ, XJ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -58567,100 +58567,100 @@ function nY(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = Nq(o, s, p));
- } else m = Nq(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = kq(o, s, p));
+ } else m = kq(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = LJ(n)).precision == null && (n.trim = !0), n = KJ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = NJ(n)).precision == null && (n.trim = !0), n = HJ(n)), e === Infinity) return n;
let o = Math.max(1, r * e / t.ticks().length);
return (e) => {
let t = e / a(Math.round(i(e)));
return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";
};
- }, t.nice = () => n(QJ(n(), {
+ }, t.nice = () => n(JJ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function rY() {
- let e = nY(NJ()).domain([1, 10]);
- return e.copy = () => MJ(e, rY()).base(e.base()), Vq.apply(e, arguments), e;
+function $J() {
+ let e = QJ(kJ()).domain([1, 10]);
+ return e.copy = () => OJ(e, $J()).base(e.base()), Lq.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function iY(e) {
+function eY(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function aY(e) {
+function tY(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function oY(e) {
- var t = 1, n = e(iY(t), aY(t));
+function nY(e) {
+ var t = 1, n = e(eY(t), tY(t));
return n.constant = function(n) {
- return arguments.length ? e(iY(t = +n), aY(t)) : t;
- }, YJ(n);
+ return arguments.length ? e(eY(t = +n), tY(t)) : t;
+ }, GJ(n);
}
-function sY() {
- var e = oY(NJ());
+function rY() {
+ var e = nY(kJ());
return e.copy = function() {
- return MJ(e, sY()).constant(e.constant());
- }, Vq.apply(e, arguments);
+ return OJ(e, rY()).constant(e.constant());
+ }, Lq.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function cY(e) {
+function iY(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function eDe(e) {
+function iDe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function tDe(e) {
+function aDe(e) {
return e < 0 ? -e * e : e * e;
}
-function lY(e) {
- var t = e(AJ, AJ), n = 1;
+function aY(e) {
+ var t = e(EJ, EJ), n = 1;
function r() {
- return n === 1 ? e(AJ, AJ) : n === .5 ? e(eDe, tDe) : e(cY(n), cY(1 / n));
+ return n === 1 ? e(EJ, EJ) : n === .5 ? e(iDe, aDe) : e(iY(n), iY(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, YJ(t);
+ }, GJ(t);
}
-function uY() {
- var e = lY(NJ());
+function oY() {
+ var e = aY(kJ());
return e.copy = function() {
- return MJ(e, uY()).exponent(e.exponent());
- }, Vq.apply(e, arguments), e;
+ return OJ(e, oY()).exponent(e.exponent());
+ }, Lq.apply(e, arguments), e;
}
-function nDe() {
- return uY.apply(null, arguments).exponent(.5);
+function oDe() {
+ return oY.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function dY(e) {
+function sY(e) {
return Math.sign(e) * e * e;
}
-function rDe(e) {
+function sDe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function fY() {
- var e = PJ(), t = [0, 1], n = !1, r;
+function cY() {
+ var e = AJ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = rDe(e(t));
+ var i = sDe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(dY(t));
+ return e.invert(sY(t));
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, OJ)).map(dY)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, wJ)).map(sY)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -58670,20 +58670,20 @@ function fY() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return fY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, Vq.apply(i, arguments), YJ(i);
+ return cY(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, Lq.apply(i, arguments), GJ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function pY() {
+function lY() {
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] = sEe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = dEe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[Dq(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[Cq(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -58692,7 +58692,7 @@ function pY() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(Cq), i();
+ return e.sort(yq), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -58700,15 +58700,15 @@ function pY() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return pY().domain(e).range(t).unknown(r);
- }, Vq.apply(a, arguments);
+ return lY().domain(e).range(t).unknown(r);
+ }, Lq.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function mY() {
+function uY() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[Dq(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[Cq(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -58727,15 +58727,15 @@ function mY() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return mY().domain([e, t]).range(i).unknown(a);
- }, Vq.apply(YJ(o), arguments);
+ return uY().domain([e, t]).range(i).unknown(a);
+ }, Lq.apply(GJ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function hY() {
+function dY() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[Dq(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[Cq(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -58747,13 +58747,13 @@ function hY() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return hY().domain(e).range(t).unknown(n);
- }, Vq.apply(i, arguments);
+ return dY().domain(e).range(t).unknown(n);
+ }, Lq.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var gY = /* @__PURE__ */ new Date(), _Y = /* @__PURE__ */ new Date();
-function vY(e, t, n, r) {
+var fY = /* @__PURE__ */ new Date(), pY = /* @__PURE__ */ new Date();
+function mY(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -58768,226 +58768,226 @@ function vY(e, t, n, r) {
o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
while (s < n && n < r);
return o;
- }, i.filter = (n) => vY((t) => {
+ }, i.filter = (n) => mY((t) => {
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
}, (e, r) => {
if (e >= e) {
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
else for (; --r >= 0;) for (; t(e, 1), !n(e););
}
- }), n && (i.count = (t, r) => (gY.setTime(+t), _Y.setTime(+r), e(gY), e(_Y), Math.floor(n(gY, _Y))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (fY.setTime(+t), pY.setTime(+r), e(fY), e(pY), Math.floor(n(fY, pY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region node_modules/d3-time/src/millisecond.js
-var yY = vY(() => {}, (e, t) => {
+var hY = mY(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-yY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? vY((t) => {
+hY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? mY((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : yY), yY.range;
+}, (t, n) => (n - t) / e) : hY), hY.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var bY = 1e3, xY = bY * 60, SY = xY * 60, CY = SY * 24, wY = CY * 7, TY = CY * 30, EY = CY * 365, DY = vY((e) => {
+var gY = 1e3, _Y = gY * 60, vY = _Y * 60, yY = vY * 24, bY = yY * 7, xY = yY * 30, SY = yY * 365, CY = mY((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * bY);
-}, (e, t) => (t - e) / bY, (e) => e.getUTCSeconds());
-DY.range;
+ e.setTime(+e + t * gY);
+}, (e, t) => (t - e) / gY, (e) => e.getUTCSeconds());
+CY.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var OY = vY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * bY);
+var wY = mY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * gY);
}, (e, t) => {
- e.setTime(+e + t * xY);
-}, (e, t) => (t - e) / xY, (e) => e.getMinutes());
-OY.range;
-var kY = vY((e) => {
+ e.setTime(+e + t * _Y);
+}, (e, t) => (t - e) / _Y, (e) => e.getMinutes());
+wY.range;
+var TY = mY((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * xY);
-}, (e, t) => (t - e) / xY, (e) => e.getUTCMinutes());
-kY.range;
+ e.setTime(+e + t * _Y);
+}, (e, t) => (t - e) / _Y, (e) => e.getUTCMinutes());
+TY.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var AY = vY((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * bY - e.getMinutes() * xY);
+var EY = mY((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * gY - e.getMinutes() * _Y);
}, (e, t) => {
- e.setTime(+e + t * SY);
-}, (e, t) => (t - e) / SY, (e) => e.getHours());
-AY.range;
-var jY = vY((e) => {
+ e.setTime(+e + t * vY);
+}, (e, t) => (t - e) / vY, (e) => e.getHours());
+EY.range;
+var DY = mY((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * SY);
-}, (e, t) => (t - e) / SY, (e) => e.getUTCHours());
-jY.range;
+ e.setTime(+e + t * vY);
+}, (e, t) => (t - e) / vY, (e) => e.getUTCHours());
+DY.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var MY = vY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xY) / CY, (e) => e.getDate() - 1);
-MY.range;
-var NY = vY((e) => {
+var OY = mY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * _Y) / yY, (e) => e.getDate() - 1);
+OY.range;
+var kY = mY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / CY, (e) => e.getUTCDate() - 1);
-NY.range;
-var PY = vY((e) => {
+}, (e, t) => (t - e) / yY, (e) => e.getUTCDate() - 1);
+kY.range;
+var AY = mY((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / CY, (e) => Math.floor(e / CY));
-PY.range;
+}, (e, t) => (t - e) / yY, (e) => Math.floor(e / yY));
+AY.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function FY(e) {
- return vY((t) => {
+function jY(e) {
+ return mY((t) => {
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setDate(e.getDate() + t * 7);
- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * xY) / wY);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * _Y) / bY);
}
-var IY = FY(0), LY = FY(1), iDe = FY(2), aDe = FY(3), RY = FY(4), oDe = FY(5), sDe = FY(6);
-IY.range, LY.range, iDe.range, aDe.range, RY.range, oDe.range, sDe.range;
-function zY(e) {
- return vY((t) => {
+var MY = jY(0), NY = jY(1), cDe = jY(2), lDe = jY(3), PY = jY(4), uDe = jY(5), dDe = jY(6);
+MY.range, NY.range, cDe.range, lDe.range, PY.range, uDe.range, dDe.range;
+function FY(e) {
+ return mY((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t * 7);
- }, (e, t) => (t - e) / wY);
+ }, (e, t) => (t - e) / bY);
}
-var BY = zY(0), VY = zY(1), cDe = zY(2), lDe = zY(3), HY = zY(4), uDe = zY(5), dDe = zY(6);
-BY.range, VY.range, cDe.range, lDe.range, HY.range, uDe.range, dDe.range;
+var IY = FY(0), LY = FY(1), fDe = FY(2), pDe = FY(3), RY = FY(4), mDe = FY(5), hDe = FY(6);
+IY.range, LY.range, fDe.range, pDe.range, RY.range, mDe.range, hDe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var UY = vY((e) => {
+var zY = mY((e) => {
e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
-UY.range;
-var WY = vY((e) => {
+zY.range;
+var BY = mY((e) => {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
-WY.range;
+BY.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var GY = vY((e) => {
+var VY = mY((e) => {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
-GY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : vY((t) => {
+VY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : mY((t) => {
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
t.setFullYear(t.getFullYear() + n * e);
-}), GY.range;
-var KY = vY((e) => {
+}), VY.range;
+var HY = mY((e) => {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
-KY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : vY((t) => {
+HY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : mY((t) => {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
t.setUTCFullYear(t.getUTCFullYear() + n * e);
-}), KY.range;
+}), HY.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function qY(e, t, n, r, i, a) {
+function UY(e, t, n, r, i, a) {
let o = [
[
- DY,
+ CY,
1,
- bY
+ gY
],
[
- DY,
+ CY,
5,
- 5 * bY
+ 5 * gY
],
[
- DY,
+ CY,
15,
- 15 * bY
+ 15 * gY
],
[
- DY,
+ CY,
30,
- 30 * bY
+ 30 * gY
],
[
a,
1,
- xY
+ _Y
],
[
a,
5,
- 5 * xY
+ 5 * _Y
],
[
a,
15,
- 15 * xY
+ 15 * _Y
],
[
a,
30,
- 30 * xY
+ 30 * _Y
],
[
i,
1,
- SY
+ vY
],
[
i,
3,
- 3 * SY
+ 3 * vY
],
[
i,
6,
- 6 * SY
+ 6 * vY
],
[
i,
12,
- 12 * SY
+ 12 * vY
],
[
r,
1,
- CY
+ yY
],
[
r,
2,
- 2 * CY
+ 2 * yY
],
[
n,
1,
- wY
+ bY
],
[
t,
1,
- TY
+ xY
],
[
t,
3,
- 3 * TY
+ 3 * xY
],
[
e,
1,
- EY
+ SY
]
];
function s(e, t, n) {
@@ -58997,32 +58997,32 @@ function qY(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = wq(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(Fq(t / EY, n / EY, r));
- if (a === 0) return yY.every(Math.max(Fq(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = bq(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(jq(t / SY, n / SY, r));
+ if (a === 0) return hY.every(Math.max(jq(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [fDe, pDe] = qY(KY, WY, BY, PY, jY, kY), [mDe, hDe] = qY(GY, UY, IY, MY, AY, OY);
+var [gDe, _De] = UY(HY, BY, IY, AY, DY, TY), [vDe, yDe] = UY(VY, zY, MY, OY, EY, wY);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function JY(e) {
+function WY(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
-function YY(e) {
+function GY(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
-function XY(e, t, n) {
+function KY(e, t, n) {
return {
y: e,
m: t,
@@ -59033,133 +59033,133 @@ function XY(e, t, n) {
L: 0
};
}
-function gDe(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 = eX(i), u = tX(i), d = eX(a), f = tX(a), p = eX(o), m = tX(o), h = eX(s), g = tX(s), _ = eX(c), v = tX(c), y = {
+function bDe(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 = XY(i), u = ZY(i), d = XY(a), f = ZY(a), p = XY(o), m = ZY(o), h = XY(s), g = ZY(s), _ = XY(c), v = ZY(c), y = {
a: N,
A: P,
b: ee,
B: F,
c: null,
- d: oX,
- e: oX,
- f: zDe,
- g: YDe,
- G: ZDe,
- H: IDe,
- I: LDe,
- j: RDe,
- L: sX,
- m: BDe,
- M: VDe,
+ d: nX,
+ e: nX,
+ f: UDe,
+ g: $De,
+ G: tOe,
+ H: BDe,
+ I: VDe,
+ j: HDe,
+ L: rX,
+ m: WDe,
+ M: GDe,
p: I,
q: te,
- Q: pX,
- s: mX,
- S: HDe,
- u: UDe,
- U: WDe,
- V: GDe,
- w: KDe,
- W: qDe,
+ Q: lX,
+ s: uX,
+ S: KDe,
+ u: qDe,
+ U: JDe,
+ V: YDe,
+ w: XDe,
+ W: ZDe,
x: null,
X: null,
- y: JDe,
- Y: XDe,
- Z: QDe,
- "%": fX
+ y: QDe,
+ Y: eOe,
+ Z: nOe,
+ "%": cX
}, b = {
a: ne,
A: re,
b: ie,
B: ae,
c: null,
- d: lX,
- e: lX,
- f: nOe,
- g: fOe,
- G: mOe,
- H: $De,
- I: eOe,
- j: tOe,
- L: uX,
- m: rOe,
- M: iOe,
+ d: aX,
+ e: aX,
+ f: oOe,
+ g: gOe,
+ G: vOe,
+ H: rOe,
+ I: iOe,
+ j: aOe,
+ L: oX,
+ m: sOe,
+ M: cOe,
p: oe,
q: se,
- Q: pX,
- s: mX,
- S: aOe,
- u: oOe,
- U: sOe,
- V: cOe,
- w: lOe,
- W: uOe,
+ Q: lX,
+ s: uX,
+ S: lOe,
+ u: uOe,
+ U: dOe,
+ V: fOe,
+ w: pOe,
+ W: mOe,
x: null,
X: null,
- y: dOe,
- Y: pOe,
- Z: hOe,
- "%": fX
+ y: hOe,
+ Y: _Oe,
+ Z: yOe,
+ "%": cX
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: iX,
- e: iX,
- f: MDe,
- g: rX,
- G: nX,
- H: aX,
- I: aX,
- j: ODe,
- L: jDe,
- m: DDe,
- M: kDe,
+ d: eX,
+ e: eX,
+ f: IDe,
+ g: $Y,
+ G: QY,
+ H: tX,
+ I: tX,
+ j: MDe,
+ L: FDe,
+ m: jDe,
+ M: NDe,
p: T,
- q: EDe,
- Q: PDe,
- s: FDe,
- S: ADe,
- u: xDe,
- U: SDe,
- V: CDe,
- w: bDe,
- W: wDe,
+ q: ADe,
+ Q: RDe,
+ s: zDe,
+ S: PDe,
+ u: TDe,
+ U: EDe,
+ V: DDe,
+ w: wDe,
+ W: ODe,
x: j,
X: M,
- y: rX,
- Y: nX,
- Z: TDe,
- "%": NDe
+ y: $Y,
+ Y: QY,
+ Z: kDe,
+ "%": LDe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
return function(n) {
var r = [], i = -1, a = 0, o = e.length, s, c, l;
- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = ZY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = qY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
return r.push(e.slice(a, i)), r.join("");
};
}
function C(e, t) {
return function(n) {
- var r = XY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = KY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
if (i != n.length) return null;
if ("Q" in r) return new Date(r.Q);
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
if (r.V < 1 || r.V > 53) return null;
- "w" in r || (r.w = 1), "Z" in r ? (a = YY(XY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? VY.ceil(a) : VY(a), a = NY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = JY(XY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? LY.ceil(a) : LY(a), a = MY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? YY(XY(r.y, 0, 1)).getUTCDay() : JY(XY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, YY(r)) : JY(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = GY(KY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? LY.ceil(a) : LY(a), a = kY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = WY(KY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? NY.ceil(a) : NY(a), a = OY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? GY(KY(r.y, 0, 1)).getUTCDay() : WY(KY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, GY(r)) : WY(r);
};
}
function w(e, t, n, r) {
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
if (r >= o) return -1;
if (s = t.charCodeAt(i++), s === 37) {
- if (s = t.charAt(i++), c = x[s in ZY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in qY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -59256,244 +59256,244 @@ function gDe(e) {
}
};
}
-var ZY = {
+var qY = {
"-": "",
_: " ",
0: "0"
-}, QY = /^\s*\d+/, _De = /^%/, vDe = /[\\^$*+?|[\]().{}]/g;
-function $Y(e, t, n) {
+}, JY = /^\s*\d+/, xDe = /^%/, SDe = /[\\^$*+?|[\]().{}]/g;
+function YY(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 yDe(e) {
- return e.replace(vDe, "\\$&");
+function CDe(e) {
+ return e.replace(SDe, "\\$&");
}
-function eX(e) {
- return RegExp("^(?:" + e.map(yDe).join("|") + ")", "i");
+function XY(e) {
+ return RegExp("^(?:" + e.map(CDe).join("|") + ")", "i");
}
-function tX(e) {
+function ZY(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function bDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 1));
+function wDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function xDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 1));
+function TDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function SDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function EDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function CDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function DDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function wDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function ODe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function nX(e, t, n) {
- var r = QY.exec(t.slice(n, n + 4));
+function QY(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function rX(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function $Y(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function TDe(e, t, n) {
+function kDe(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 EDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 1));
+function ADe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function DDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function jDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function iX(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function eX(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function ODe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 3));
+function MDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function aX(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function tX(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function kDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function NDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function ADe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 2));
+function PDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function jDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 3));
+function FDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function MDe(e, t, n) {
- var r = QY.exec(t.slice(n, n + 6));
+function IDe(e, t, n) {
+ var r = JY.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function NDe(e, t, n) {
- var r = _De.exec(t.slice(n, n + 1));
+function LDe(e, t, n) {
+ var r = xDe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function PDe(e, t, n) {
- var r = QY.exec(t.slice(n));
+function RDe(e, t, n) {
+ var r = JY.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function FDe(e, t, n) {
- var r = QY.exec(t.slice(n));
+function zDe(e, t, n) {
+ var r = JY.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function oX(e, t) {
- return $Y(e.getDate(), t, 2);
-}
-function IDe(e, t) {
- return $Y(e.getHours(), t, 2);
-}
-function LDe(e, t) {
- return $Y(e.getHours() % 12 || 12, t, 2);
-}
-function RDe(e, t) {
- return $Y(1 + MY.count(GY(e), e), t, 3);
-}
-function sX(e, t) {
- return $Y(e.getMilliseconds(), t, 3);
-}
-function zDe(e, t) {
- return sX(e, t) + "000";
+function nX(e, t) {
+ return YY(e.getDate(), t, 2);
}
function BDe(e, t) {
- return $Y(e.getMonth() + 1, t, 2);
+ return YY(e.getHours(), t, 2);
}
function VDe(e, t) {
- return $Y(e.getMinutes(), t, 2);
+ return YY(e.getHours() % 12 || 12, t, 2);
}
function HDe(e, t) {
- return $Y(e.getSeconds(), t, 2);
+ return YY(1 + OY.count(VY(e), e), t, 3);
}
-function UDe(e) {
- var t = e.getDay();
- return t === 0 ? 7 : t;
+function rX(e, t) {
+ return YY(e.getMilliseconds(), t, 3);
}
-function WDe(e, t) {
- return $Y(IY.count(GY(e) - 1, e), t, 2);
+function UDe(e, t) {
+ return rX(e, t) + "000";
}
-function cX(e) {
- var t = e.getDay();
- return t >= 4 || t === 0 ? RY(e) : RY.ceil(e);
+function WDe(e, t) {
+ return YY(e.getMonth() + 1, t, 2);
}
function GDe(e, t) {
- return e = cX(e), $Y(RY.count(GY(e), e) + (GY(e).getDay() === 4), t, 2);
+ return YY(e.getMinutes(), t, 2);
}
-function KDe(e) {
- return e.getDay();
+function KDe(e, t) {
+ return YY(e.getSeconds(), t, 2);
}
-function qDe(e, t) {
- return $Y(LY.count(GY(e) - 1, e), t, 2);
+function qDe(e) {
+ var t = e.getDay();
+ return t === 0 ? 7 : t;
}
function JDe(e, t) {
- return $Y(e.getFullYear() % 100, t, 2);
+ return YY(MY.count(VY(e) - 1, e), t, 2);
+}
+function iX(e) {
+ var t = e.getDay();
+ return t >= 4 || t === 0 ? PY(e) : PY.ceil(e);
}
function YDe(e, t) {
- return e = cX(e), $Y(e.getFullYear() % 100, t, 2);
+ return e = iX(e), YY(PY.count(VY(e), e) + (VY(e).getDay() === 4), t, 2);
}
-function XDe(e, t) {
- return $Y(e.getFullYear() % 1e4, t, 4);
+function XDe(e) {
+ return e.getDay();
}
function ZDe(e, t) {
- var n = e.getDay();
- return e = n >= 4 || n === 0 ? RY(e) : RY.ceil(e), $Y(e.getFullYear() % 1e4, t, 4);
+ return YY(NY.count(VY(e) - 1, e), t, 2);
}
-function QDe(e) {
- var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + $Y(t / 60 | 0, "0", 2) + $Y(t % 60, "0", 2);
-}
-function lX(e, t) {
- return $Y(e.getUTCDate(), t, 2);
+function QDe(e, t) {
+ return YY(e.getFullYear() % 100, t, 2);
}
function $De(e, t) {
- return $Y(e.getUTCHours(), t, 2);
+ return e = iX(e), YY(e.getFullYear() % 100, t, 2);
}
function eOe(e, t) {
- return $Y(e.getUTCHours() % 12 || 12, t, 2);
+ return YY(e.getFullYear() % 1e4, t, 4);
}
function tOe(e, t) {
- return $Y(1 + NY.count(KY(e), e), t, 3);
+ var n = e.getDay();
+ return e = n >= 4 || n === 0 ? PY(e) : PY.ceil(e), YY(e.getFullYear() % 1e4, t, 4);
}
-function uX(e, t) {
- return $Y(e.getUTCMilliseconds(), t, 3);
+function nOe(e) {
+ var t = e.getTimezoneOffset();
+ return (t > 0 ? "-" : (t *= -1, "+")) + YY(t / 60 | 0, "0", 2) + YY(t % 60, "0", 2);
}
-function nOe(e, t) {
- return uX(e, t) + "000";
+function aX(e, t) {
+ return YY(e.getUTCDate(), t, 2);
}
function rOe(e, t) {
- return $Y(e.getUTCMonth() + 1, t, 2);
+ return YY(e.getUTCHours(), t, 2);
}
function iOe(e, t) {
- return $Y(e.getUTCMinutes(), t, 2);
+ return YY(e.getUTCHours() % 12 || 12, t, 2);
}
function aOe(e, t) {
- return $Y(e.getUTCSeconds(), t, 2);
+ return YY(1 + kY.count(HY(e), e), t, 3);
}
-function oOe(e) {
- var t = e.getUTCDay();
- return t === 0 ? 7 : t;
+function oX(e, t) {
+ return YY(e.getUTCMilliseconds(), t, 3);
}
-function sOe(e, t) {
- return $Y(BY.count(KY(e) - 1, e), t, 2);
+function oOe(e, t) {
+ return oX(e, t) + "000";
}
-function dX(e) {
- var t = e.getUTCDay();
- return t >= 4 || t === 0 ? HY(e) : HY.ceil(e);
+function sOe(e, t) {
+ return YY(e.getUTCMonth() + 1, t, 2);
}
function cOe(e, t) {
- return e = dX(e), $Y(HY.count(KY(e), e) + (KY(e).getUTCDay() === 4), t, 2);
+ return YY(e.getUTCMinutes(), t, 2);
}
-function lOe(e) {
- return e.getUTCDay();
+function lOe(e, t) {
+ return YY(e.getUTCSeconds(), t, 2);
}
-function uOe(e, t) {
- return $Y(VY.count(KY(e) - 1, e), t, 2);
+function uOe(e) {
+ var t = e.getUTCDay();
+ return t === 0 ? 7 : t;
}
function dOe(e, t) {
- return $Y(e.getUTCFullYear() % 100, t, 2);
+ return YY(IY.count(HY(e) - 1, e), t, 2);
+}
+function sX(e) {
+ var t = e.getUTCDay();
+ return t >= 4 || t === 0 ? RY(e) : RY.ceil(e);
}
function fOe(e, t) {
- return e = dX(e), $Y(e.getUTCFullYear() % 100, t, 2);
+ return e = sX(e), YY(RY.count(HY(e), e) + (HY(e).getUTCDay() === 4), t, 2);
}
-function pOe(e, t) {
- return $Y(e.getUTCFullYear() % 1e4, t, 4);
+function pOe(e) {
+ return e.getUTCDay();
}
function mOe(e, t) {
+ return YY(LY.count(HY(e) - 1, e), t, 2);
+}
+function hOe(e, t) {
+ return YY(e.getUTCFullYear() % 100, t, 2);
+}
+function gOe(e, t) {
+ return e = sX(e), YY(e.getUTCFullYear() % 100, t, 2);
+}
+function _Oe(e, t) {
+ return YY(e.getUTCFullYear() % 1e4, t, 4);
+}
+function vOe(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? HY(e) : HY.ceil(e), $Y(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? RY(e) : RY.ceil(e), YY(e.getUTCFullYear() % 1e4, t, 4);
}
-function hOe() {
+function yOe() {
return "+0000";
}
-function fX() {
+function cX() {
return "%";
}
-function pX(e) {
+function lX(e) {
return +e;
}
-function mX(e) {
+function uX(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var hX, gX, _X;
-gOe({
+var dX, fX, pX;
+bOe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -59545,26 +59545,26 @@ gOe({
"Dec"
]
});
-function gOe(e) {
- return hX = gDe(e), gX = hX.format, hX.parse, _X = hX.utcFormat, hX.utcParse, hX;
+function bOe(e) {
+ return dX = bDe(e), fX = dX.format, dX.parse, pX = dX.utcFormat, dX.utcParse, dX;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function _Oe(e) {
+function xOe(e) {
return new Date(e);
}
-function vOe(e) {
+function SOe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function vX(e, t, n, r, i, a, o, s, c, l) {
- var u = PJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+function mX(e, t, n, r, i, a, o, s, c, l) {
+ var u = AJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, vOe)) : f().map(_Oe);
+ return arguments.length ? f(Array.from(e, SOe)) : f().map(xOe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -59572,23 +59572,23 @@ function vX(e, t, n, r, i, a, o, s, c, l) {
return t == null ? x : l(t);
}, u.nice = function(e) {
var n = f();
- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(QJ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(JJ(n, e)) : u;
}, u.copy = function() {
- return MJ(u, vX(e, t, n, r, i, a, o, s, c, l));
+ return OJ(u, mX(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function yOe() {
- return Vq.apply(vX(mDe, hDe, GY, UY, IY, MY, AY, OY, DY, gX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function COe() {
+ return Lq.apply(mX(vDe, yDe, VY, zY, MY, OY, EY, wY, CY, fX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function bOe() {
- return Vq.apply(vX(fDe, pDe, KY, WY, BY, NY, jY, kY, DY, _X).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function wOe() {
+ return Lq.apply(mX(gDe, _De, HY, BY, IY, kY, DY, TY, CY, pX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function yX() {
- var e = 0, t = 1, n, r, i, a, o = AJ, s = !1, c;
+function hX() {
+ var e = 0, t = 1, n, r, i, a, o = EJ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -59605,68 +59605,68 @@ function yX() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(EJ), l.rangeRound = u(DJ), l.unknown = function(e) {
+ return l.range = u(SJ), l.rangeRound = u(CJ), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function bX(e, t) {
+function gX(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
-function xX() {
- var e = YJ(yX()(AJ));
+function _X() {
+ var e = GJ(hX()(EJ));
return e.copy = function() {
- return bX(e, xX());
- }, Hq.apply(e, arguments);
+ return gX(e, _X());
+ }, Rq.apply(e, arguments);
}
-function SX() {
- var e = nY(yX()).domain([1, 10]);
+function vX() {
+ var e = QJ(hX()).domain([1, 10]);
return e.copy = function() {
- return bX(e, SX()).base(e.base());
- }, Hq.apply(e, arguments);
+ return gX(e, vX()).base(e.base());
+ }, Rq.apply(e, arguments);
}
-function CX() {
- var e = oY(yX());
+function yX() {
+ var e = nY(hX());
return e.copy = function() {
- return bX(e, CX()).constant(e.constant());
- }, Hq.apply(e, arguments);
+ return gX(e, yX()).constant(e.constant());
+ }, Rq.apply(e, arguments);
}
-function wX() {
- var e = lY(yX());
+function bX() {
+ var e = aY(hX());
return e.copy = function() {
- return bX(e, wX()).exponent(e.exponent());
- }, Hq.apply(e, arguments);
+ return gX(e, bX()).exponent(e.exponent());
+ }, Rq.apply(e, arguments);
}
-function xOe() {
- return wX.apply(null, arguments).exponent(.5);
+function TOe() {
+ return bX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function TX() {
- var e = [], t = AJ;
+function xX() {
+ var e = [], t = EJ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((Dq(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((Cq(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(Cq), n;
+ return e.sort(yq), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => oEe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => uEe(e, r / t));
}, n.copy = function() {
- return TX(t).domain(e);
- }, Hq.apply(n, arguments);
+ return xX(t).domain(e);
+ }, Rq.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function EX() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = AJ, u, d = !1, f;
+function SX() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = EJ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -59684,7 +59684,7 @@ function EX() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = NEe(e, [
+ return arguments.length ? ([n, r, i] = t, l = LEe(e, [
n,
r,
i
@@ -59695,121 +59695,121 @@ function EX() {
];
};
}
- return p.range = m(EJ), p.rangeRound = m(DJ), p.unknown = function(e) {
+ return p.range = m(SJ), p.rangeRound = m(CJ), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function DX() {
- var e = YJ(EX()(AJ));
+function CX() {
+ var e = GJ(SX()(EJ));
return e.copy = function() {
- return bX(e, DX());
- }, Hq.apply(e, arguments);
+ return gX(e, CX());
+ }, Rq.apply(e, arguments);
}
-function OX() {
- var e = nY(EX()).domain([
+function wX() {
+ var e = QJ(SX()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return bX(e, OX()).base(e.base());
- }, Hq.apply(e, arguments);
+ return gX(e, wX()).base(e.base());
+ }, Rq.apply(e, arguments);
}
-function kX() {
- var e = oY(EX());
+function TX() {
+ var e = nY(SX());
return e.copy = function() {
- return bX(e, kX()).constant(e.constant());
- }, Hq.apply(e, arguments);
+ return gX(e, TX()).constant(e.constant());
+ }, Rq.apply(e, arguments);
}
-function AX() {
- var e = lY(EX());
+function EX() {
+ var e = aY(SX());
return e.copy = function() {
- return bX(e, AX()).exponent(e.exponent());
- }, Hq.apply(e, arguments);
+ return gX(e, EX()).exponent(e.exponent());
+ }, Rq.apply(e, arguments);
}
-function SOe() {
- return AX.apply(null, arguments).exponent(.5);
+function EOe() {
+ return EX.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var jX = /* @__PURE__ */ _t({
- scaleBand: () => Gq,
- scaleDiverging: () => DX,
- scaleDivergingLog: () => OX,
- scaleDivergingPow: () => AX,
- scaleDivergingSqrt: () => SOe,
- scaleDivergingSymlog: () => kX,
- scaleIdentity: () => ZJ,
- scaleImplicit: () => Uq,
- scaleLinear: () => XJ,
- scaleLog: () => rY,
- scaleOrdinal: () => Wq,
- scalePoint: () => lEe,
- scalePow: () => uY,
- scaleQuantile: () => pY,
- scaleQuantize: () => mY,
- scaleRadial: () => fY,
- scaleSequential: () => xX,
- scaleSequentialLog: () => SX,
- scaleSequentialPow: () => wX,
- scaleSequentialQuantile: () => TX,
- scaleSequentialSqrt: () => xOe,
- scaleSequentialSymlog: () => CX,
- scaleSqrt: () => nDe,
- scaleSymlog: () => sY,
- scaleThreshold: () => hY,
- scaleTime: () => yOe,
- scaleUtc: () => bOe,
- tickFormat: () => JJ
+var DX = /* @__PURE__ */ _t({
+ scaleBand: () => Vq,
+ scaleDiverging: () => CX,
+ scaleDivergingLog: () => wX,
+ scaleDivergingPow: () => EX,
+ scaleDivergingSqrt: () => EOe,
+ scaleDivergingSymlog: () => TX,
+ scaleIdentity: () => qJ,
+ scaleImplicit: () => zq,
+ scaleLinear: () => KJ,
+ scaleLog: () => $J,
+ scaleOrdinal: () => Bq,
+ scalePoint: () => pEe,
+ scalePow: () => oY,
+ scaleQuantile: () => lY,
+ scaleQuantize: () => uY,
+ scaleRadial: () => cY,
+ scaleSequential: () => _X,
+ scaleSequentialLog: () => vX,
+ scaleSequentialPow: () => bX,
+ scaleSequentialQuantile: () => xX,
+ scaleSequentialSqrt: () => TOe,
+ scaleSequentialSymlog: () => yX,
+ scaleSqrt: () => oDe,
+ scaleSymlog: () => rY,
+ scaleThreshold: () => dY,
+ scaleTime: () => COe,
+ scaleUtc: () => wOe,
+ tickFormat: () => WJ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function COe(e) {
- if (e in jX) return jX[e]();
- var t = `scale${Wz(e)}`;
- if (t in jX) return jX[t]();
+function DOe(e) {
+ if (e in DX) return DX[e]();
+ var t = `scale${Uz(e)}`;
+ if (t in DX) return DX[t]();
}
-function MX(e, t, n) {
+function OX(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = COe(e);
+ var r = DOe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function NX(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? MX(e.scale, n, r) : MX(t, n, r);
+function kX(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? OX(e.scale, n, r) : OX(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function wOe(e) {
- return `scale${Wz(e)}`;
+function OOe(e) {
+ return `scale${Uz(e)}`;
}
-function TOe(e) {
- return wOe(e) in jX;
+function kOe(e) {
+ return OOe(e) in DX;
}
-var PX = (e, t, n) => {
+var AX = (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 TOe(r) ? r : "point";
+ if (typeof r == "string") return kOe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function EOe(e, t) {
+function AOe(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function FX(e, t) {
+function jX(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 = EOe(r, e);
+ var t = AOe(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;
@@ -59819,12 +59819,12 @@ function FX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function DOe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : FX(e, void 0);
+function jOe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : jX(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function IX(e, t) {
+function MX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59834,30 +59834,30 @@ function IX(e, t) {
}
return n;
}
-function LX(e) {
+function NX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? IX(Object(n), !0).forEach(function(t) {
- OOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IX(Object(n)).forEach(function(t) {
+ t % 2 ? MX(Object(n), !0).forEach(function(t) {
+ MOe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OOe(e, t, n) {
- return (t = kOe(t)) in e ? Object.defineProperty(e, t, {
+function MOe(e, t, n) {
+ return (t = NOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kOe(e) {
- var t = AOe(e, "string");
+function NOe(e) {
+ var t = POe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AOe(e, t) {
+function POe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59867,7 +59867,7 @@ function AOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var RX = [0, "auto"], zX = {
+var PX = [0, "auto"], FX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -59896,13 +59896,13 @@ var RX = [0, "auto"], zX = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, BX = (e, t) => e.cartesianAxis.xAxis[t], VX = (e, t) => BX(e, t) ?? zX, HX = {
+}, IX = (e, t) => e.cartesianAxis.xAxis[t], LX = (e, t) => IX(e, t) ?? FX, RX = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: RX,
+ domain: PX,
hide: !0,
id: 0,
includeHidden: !1,
@@ -59925,7 +59925,7 @@ var RX = [0, "auto"], zX = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, UX = (e, t) => e.cartesianAxis.yAxis[t], WX = (e, t) => UX(e, t) ?? HX, jOe = {
+}, zX = (e, t) => e.cartesianAxis.yAxis[t], BX = (e, t) => zX(e, t) ?? RX, FOe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -59938,31 +59938,31 @@ var RX = [0, "auto"], zX = {
scale: "auto",
type: "number",
unit: ""
-}, GX = (e, t) => e.cartesianAxis.zAxis[t] ?? jOe, KX = (e, t, n) => {
+}, VX = (e, t) => e.cartesianAxis.zAxis[t] ?? FOe, HX = (e, t, n) => {
switch (t) {
- case "xAxis": return VX(e, n);
- case "yAxis": return WX(e, n);
- case "zAxis": return GX(e, n);
- case "angleAxis": return rq(e, n);
- case "radiusAxis": return iq(e, n);
+ case "xAxis": return LX(e, n);
+ case "yAxis": return BX(e, n);
+ case "zAxis": return VX(e, n);
+ case "angleAxis": return $K(e, n);
+ case "radiusAxis": return eq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, MOe = (e, t, n) => {
+}, IOe = (e, t, n) => {
switch (t) {
- case "xAxis": return VX(e, n);
- case "yAxis": return WX(e, n);
+ case "xAxis": return LX(e, n);
+ case "yAxis": return BX(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, qX = (e, t, n) => {
+}, UX = (e, t, n) => {
switch (t) {
- case "xAxis": return VX(e, n);
- case "yAxis": return WX(e, n);
- case "angleAxis": return rq(e, n);
- case "radiusAxis": return iq(e, n);
+ case "xAxis": return LX(e, n);
+ case "yAxis": return BX(e, n);
+ case "angleAxis": return $K(e, n);
+ case "radiusAxis": return eq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, JX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function YX(e, t) {
+}, WX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function GX(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -59974,58 +59974,58 @@ function YX(e, t) {
}
};
}
-var XX = (e) => e.graphicalItems.cartesianItems, NOe = $([fq, pq], YX), ZX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), QX = $([
- XX,
+var KX = (e) => e.graphicalItems.cartesianItems, LOe = $([cq, lq], GX), qX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), JX = $([
KX,
- NOe
-], ZX, { memoizeOptions: { resultEqualityCheck: vq } }), $X = $([QX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(gq)), eZ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), POe = $([QX], eZ), tZ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), FOe = $([QX], tZ, { memoizeOptions: { resultEqualityCheck: vq } }), nZ = (e, t) => {
+ HX,
+ LOe
+], qX, { memoizeOptions: { resultEqualityCheck: mq } }), YX = $([JX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(fq)), XX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), ROe = $([JX], XX), ZX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), zOe = $([JX], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), QX = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, rZ = $([FOe, wK], nZ), iZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: wU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: wU(e, t.dataKey) })), aZ = $([
- rZ,
- KX,
- QX
-], iZ);
-function oZ(e) {
- if (Lz(e) || e instanceof Date) {
+}, $X = $([zOe, bK], QX), eZ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: bU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: bU(e, t.dataKey) })), tZ = $([
+ $X,
+ HX,
+ JX
+], eZ);
+function nZ(e) {
+ if (Iz(e) || e instanceof Date) {
var t = Number(e);
- if (bU(t)) return t;
+ if (gU(t)) return t;
}
}
-function sZ(e) {
+function rZ(e) {
if (Array.isArray(e)) {
- var t = [oZ(e[0]), oZ(e[1])];
- return EK(t) ? t : void 0;
+ var t = [nZ(e[0]), nZ(e[1])];
+ return SK(t) ? t : void 0;
}
- var n = oZ(e);
+ var n = nZ(e);
if (n != null) return [n, n];
}
-function cZ(e) {
- return e.map(oZ).filter(Gz);
+function iZ(e) {
+ return e.map(nZ).filter(Wz);
}
-function IOe(e, t) {
- var n = oZ(e), r = oZ(t);
+function BOe(e, t) {
+ var n = nZ(e), r = nZ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var LOe = $([aZ], (e) => e?.map((e) => e.value).sort(IOe));
-function lZ(e, t) {
+var VOe = $([tZ], (e) => e?.map((e) => e.value).sort(BOe));
+function aZ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function ROe(e, t, n) {
- return !n || typeof t != "number" || Fz(t) || !n.length ? [] : cZ(n.flatMap((n) => {
- var r = wU(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!bU(i) || !bU(a))) return [t - i, t + a];
+function HOe(e, t, n) {
+ return !n || typeof t != "number" || Pz(t) || !n.length ? [] : iZ(n.flatMap((n) => {
+ var r = bU(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!gU(i) || !gU(a))) return [t - i, t + a];
}));
}
-var uZ = (e) => qX(e, yq(e), bq(e)), dZ = $([uZ], (e) => e?.dataKey), fZ = $([
- $X,
- wK,
- uZ
-], hq), pZ = (e, t, n, r) => {
+var oZ = (e) => UX(e, hq(e), gq(e)), sZ = $([oZ], (e) => e?.dataKey), UOe = $([
+ YX,
+ bK,
+ oZ
+], dq), cZ = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -60034,168 +60034,168 @@ var uZ = (e) => qX(e, yq(e), bq(e)), dZ = $([uZ], (e) => e?.dataKey), fZ = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: zSe(e, o.map(mq), n),
+ stackedData: USe(e, o.map(uq), n),
graphicalItems: o
}];
}));
-}, mZ = $([
- fZ,
- $X,
- HK,
- UK
-], pZ), hZ = (e, t, n, r) => {
+}, lZ = $([
+ UOe,
+ YX,
+ RK,
+ zK
+], cZ), uZ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = HSe(e, i, a);
+ var o = KSe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, zOe = $([KX], (e) => e.allowDataOverflow), gZ = (e) => {
- if (e == null || !("domain" in e)) return RX;
+}, WOe = $([HX], (e) => e.allowDataOverflow), dZ = (e) => {
+ if (e == null || !("domain" in e)) return PX;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = cZ(e.ticks);
+ var t = iZ(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? RX;
-}, _Z = $([KX], gZ), vZ = $([_Z, zOe], OK), BOe = $([
- mZ,
- SK,
- fq,
- vZ
-], hZ, { memoizeOptions: { resultEqualityCheck: _q } }), yZ = (e) => e.errorBars, VOe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => lZ(n, e)), bZ = function() {
+ return e?.domain ?? PX;
+}, fZ = $([HX], dZ), pZ = $([fZ, WOe], wK), GOe = $([
+ lZ,
+ vK,
+ cq,
+ pZ
+], uZ, { memoizeOptions: { resultEqualityCheck: pq } }), mZ = (e) => e.errorBars, KOe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => aZ(n, e)), hZ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, xZ = (e, t, n, r, i) => {
+}, gZ = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => lZ(i, e)), c = wU(e, t.dataKey ?? n.dataKey), l = ROe(e, c, s);
+ var s = r[n.id]?.filter((e) => aZ(i, e)), c = bU(e, t.dataKey ?? n.dataKey), l = HOe(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
}
- var f = sZ(c);
+ var f = rZ(c);
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = sZ(wU(e, t.dataKey));
+ var n = rZ(bU(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]));
- }), bU(a) && bU(o)) return [a, o];
-}, HOe = $([
- rZ,
- KX,
- POe,
- yZ,
- fq
-], xZ, { memoizeOptions: { resultEqualityCheck: _q } });
-function UOe(e) {
+ }), gU(a) && gU(o)) return [a, o];
+}, qOe = $([
+ $X,
+ HX,
+ ROe,
+ mZ,
+ cq
+], gZ, { memoizeOptions: { resultEqualityCheck: pq } });
+function JOe(e) {
var { value: t } = e;
- if (Lz(t) || t instanceof Date) return t;
-}
-var WOe = (e, t, n) => {
- var r = e.map(UOe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && Bz(r)) ? xK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, SZ = (e) => e.referenceElements.dots, CZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), GOe = $([
- SZ,
- fq,
- pq
-], CZ), wZ = (e) => e.referenceElements.areas, KOe = $([
- wZ,
- fq,
- pq
-], CZ), TZ = (e) => e.referenceElements.lines, qOe = $([
- TZ,
- fq,
- pq
-], CZ), EZ = (e, t) => {
+ if (Iz(t) || t instanceof Date) return t;
+}
+var YOe = (e, t, n) => {
+ var r = e.map(JOe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && zz(r)) ? _K(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, _Z = (e) => e.referenceElements.dots, vZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), XOe = $([
+ _Z,
+ cq,
+ lq
+], vZ), yZ = (e) => e.referenceElements.areas, ZOe = $([
+ yZ,
+ cq,
+ lq
+], vZ), bZ = (e) => e.referenceElements.lines, QOe = $([
+ bZ,
+ cq,
+ lq
+], vZ), xZ = (e, t) => {
if (e != null) {
- var n = cZ(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = iZ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, JOe = $(GOe, fq, EZ), DZ = (e, t) => {
+}, $Oe = $(XOe, cq, xZ), SZ = (e, t) => {
if (e != null) {
- var n = cZ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = iZ(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)];
}
-}, YOe = $([KOe, fq], DZ);
-function XOe(e) {
- if (e.x != null) return cZ([e.x]);
+}, eke = $([ZOe, cq], SZ);
+function tke(e) {
+ if (e.x != null) return iZ([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : cZ(t);
+ return t == null || t.length === 0 ? [] : iZ(t);
}
-function ZOe(e) {
- if (e.y != null) return cZ([e.y]);
+function nke(e) {
+ if (e.y != null) return iZ([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : cZ(t);
+ return t == null || t.length === 0 ? [] : iZ(t);
}
-var OZ = (e, t) => {
+var CZ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? XOe(e) : ZOe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? tke(e) : nke(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, QOe = $(JOe, $([qOe, fq], OZ), YOe, (e, t, n) => bZ(e, n, t)), kZ = (e, t, n, r, i, a, o, s) => n ?? KTe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? bZ(r, a, i) : bZ(a, i), e.allowDataOverflow), $Oe = $([
- KX,
- _Z,
- vZ,
- BOe,
- HOe,
- QOe,
- dW,
- fq
-], kZ, { memoizeOptions: { resultEqualityCheck: _q } }), eke = [0, 1], AZ = (e, t, n, r, i, a, o) => {
+}, rke = $($Oe, $([QOe, cq], CZ), eke, (e, t, n) => hZ(e, n, t)), wZ = (e, t, n, r, i, a, o, s) => n ?? XTe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? hZ(r, a, i) : hZ(a, i), e.allowDataOverflow), ike = $([
+ HX,
+ fZ,
+ pZ,
+ GOe,
+ qOe,
+ rke,
+ sW,
+ cq
+], wZ, { memoizeOptions: { resultEqualityCheck: pq } }), ake = [0, 1], TZ = (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 = TU(t, a);
- return l && s == null ? xK(0, n?.length ?? 0) : c === "category" ? WOe(r, e, l) : i === "expand" ? eke : o;
+ var { dataKey: s, type: c } = e, l = xU(t, a);
+ return l && s == null ? _K(0, n?.length ?? 0) : c === "category" ? YOe(r, e, l) : i === "expand" ? ake : o;
}
-}, jZ = $([
- KX,
- dW,
- rZ,
- aZ,
- HK,
- fq,
- $Oe
-], AZ), MZ = $([
- KX,
- JX,
- WK
-], PX), NZ = (e, t, n) => {
+}, EZ = $([
+ HX,
+ sW,
+ $X,
+ tZ,
+ RK,
+ cq,
+ ike
+], TZ), DZ = $([
+ HX,
+ WX,
+ BK
+], AX), OZ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = gZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && EK(e)) {
- if (a) return IK(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return LK(e, t.tickCount, t.allowDecimals, r);
+ var i = dZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && SK(e)) {
+ if (a) return MK(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return NK(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && EK(e)) return IK(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && EK(e)) return LK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && SK(e)) return MK(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && SK(e)) return NK(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, PZ = $([
- jZ,
- qX,
- MZ
-], NZ), FZ = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && EK(t) && Array.isArray(n) && n.length > 0) {
+}, kZ = $([
+ EZ,
+ UX,
+ DZ
+], OZ), AZ = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && SK(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, tke = $([
- KX,
- jZ,
- PZ,
- fq
-], FZ), IZ = $($(aZ, KX, (e, t) => {
+}, oke = $([
+ HX,
+ EZ,
+ kZ,
+ cq
+], AZ), jZ = $($(tZ, HX, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(cZ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(iZ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -60208,22 +60208,22 @@ var OZ = (e, t) => {
}
return n / o;
}
-}), dW, BK, GU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!bU(e)) return 0;
+}), sW, IK, VU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!gU(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = zz(n, e * a), s = e * a / 2;
+ var o = Rz(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), nke = (e, t, n) => {
- var r = VX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : IZ(e, "xAxis", t, n, r.padding);
-}, rke = (e, t, n) => {
- var r = WX(e, t);
- return r == null || typeof r.padding != "string" ? 0 : IZ(e, "yAxis", t, n, r.padding);
-}, ike = $(VX, nke, (e, t) => {
+}), ske = (e, t, n) => {
+ var r = LX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : jZ(e, "xAxis", t, n, r.padding);
+}, cke = (e, t, n) => {
+ var r = BX(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : jZ(e, "yAxis", t, n, r.padding);
+}, lke = $(LX, ske, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -60236,7 +60236,7 @@ var OZ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), ake = $(WX, rke, (e, t) => {
+}), uke = $(BX, cke, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -60249,98 +60249,98 @@ var OZ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), oke = $([
+}), dke = $([
+ VU,
+ lke,
GU,
- ike,
- YU,
- JU,
+ WU,
(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];
-}), ske = $([
+}), fke = $([
+ VU,
+ sW,
+ uke,
GU,
- dW,
- ake,
- YU,
- JU,
+ WU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), LZ = (e, t, n, r) => {
+}), MZ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return oke(e, n, r);
- case "yAxis": return ske(e, n, r);
- case "zAxis": return GX(e, n)?.range;
- case "angleAxis": return lq(e);
- case "radiusAxis": return uq(e, n);
+ case "xAxis": return dke(e, n, r);
+ case "yAxis": return fke(e, n, r);
+ case "zAxis": return VX(e, n)?.range;
+ case "angleAxis": return aq(e);
+ case "radiusAxis": return oq(e, n);
default: return;
}
-}, RZ = $([KX, LZ], ZK), zZ = $([
- KX,
- MZ,
- $([MZ, tke], Sq),
- RZ
-], NX), BZ = (e, t, n, r) => {
+}, NZ = $([HX, MZ], qK), PZ = $([
+ HX,
+ DZ,
+ $([DZ, oke], vq),
+ NZ
+], kX), FZ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (TU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
- }
-}, VZ = $([
- dW,
- aZ,
- qX,
- fq
-], BZ), HZ = $([zZ], xq);
-$([zZ], DOe), $([zZ, LOe], FX), $([
- QX,
- yZ,
- fq
-], VOe);
-function UZ(e, t) {
+ if (xU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ }
+}, IZ = $([
+ sW,
+ tZ,
+ UX,
+ cq
+], FZ), LZ = $([PZ], _q);
+$([PZ], jOe), $([PZ, VOe], jX), $([
+ JX,
+ mZ,
+ cq
+], KOe);
+function RZ(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var WZ = (e, t) => t, GZ = (e, t, n) => n, cke = $(VU, WZ, GZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(UZ)), lke = $(HU, WZ, GZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(UZ)), KZ = (e, t) => ({
+var zZ = (e, t) => t, BZ = (e, t, n) => n, pke = $(LU, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), mke = $(RU, zZ, BZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(RZ)), VZ = (e, t) => ({
width: e.width,
height: t.height
-}), uke = (e, t) => ({
+}), hke = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), qZ = $(GU, VX, KZ), dke = (e, t, n) => {
+}), HZ = $(VU, LX, VZ), gke = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, fke = (e, t, n) => {
+}, _ke = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, pke = $(zU, GU, cke, WZ, GZ, (e, t, n, r, i) => {
+}, vke = $(FU, VU, pke, zZ, BZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = KZ(t, n);
- o ??= dke(t, r, e);
+ var s = VZ(t, n);
+ o ??= gke(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;
-}), mke = $(RU, GU, lke, WZ, GZ, (e, t, n, r, i) => {
+}), yke = $(PU, VU, mke, zZ, BZ, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = uke(t, n);
- o ??= fke(t, r, e);
+ var s = hke(t, n);
+ o ??= _ke(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;
-}), hke = $([
- GU,
- VX,
+}), bke = $([
+ VU,
+ LX,
(e, t) => {
- var n = VX(e, t);
- if (n != null) return pke(e, n.orientation, n.mirror);
+ var n = LX(e, t);
+ if (n != null) return vke(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -60354,12 +60354,12 @@ var WZ = (e, t) => t, GZ = (e, t, n) => n, cke = $(VU, WZ, GZ, (e, t, n) => e.fi
y: i
};
}
-}), gke = $([
- GU,
- WX,
+}), xke = $([
+ VU,
+ BX,
(e, t) => {
- var n = WX(e, t);
- if (n != null) return mke(e, n.orientation, n.mirror);
+ var n = BX(e, t);
+ if (n != null) return yke(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -60373,38 +60373,38 @@ var WZ = (e, t) => t, GZ = (e, t, n) => n, cke = $(VU, WZ, GZ, (e, t, n) => e.fi
y: e.top
};
}
-}), JZ = $(GU, WX, (e, t) => ({
+}), UZ = $(VU, BX, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), YZ = (e, t, n) => {
+})), WZ = (e, t, n) => {
switch (t) {
- case "xAxis": return qZ(e, n).width;
- case "yAxis": return JZ(e, n).height;
+ case "xAxis": return HZ(e, n).width;
+ case "yAxis": return UZ(e, n).height;
default: return;
}
-}, XZ = (e, t, n, r) => {
+}, GZ = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = TU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && Bz(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = xU(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && zz(c)) return c;
}
-}, ZZ = $([
- dW,
- aZ,
- KX,
- fq
-], XZ), QZ = $([
- dW,
- MOe,
- MZ,
- HZ,
- ZZ,
- VZ,
+}, KZ = $([
+ sW,
+ tZ,
+ HX,
+ cq
+], GZ), qZ = $([
+ sW,
+ IOe,
+ DZ,
LZ,
- PZ,
- fq
+ KZ,
+ IZ,
+ MZ,
+ kZ,
+ cq
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = TU(e, c);
+ var l = xU(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -60426,107 +60426,107 @@ var WZ = (e, t) => t, GZ = (e, t, n) => n, cke = $(VU, WZ, GZ, (e, t, n) => e.fi
scale: r
};
}
-}), $Z = (e, t, n, r, i, a, o, s, c) => {
+}), JZ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = TU(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 ? Pz(a[0] - a[1]) * 2 * m : m;
+ var l = xU(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 ? Nz(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return bU(i) ? {
+ return gU(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(Gz) : l && s ? s.map((e, t) => {
+ }).filter(Wz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(Gz) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(Wz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(Gz) : r.domain().map((e, t) => {
+ }).filter(Wz) : r.domain().map((e, t) => {
var n = r.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(Gz);
+ }).filter(Wz);
}
-}, eQ = $([
- dW,
- qX,
- MZ,
- HZ,
- PZ,
+}, YZ = $([
+ sW,
+ UX,
+ DZ,
LZ,
- ZZ,
- VZ,
- fq
-], $Z), tQ = (e, t, n, r, i, a, o) => {
+ kZ,
+ MZ,
+ KZ,
+ IZ,
+ cq
+], JZ), XZ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = TU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? Pz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = xU(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? Nz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return bU(r) ? {
+ return gU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(Gz) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(Wz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return bU(r) ? {
+ return gU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(Gz) : n.domain().map((e, t) => {
+ }).filter(Wz) : n.domain().map((e, t) => {
var r = n.map(e);
- return bU(r) ? {
+ return gU(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(Gz);
+ }).filter(Wz);
}
-}, nQ = $([
- dW,
- qX,
- HZ,
+}, ZZ = $([
+ sW,
+ UX,
LZ,
- ZZ,
- VZ,
- fq
-], tQ), rQ = $(KX, HZ, (e, t) => {
- if (e != null && t != null) return LX(LX({}, e), {}, { scale: t });
-});
-$((e, t, n) => GX(e, n), $([$([
- KX,
MZ,
- jZ,
- RZ
-], NX)], xq), (e, t) => {
- if (e != null && t != null) return LX(LX({}, e), {}, { scale: t });
+ KZ,
+ IZ,
+ cq
+], XZ), QZ = $(HX, LZ, (e, t) => {
+ if (e != null && t != null) return NX(NX({}, e), {}, { scale: t });
});
-var _ke = $([
- dW,
- VU,
- HU
+$((e, t, n) => VX(e, n), $([$([
+ HX,
+ DZ,
+ EZ,
+ NZ
+], kX)], _q), (e, t) => {
+ if (e != null && t != null) return NX(NX({}, e), {}, { scale: t });
+});
+var Ske = $([
+ sW,
+ LU,
+ RU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -60548,41 +60548,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var iQ = (e) => e.options.defaultTooltipEventType, aQ = (e) => e.options.validateTooltipEventTypes;
-function oQ(e, t, n) {
+var $Z = (e) => e.options.defaultTooltipEventType, eQ = (e) => e.options.validateTooltipEventTypes;
+function tQ(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function sQ(e, t) {
- return oQ(t, iQ(e), aQ(e));
+function nQ(e, t) {
+ return tQ(t, $Z(e), eQ(e));
}
-function vke(e) {
- return Q((t) => sQ(t, e));
+function Cke(e) {
+ return Q((t) => nQ(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var cQ = (e, t) => {
+var rQ = (e, t) => {
var n, r = Number(t);
- if (!(Fz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, yke = (e) => e.tooltip.settings, lQ = {
+ if (!(Pz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, wke = (e) => e.tooltip.settings, iQ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, uQ = GH({
+}, aQ = VH({
name: "tooltip",
initialState: {
itemInteraction: {
- click: lQ,
- hover: lQ
+ click: iQ,
+ hover: iQ
},
axisInteraction: {
- click: lQ,
- hover: lQ
+ click: iQ,
+ hover: iQ
},
- keyboardInteraction: lQ,
+ keyboardInteraction: iQ,
syncInteraction: {
active: !1,
index: null,
@@ -60604,23 +60604,23 @@ var cQ = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(nG(t.payload));
+ e.tooltipItemPayloads.push(QW(t.payload));
},
- prepare: VH()
+ prepare: LH()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MH(e).tooltipItemPayloads.indexOf(nG(n));
- i > -1 && (e.tooltipItemPayloads[i] = nG(r));
+ var { prev: n, next: r } = t.payload, i = OH(e).tooltipItemPayloads.indexOf(QW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = MH(e).tooltipItemPayloads.indexOf(nG(t.payload));
+ var n = OH(e).tooltipItemPayloads.indexOf(QW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: VH()
+ prepare: LH()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -60650,10 +60650,10 @@ var cQ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: bke, replaceTooltipEntrySettings: xke, removeTooltipEntrySettings: Ske, setTooltipSettingsState: Cke, setActiveMouseOverItemIndex: dQ, mouseLeaveItem: wke, mouseLeaveChart: fQ, setActiveClickItemIndex: Tke, setMouseOverAxisIndex: pQ, setMouseClickAxisIndex: Eke, setSyncInteraction: mQ, setKeyboardInteraction: hQ } = uQ.actions, Dke = uQ.reducer;
+}), { addTooltipEntrySettings: Tke, replaceTooltipEntrySettings: Eke, removeTooltipEntrySettings: Dke, setTooltipSettingsState: Oke, setActiveMouseOverItemIndex: oQ, mouseLeaveItem: kke, mouseLeaveChart: sQ, setActiveClickItemIndex: Ake, setMouseOverAxisIndex: cQ, setMouseClickAxisIndex: jke, setSyncInteraction: lQ, setKeyboardInteraction: uQ } = aQ.actions, Mke = aQ.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function gQ(e, t) {
+function dQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60663,30 +60663,30 @@ function gQ(e, t) {
}
return n;
}
-function _Q(e) {
+function fQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? gQ(Object(n), !0).forEach(function(t) {
- Oke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gQ(Object(n)).forEach(function(t) {
+ t % 2 ? dQ(Object(n), !0).forEach(function(t) {
+ Nke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Oke(e, t, n) {
- return (t = kke(t)) in e ? Object.defineProperty(e, t, {
+function Nke(e, t, n) {
+ return (t = Pke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kke(e) {
- var t = Ake(e, "string");
+function Pke(e) {
+ var t = Fke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ake(e, t) {
+function Fke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60696,22 +60696,22 @@ function Ake(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jke(e, t, n) {
+function Ike(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Mke(e) {
+function Lke(e) {
return e.index != null;
}
-var vQ = (e, t, n, r) => {
- if (t == null) return lQ;
- var i = jke(e, t, n);
- if (i == null) return lQ;
+var pQ = (e, t, n, r) => {
+ if (t == null) return iQ;
+ var i = Ike(e, t, n);
+ if (i == null) return iQ;
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 (Mke(i)) {
- if (a) return _Q(_Q({}, i), {}, { active: !0 });
+ if (Lke(i)) {
+ if (a) return fQ(fQ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -60719,11 +60719,11 @@ var vQ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return _Q(_Q({}, lQ), {}, { coordinate: i.coordinate });
+ return fQ(fQ({}, iQ), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function Nke(e) {
+function Rke(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -60732,25 +60732,25 @@ function Nke(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Pke(e, t) {
- var n = Nke(e), r = t[0], i = t[1];
+function zke(e, t) {
+ var n = Rke(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function Fke(e, t, n) {
+function Bke(e, t, n) {
if (n == null || t == null) return !0;
- var r = wU(e, t);
- return r == null || !EK(n) || Pke(r, n);
+ var r = bU(e, t);
+ return r == null || !SK(n) || zke(r, n);
}
-var yQ = (e, t, n, r) => {
+var mQ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!bU(a)) return i;
+ if (!gU(a)) return i;
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || Fke(l, n, r) ? String(c) : null;
-}, bQ = (e, t, n, r, i, a, o) => {
+ return l == null || Bke(l, n, r) ? String(c) : null;
+}, hQ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -60766,7 +60766,7 @@ var yQ = (e, t, n, r) => {
};
}
}
-}, xQ = (e, t, n, r) => {
+}, gQ = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -60776,10 +60776,10 @@ var yQ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, SQ = (e) => e.options.tooltipPayloadSearcher, CQ = (e) => e.tooltip;
+}, _Q = (e) => e.options.tooltipPayloadSearcher, vQ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function wQ(e, t) {
+function yQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60789,30 +60789,30 @@ function wQ(e, t) {
}
return n;
}
-function TQ(e) {
+function bQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? wQ(Object(n), !0).forEach(function(t) {
- Ike(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wQ(Object(n)).forEach(function(t) {
+ t % 2 ? yQ(Object(n), !0).forEach(function(t) {
+ Vke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ike(e, t, n) {
- return (t = Lke(t)) in e ? Object.defineProperty(e, t, {
+function Vke(e, t, n) {
+ return (t = Hke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lke(e) {
- var t = Rke(e, "string");
+function Hke(e) {
+ var t = Uke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rke(e, t) {
+function Uke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60822,222 +60822,222 @@ function Rke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function zke(e) {
+function Wke(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Bke(e) {
+function Gke(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Vke(e) {
+function Kke(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function EQ(e) {
+function xQ(e) {
if (typeof e == "string") return e;
}
-function Hke(e) {
+function qke(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? zke(e.name) : void 0,
- unit: "unit" in e ? Bke(e.unit) : void 0,
- dataKey: "dataKey" in e ? Vke(e.dataKey) : void 0,
+ name: "name" in e ? Wke(e.name) : void 0,
+ unit: "unit" in e ? Gke(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Kke(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? EQ(e.color) : void 0,
- fill: "fill" in e ? EQ(e.fill) : void 0
+ color: "color" in e ? xQ(e.color) : void 0,
+ fill: "fill" in e ? xQ(e.fill) : void 0
};
}
-function Uke(e, t) {
+function Jke(e, t) {
return e ?? t;
}
-var DQ = (e, t, n, r, i, a, o) => {
+var SQ = (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 = Uke(d, s), m = Array.isArray(p) ? yU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? Hz(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = Jke(d, s), m = Array.isArray(p) ? hU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? Vz(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Hke(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = TQ(TQ({}, f), {}, {
+ var n = qke(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = bQ(bQ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(IU({
+ e.push(MU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: wU(a, i),
+ value: bU(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(IU({
+ }) : e.push(MU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: wU(_, h),
- name: wU(_, g) ?? f?.name
+ value: bU(_, h),
+ name: bU(_, g) ?? f?.name
})), e;
}, []);
}
-}, OQ = $([
- uZ,
- JX,
- WK
-], PX), kQ = $([
+}, CQ = $([
+ oZ,
+ WX,
+ BK
+], AX), wQ = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- uZ,
- $([yq, bq], YX)
-], ZX, { memoizeOptions: { resultEqualityCheck: vq } }), Wke = $([kQ], (e) => e.filter(gq)), AQ = $([$([kQ], tZ, { memoizeOptions: { resultEqualityCheck: vq } }), SK], nZ), Gke = $([
- Wke,
- SK,
- uZ
-], hq), jQ = $([
- AQ,
- uZ,
- kQ
-], iZ), MQ = $([uZ], gZ), NQ = $([MQ, $([uZ], (e) => e.allowDataOverflow)], OK), Kke = $([
+ oZ,
+ $([hq, gq], GX)
+], qX, { memoizeOptions: { resultEqualityCheck: mq } }), Yke = $([wQ], (e) => e.filter(fq)), TQ = $([$([wQ], ZX, { memoizeOptions: { resultEqualityCheck: mq } }), vK], QX), Xke = $([
+ Yke,
+ vK,
+ oZ
+], dq), EQ = $([
+ TQ,
+ oZ,
+ wQ
+], eZ), DQ = $([oZ], dZ), OQ = $([DQ, $([oZ], (e) => e.allowDataOverflow)], wK), Zke = $([
$([
- Gke,
- $([kQ], (e) => e.filter(gq)),
- HK,
- UK
- ], pZ),
- SK,
- yq,
- NQ
-], hZ), qke = $([
- AQ,
- uZ,
- $([kQ], eZ),
+ Xke,
+ $([wQ], (e) => e.filter(fq)),
+ RK,
+ zK
+ ], cZ),
+ vK,
+ hq,
+ OQ
+], uZ), Qke = $([
+ TQ,
+ oZ,
+ $([wQ], XX),
+ mZ,
+ hq
+], gZ, { memoizeOptions: { resultEqualityCheck: pq } }), $ke = $([$([
+ _Z,
+ hq,
+ gq
+], vZ), hq], xZ), eAe = $([$([
yZ,
- yq
-], xZ, { memoizeOptions: { resultEqualityCheck: _q } }), Jke = $([$([
- SZ,
- yq,
- bq
-], CZ), yq], EZ), Yke = $([$([
- wZ,
- yq,
- bq
-], CZ), yq], DZ), PQ = $([
- uZ,
- dW,
- AQ,
- jQ,
- HK,
- yq,
+ hq,
+ gq
+], vZ), hq], SZ), kQ = $([
+ oZ,
+ sW,
+ TQ,
+ EQ,
+ RK,
+ hq,
$([
- uZ,
- MQ,
- NQ,
- Kke,
- qke,
+ oZ,
+ DQ,
+ OQ,
+ Zke,
+ Qke,
$([
- Jke,
+ $ke,
$([$([
- TZ,
- yq,
- bq
- ], CZ), yq], OZ),
- Yke
- ], bZ),
- dW,
- yq
- ], kZ)
-], AZ), Xke = $([
- uZ,
- PQ,
+ bZ,
+ hq,
+ gq
+ ], vZ), hq], CZ),
+ eAe
+ ], hZ),
+ sW,
+ hq
+ ], wZ)
+], TZ), tAe = $([
+ oZ,
+ kQ,
$([
- PQ,
- uZ,
- OQ
- ], NZ),
- yq
-], FZ), FQ = (e) => LZ(e, yq(e), bq(e), !1), IQ = $([uZ, FQ], ZK), LQ = $([$([
- uZ,
- OQ,
- Xke,
- IQ
-], NX)], xq), RQ = $([
- dW,
- uZ,
- OQ,
- LQ,
- FQ,
+ kQ,
+ oZ,
+ CQ
+ ], OZ),
+ hq
+], AZ), AQ = (e) => MZ(e, hq(e), gq(e), !1), jQ = $([oZ, AQ], qK), MQ = $([$([
+ oZ,
+ CQ,
+ tAe,
+ jQ
+], kX)], _q), NQ = $([
+ sW,
+ oZ,
+ CQ,
+ MQ,
+ AQ,
$([
- dW,
- jQ,
- uZ,
- yq
- ], XZ),
+ sW,
+ EQ,
+ oZ,
+ hq
+ ], GZ),
$([
- dW,
- jQ,
- uZ,
- yq
- ], BZ),
- yq
+ sW,
+ EQ,
+ oZ,
+ hq
+ ], FZ),
+ hq
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = TU(e, s);
+ var { type: c } = t, l = xU(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? Pz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? Nz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(Gz) : r.domain().map((e, t) => {
+ }).filter(Wz) : r.domain().map((e, t) => {
var n = r.map(e);
- return bU(n) ? {
+ return gU(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(Gz);
+ }).filter(Wz);
}
}
-}), zQ = $([
- iQ,
- aQ,
- yke
-], (e, t, n) => oQ(n.shared, e, t)), BQ = (e) => e.tooltip.settings.trigger, VQ = (e) => e.tooltip.settings.defaultIndex, HQ = $([
- CQ,
- zQ,
- BQ,
- VQ
-], vQ), UQ = $([
- HQ,
- AQ,
- dZ,
- PQ
-], yQ), WQ = $([RQ, UQ], cQ), GQ = $([HQ], (e) => {
+}), PQ = $([
+ $Z,
+ eQ,
+ wke
+], (e, t, n) => tQ(n.shared, e, t)), FQ = (e) => e.tooltip.settings.trigger, IQ = (e) => e.tooltip.settings.defaultIndex, LQ = $([
+ vQ,
+ PQ,
+ FQ,
+ IQ
+], pQ), RQ = $([
+ LQ,
+ TQ,
+ sZ,
+ kQ
+], mQ), zQ = $([NQ, RQ], rQ), BQ = $([LQ], (e) => {
if (e) return e.dataKey;
-}), Zke = $([HQ], (e) => {
+}), nAe = $([LQ], (e) => {
if (e) return e.graphicalItemId;
-}), KQ = $([
- CQ,
- zQ,
- BQ,
+}), VQ = $([
+ vQ,
+ PQ,
+ FQ,
+ IQ
+], gQ), rAe = $([LQ, $([
+ PU,
+ FU,
+ sW,
+ VU,
+ NQ,
+ IQ,
VQ
-], xQ), Qke = $([HQ, $([
- RU,
- zU,
- dW,
- GU,
- RQ,
+], hQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), iAe = $([LQ], (e) => e?.active ?? !1), aAe = $([$([
VQ,
- KQ
-], bQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $ke = $([HQ], (e) => e?.active ?? !1), eAe = $([$([
- KQ,
- UQ,
- SK,
- dZ,
- WQ,
- SQ,
- zQ
-], DQ)], (e) => {
+ RQ,
+ vK,
+ sZ,
+ zQ,
+ _Q,
+ PQ
+], SQ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -61045,7 +61045,7 @@ var DQ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function qQ(e, t) {
+function HQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61055,30 +61055,30 @@ function qQ(e, t) {
}
return n;
}
-function JQ(e) {
+function UQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? qQ(Object(n), !0).forEach(function(t) {
- tAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qQ(Object(n)).forEach(function(t) {
+ t % 2 ? HQ(Object(n), !0).forEach(function(t) {
+ oAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tAe(e, t, n) {
- return (t = nAe(t)) in e ? Object.defineProperty(e, t, {
+function oAe(e, t, n) {
+ return (t = sAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nAe(e) {
- var t = rAe(e, "string");
+function sAe(e) {
+ var t = cAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rAe(e, t) {
+function cAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61088,13 +61088,13 @@ function rAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iAe = () => Q(uZ), aAe = () => {
- var e = iAe(), t = Q(RQ), n = Q(LQ);
- return FU(!e || !n ? void 0 : JQ(JQ({}, e), {}, { scale: n }), t);
+var lAe = () => Q(oZ), uAe = () => {
+ var e = lAe(), t = Q(NQ), n = Q(MQ);
+ return jU(!e || !n ? void 0 : UQ(UQ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function YQ(e, t) {
+function WQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61104,30 +61104,30 @@ function YQ(e, t) {
}
return n;
}
-function XQ(e) {
+function GQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? YQ(Object(n), !0).forEach(function(t) {
- oAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YQ(Object(n)).forEach(function(t) {
+ t % 2 ? WQ(Object(n), !0).forEach(function(t) {
+ dAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oAe(e, t, n) {
- return (t = sAe(t)) in e ? Object.defineProperty(e, t, {
+function dAe(e, t, n) {
+ return (t = fAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sAe(e) {
- var t = cAe(e, "string");
+function fAe(e) {
+ var t = pAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cAe(e, t) {
+function pAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61137,7 +61137,7 @@ function cAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lAe = (e, t, n, r) => {
+var mAe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -61153,18 +61153,18 @@ var lAe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, uAe = (e, t, n, r) => {
+}, hAe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return XQ(XQ(XQ({}, r), pK(r.cx, r.cy, o, a)), {}, {
+ return GQ(GQ(GQ({}, r), lK(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return XQ(XQ(XQ({}, r), pK(r.cx, r.cy, s, c)), {}, {
+ return GQ(GQ(GQ({}, r), lK(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -61183,19 +61183,19 @@ var lAe = (e, t, n, r) => {
y: 0
};
};
-function dAe(e, t) {
+function gAe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var ZQ = (e, t, n, r, i) => {
+var KQ = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (Pz(c - s) !== Pz(l - c)) {
+ if (Nz(c - s) !== Nz(l - c)) {
var d = [];
- if (Pz(l - c) === Pz(i[1] - i[0])) {
+ if (Nz(l - c) === Nz(i[1] - i[0])) {
u = l;
var f = c + i[1] - i[0];
d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);
@@ -61220,78 +61220,78 @@ var ZQ = (e, t, n, r, i) => {
}
}
return -1;
-}, QQ = () => Q(WK), $Q = (e, t) => t, e$ = (e, t, n) => n, t$ = (e, t, n, r) => r, fAe = $(RQ, (e) => aV(e, (e) => e.coordinate)), n$ = $([
- CQ,
- $Q,
- e$,
- t$
-], vQ), r$ = $([
- n$,
- AQ,
- dZ,
- PQ
-], yQ), pAe = (e, t, n) => {
+}, qQ = () => Q(BK), JQ = (e, t) => t, YQ = (e, t, n) => n, XQ = (e, t, n, r) => r, _Ae = $(NQ, (e) => tV(e, (e) => e.coordinate)), ZQ = $([
+ vQ,
+ JQ,
+ YQ,
+ XQ
+], pQ), QQ = $([
+ ZQ,
+ TQ,
+ sZ,
+ kQ
+], mQ), vAe = (e, t, n) => {
if (t != null) {
- var r = CQ(e);
+ var r = vQ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, i$ = $([
- CQ,
+}, $Q = $([
+ vQ,
+ JQ,
+ YQ,
+ XQ
+], gQ), e$ = $([
+ PU,
+ FU,
+ sW,
+ VU,
+ NQ,
+ XQ,
+ $Q
+], hQ), yAe = $([ZQ, e$], (e, t) => e.coordinate ?? t), t$ = $([NQ, QQ], rQ), bAe = $([
$Q,
- e$,
- t$
-], xQ), a$ = $([
- RU,
- zU,
- dW,
- GU,
- RQ,
+ QQ,
+ vK,
+ sZ,
t$,
- i$
-], bQ), mAe = $([n$, a$], (e, t) => e.coordinate ?? t), o$ = $([RQ, r$], cQ), hAe = $([
- i$,
- r$,
- SK,
- dZ,
- o$,
- SQ,
- $Q
-], DQ), gAe = $([n$, r$], (e, t) => ({
+ _Q,
+ JQ
+], SQ), xAe = $([ZQ, QQ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), _Ae = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && dAe(e, o)) {
- var s = ZQ(USe(e, t), a, i, n, r), c = lAe(t, i, s, e);
+})), SAe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && gAe(e, o)) {
+ var s = KQ(qSe(e, t), a, i, n, r), c = mAe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, vAe = (e, t, n, r, i, a, o) => {
+}, CAe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = NTe(e, n);
+ var s = LTe(e, n);
if (s) {
- var c = ZQ(WSe(s, t), o, a, r, i), l = uAe(t, a, c, s);
+ var c = KQ(JSe(s, t), o, a, r, i), l = hAe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, yAe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? _Ae(e, t, r, i, a, o, s) : vAe(e, t, n, r, i, a, o);
-}, bAe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, wAe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? SAe(e, t, r, i, a, o, s) : CAe(e, t, n, r, i, a, o);
+}, TAe = $((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;
}
-}), xAe = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(JK));
+}), EAe = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(WK));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: eEe } });
+}, { memoizeOptions: { resultEqualityCheck: iEe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function s$(e, t) {
+function n$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61301,30 +61301,30 @@ function s$(e, t) {
}
return n;
}
-function c$(e) {
+function r$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? s$(Object(n), !0).forEach(function(t) {
- SAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s$(Object(n)).forEach(function(t) {
+ t % 2 ? n$(Object(n), !0).forEach(function(t) {
+ DAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SAe(e, t, n) {
- return (t = CAe(t)) in e ? Object.defineProperty(e, t, {
+function DAe(e, t, n) {
+ return (t = OAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CAe(e) {
- var t = wAe(e, "string");
+function OAe(e) {
+ var t = kAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wAe(e, t) {
+function kAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61334,17 +61334,17 @@ function wAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TAe = { zIndexMap: Object.values(JK).reduce((e, t) => c$(c$({}, e), {}, { [t]: {
+var AAe = { zIndexMap: Object.values(WK).reduce((e, t) => r$(r$({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, EAe = new Set(Object.values(JK));
-function DAe(e) {
- return EAe.has(e);
+} }), {}) }, jAe = new Set(Object.values(WK));
+function MAe(e) {
+ return jAe.has(e);
}
-var l$ = GH({
+var i$ = VH({
name: "zIndex",
- initialState: TAe,
+ initialState: AAe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -61355,61 +61355,61 @@ var l$ = GH({
panoramaElement: void 0
};
},
- prepare: VH()
+ prepare: LH()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !DAe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !MAe(n) && delete e.zIndexMap[n]);
},
- prepare: VH()
+ prepare: LH()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = nG(r) : e.zIndexMap[n].element = nG(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = QW(r) : e.zIndexMap[n].element = QW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : nG(r),
- panoramaElement: i ? nG(r) : void 0
+ element: i ? void 0 : QW(r),
+ panoramaElement: i ? QW(r) : void 0
};
},
- prepare: VH()
+ prepare: LH()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: VH()
+ prepare: LH()
}
}
-}), { registerZIndexPortal: OAe, unregisterZIndexPortal: kAe, registerZIndexPortalElement: AAe, unregisterZIndexPortalElement: jAe } = l$.actions, MAe = l$.reducer;
+}), { registerZIndexPortal: NAe, unregisterZIndexPortal: PAe, registerZIndexPortalElement: FAe, unregisterZIndexPortalElement: IAe } = i$.actions, LAe = i$.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function u$(e) {
- var { zIndex: t, children: n } = e, r = yCe() && t !== void 0 && t !== 0, i = qU(), a = NB();
- (0, V.useLayoutEffect)(() => r ? (a(OAe({ zIndex: t })), () => {
- a(kAe({ zIndex: t }));
- }) : Kz, [
+function a$(e) {
+ var { zIndex: t, children: n } = e, r = CCe() && t !== void 0 && t !== 0, i = UU(), a = kB();
+ (0, V.useLayoutEffect)(() => r ? (a(NAe({ zIndex: t })), () => {
+ a(PAe({ zIndex: t }));
+ }) : Gz, [
a,
t,
r
]);
- var o = Q((e) => bAe(e, t, i));
+ var o = Q((e) => TAe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, kt.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function d$() {
- return d$ = Object.assign ? Object.assign.bind() : function(e) {
+function o$() {
+ return o$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, d$.apply(null, arguments);
+ }, o$.apply(null, arguments);
}
-function f$(e, t) {
+function s$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61419,30 +61419,30 @@ function f$(e, t) {
}
return n;
}
-function p$(e) {
+function c$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? f$(Object(n), !0).forEach(function(t) {
- NAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(t) {
+ t % 2 ? s$(Object(n), !0).forEach(function(t) {
+ RAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NAe(e, t, n) {
- return (t = PAe(t)) in e ? Object.defineProperty(e, t, {
+function RAe(e, t, n) {
+ return (t = zAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PAe(e) {
- var t = FAe(e, "string");
+function zAe(e) {
+ var t = BAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FAe(e, t) {
+function BAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61452,18 +61452,18 @@ function FAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function IAe(e) {
+function VAe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, V.isValidElement)(t) ? /*#__PURE__*/ (0, V.cloneElement)(t, r) : /*#__PURE__*/ (0, V.createElement)(n, r);
}
-function LAe(e) {
+function HAe(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = Lwe, h = JK.cursorLine;
- else if (l === "BarChart") p = Rwe(o, u, i, a), m = cK, h = JK.cursorRectangle;
- else if (o === "radial" && Qz(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = mK(u);
+ if (l === "ScatterChart") p = u, m = Vwe, h = WK.cursorLine;
+ else if (l === "BarChart") p = Hwe(o, u, i, a), m = iK, h = WK.cursorRectangle;
+ else if (o === "radial" && Zz(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = uK(u);
p = {
cx: g,
cy: _,
@@ -61471,25 +61471,25 @@ function LAe(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = yK, h = JK.cursorLine;
- } else p = { points: WTe(o, u, i) }, m = FG, h = JK.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = p$(p$(p$(p$({
+ }, m = hK, h = WK.cursorLine;
+ } else p = { points: JTe(o, u, i) }, m = jG, h = WK.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = c$(c$(c$(c$({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), DR(s)), {}, {
+ }, i), p), ER(s)), {}, {
payload: d,
payloadIndex: f,
className: za("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ V.createElement(u$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ V.createElement(IAe, {
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ V.createElement(VAe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function RAe(e) {
- var t = aAe(), n = cW(), r = fW(), i = QQ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ V.createElement(LAe, d$({}, e, {
+function UAe(e) {
+ var t = uAe(), n = iW(), r = cW(), i = qQ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ V.createElement(HAe, o$({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -61498,7 +61498,7 @@ function RAe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var m$ = /*#__PURE__*/ (0, V.createContext)(null), zAe = () => (0, V.useContext)(m$), BAe = (/* @__PURE__ */ bt((/* @__PURE__ */ gt(((e, t) => {
+var l$ = /*#__PURE__*/ (0, V.createContext)(null), WAe = () => (0, V.useContext)(l$), GAe = (/* @__PURE__ */ bt((/* @__PURE__ */ gt(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -61585,12 +61585,12 @@ var m$ = /*#__PURE__*/ (0, V.createContext)(null), zAe = () => (0, V.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, h$ = new BAe(), g$ = "recharts.syncEvent.tooltip", _$ = "recharts.syncEvent.brush", v$ = (e, t) => {
+})))(), 1)).default, u$ = new GAe(), d$ = "recharts.syncEvent.tooltip", f$ = "recharts.syncEvent.brush", p$ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!Fz(n)) return e[n];
+ if (!Pz(n)) return e[n];
}
-}, y$ = GH({
+}, m$ = VH({
name: "options",
initialState: {
chartName: "",
@@ -61601,13 +61601,13 @@ var m$ = /*#__PURE__*/ (0, V.createContext)(null), zAe = () => (0, V.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), VAe = y$.reducer, { createEventEmitter: HAe } = y$.actions;
+}), KAe = m$.reducer, { createEventEmitter: qAe } = m$.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function UAe(e) {
+function JAe(e) {
return e.tooltip.syncInteraction;
}
-var b$ = GH({
+var h$ = VH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -61617,7 +61617,7 @@ var b$ = GH({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = nG(t.payload), t.payload == null) {
+ if (e.chartData = QW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -61631,8 +61631,8 @@ var b$ = GH({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: x$, setDataStartEndIndexes: WAe, setComputedData: GAe } = b$.actions, KAe = b$.reducer, qAe = ["x", "y"];
-function S$(e, t) {
+}), { setChartData: g$, setDataStartEndIndexes: YAe, setComputedData: XAe } = h$.actions, ZAe = h$.reducer, QAe = ["x", "y"];
+function _$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61642,30 +61642,30 @@ function S$(e, t) {
}
return n;
}
-function C$(e) {
+function v$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? S$(Object(n), !0).forEach(function(t) {
- JAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S$(Object(n)).forEach(function(t) {
+ t % 2 ? _$(Object(n), !0).forEach(function(t) {
+ $Ae(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JAe(e, t, n) {
- return (t = YAe(t)) in e ? Object.defineProperty(e, t, {
+function $Ae(e, t, n) {
+ return (t = eje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YAe(e) {
- var t = XAe(e, "string");
+function eje(e) {
+ var t = tje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XAe(e, t) {
+function tje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61675,16 +61675,16 @@ function XAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ZAe(e, t) {
+function nje(e, t) {
if (e == null) return {};
- var n, r, i = QAe(e, t);
+ var n, r, i = rje(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 QAe(e, t) {
+function rje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61693,20 +61693,20 @@ function QAe(e, t) {
}
return n;
}
-function $Ae() {
- var e = Q(GK), t = Q(qK), n = NB(), r = Q(KK), i = Q(RQ), a = fW(), o = sW(), s = Q((e) => e.rootProps.className);
+function ije() {
+ var e = Q(VK), t = Q(UK), n = kB(), r = Q(HK), i = Q(NQ), a = cW(), o = rW(), s = Q((e) => e.rootProps.className);
(0, V.useEffect)(() => {
- if (e == null) return Kz;
+ if (e == null) return Gz;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = ZAe(d, qAe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = C$(C$({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = nje(d, QAe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = v$(v$({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(C$(C$({}, c), {}, { payload: C$(C$({}, c.payload), {}, { coordinate: y }) }));
+ n(v$(v$({}, c), {}, { payload: v$(v$({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -61722,7 +61722,7 @@ function $Ae() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(mQ({
+ n(lQ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -61737,7 +61737,7 @@ function $Ae() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(mQ({
+ n(lQ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -61749,8 +61749,8 @@ function $Ae() {
}
}
};
- return h$.on(g$, s), () => {
- h$.off(g$, s);
+ return u$.on(d$, s), () => {
+ u$.off(d$, s);
};
}, [
s,
@@ -61763,15 +61763,15 @@ function $Ae() {
o
]);
}
-function eje() {
- var e = Q(GK), t = Q(qK), n = NB();
+function aje() {
+ var e = Q(VK), t = Q(UK), n = kB();
(0, V.useEffect)(() => {
- if (e == null) return Kz;
+ if (e == null) return Gz;
var r = (r, i, a) => {
- t !== a && e === r && n(WAe(i));
+ t !== a && e === r && n(YAe(i));
};
- return h$.on(_$, r), () => {
- h$.off(_$, r);
+ return u$.on(f$, r), () => {
+ u$.off(f$, r);
};
}, [
n,
@@ -61779,17 +61779,17 @@ function eje() {
e
]);
}
-function tje() {
- var e = NB();
+function oje() {
+ var e = kB();
(0, V.useEffect)(() => {
- e(HAe());
- }, [e]), $Ae(), eje();
+ e(qAe());
+ }, [e]), ije(), aje();
}
-function nje(e, t, n, r, i, a) {
- var o = Q((n) => pAe(n, e, t)), s = Q(Zke), c = Q(qK), l = Q(GK), u = Q(KK), d = Q(UAe)?.active, f = sW();
+function sje(e, t, n, r, i, a) {
+ var o = Q((n) => vAe(n, e, t)), s = Q(nAe), c = Q(UK), l = Q(VK), u = Q(HK), d = Q(JAe)?.active, f = rW();
(0, V.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = mQ({
+ var e = lQ({
active: a,
coordinate: n,
dataKey: o,
@@ -61798,7 +61798,7 @@ function nje(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- h$.emit(g$, l, e, c);
+ u$.emit(d$, l, e, c);
}
}, [
d,
@@ -61816,7 +61816,7 @@ function nje(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function w$(e, t) {
+function y$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61826,30 +61826,30 @@ function w$(e, t) {
}
return n;
}
-function T$(e) {
+function b$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w$(Object(n), !0).forEach(function(t) {
- rje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w$(Object(n)).forEach(function(t) {
+ t % 2 ? y$(Object(n), !0).forEach(function(t) {
+ cje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rje(e, t, n) {
- return (t = ije(t)) in e ? Object.defineProperty(e, t, {
+function cje(e, t, n) {
+ return (t = lje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ije(e) {
- var t = aje(e, "string");
+function lje(e) {
+ var t = uje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function aje(e, t) {
+function uje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61859,13 +61859,13 @@ function aje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function oje(e) {
+function dje(e) {
return e.dataKey;
}
-function sje(e, t) {
- return /*#__PURE__*/ V.isValidElement(e) ? /*#__PURE__*/ V.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ V.createElement(e, t) : /*#__PURE__*/ V.createElement(pwe, t);
+function fje(e, t) {
+ return /*#__PURE__*/ V.isValidElement(e) ? /*#__PURE__*/ V.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ V.createElement(e, t) : /*#__PURE__*/ V.createElement(_we, t);
}
-var E$ = [], cje = {
+var x$ = [], pje = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -61891,10 +61891,10 @@ var E$ = [], cje = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function lje(e) {
- var t = nB(e, cje), { 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 = NB(), S = typeof v == "number" ? String(v) : v;
+function mje(e) {
+ var t = tB(e, pje), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = kB(), S = typeof v == "number" ? String(v) : v;
(0, V.useEffect)(() => {
- x(Cke({
+ x(Oke({
shared: g,
trigger: _,
axisId: b,
@@ -61909,20 +61909,20 @@ function lje(e) {
n,
S
]);
- var C = sW(), w = TG(), T = vke(g), { activeIndex: E, isActive: D } = Q((e) => gAe(e, T, _, S)) ?? {}, O = Q((e) => hAe(e, T, _, S)), k = Q((e) => o$(e, T, _, S)), A = Q((e) => mAe(e, T, _, S)), j = O, M = zAe(), N = n ?? D ?? !1, [P, ee] = dV([j, N]), F = T === "axis" ? k : void 0;
- nje(T, _, A, F, E, N);
+ var C = rW(), w = xG(), T = Cke(g), { activeIndex: E, isActive: D } = Q((e) => xAe(e, T, _, S)) ?? {}, O = Q((e) => bAe(e, T, _, S)), k = Q((e) => t$(e, T, _, S)), A = Q((e) => yAe(e, T, _, S)), j = O, M = WAe(), N = n ?? D ?? !1, [P, ee] = sV([j, N]), F = T === "axis" ? k : void 0;
+ sje(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
- var te = j ?? E$;
- N || (te = E$), s && te.length && (te = DB(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, oje));
- var ne = te.length > 0, re = T$(T$({}, t), {}, {
+ var te = j ?? x$;
+ N || (te = x$), s && te.length && (te = EB(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, dje));
+ var ne = te.length > 0, re = b$(b$({}, t), {}, {
payload: te,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ V.createElement(Cwe, {
+ }), ie = /*#__PURE__*/ V.createElement(Dwe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -61939,8 +61939,8 @@ function lje(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, sje(o, re));
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ (0, kt.createPortal)(ie, I), N && /*#__PURE__*/ V.createElement(RAe, {
+ }, fje(o, re));
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ (0, kt.createPortal)(ie, I), N && /*#__PURE__*/ V.createElement(UAe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -61950,23 +61950,23 @@ function lje(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var D$ = (e) => null;
-D$.displayName = "Cell";
+var S$ = (e) => null;
+S$.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function uje(e, t, n) {
- return (t = dje(t)) in e ? Object.defineProperty(e, t, {
+function hje(e, t, n) {
+ return (t = gje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dje(e) {
- var t = fje(e, "string");
+function gje(e) {
+ var t = _je(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fje(e, t) {
+function _je(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61976,9 +61976,9 @@ function fje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pje = class {
+var vje = class {
constructor(e) {
- uje(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ hje(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -62001,7 +62001,7 @@ var pje = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function O$(e, t) {
+function C$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62011,30 +62011,30 @@ function O$(e, t) {
}
return n;
}
-function mje(e) {
+function yje(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) {
- hje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
+ t % 2 ? C$(Object(n), !0).forEach(function(t) {
+ bje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hje(e, t, n) {
- return (t = gje(t)) in e ? Object.defineProperty(e, t, {
+function bje(e, t, n) {
+ return (t = xje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gje(e) {
- var t = _je(e, "string");
+function xje(e) {
+ var t = Sje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _je(e, t) {
+function Sje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62044,10 +62044,10 @@ function _je(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var k$ = mje({}, {
+var w$ = yje({}, {
cacheSize: 2e3,
enableCache: !0
-}), A$ = new pje(k$.cacheSize), vje = {
+}), T$ = new vje(w$.cacheSize), Cje = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -62055,14 +62055,14 @@ var k$ = mje({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, j$ = "recharts_measurement_span";
-function yje(e, t) {
+}, E$ = "recharts_measurement_span";
+function wje(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var M$ = (e, t) => {
+var D$ = (e, t) => {
try {
- var n = document.getElementById(j$);
- n || (n = document.createElement("span"), n.setAttribute("id", j$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, vje, t), n.textContent = `${e}`;
+ var n = document.getElementById(E$);
+ n || (n = document.createElement("span"), n.setAttribute("id", E$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Cje, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -62074,31 +62074,31 @@ var M$ = (e, t) => {
height: 0
};
}
-}, N$ = function(e) {
+}, O$ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || xG.isSsr) return {
+ if (e == null || _G.isSsr) return {
width: 0,
height: 0
};
- if (!k$.enableCache) return M$(e, t);
- var n = yje(e, t), r = A$.get(n);
+ if (!w$.enableCache) return D$(e, t);
+ var n = wje(e, t), r = T$.get(n);
if (r) return r;
- var i = M$(e, t);
- return A$.set(n, i), i;
-}, P$;
-function bje(e, t, n) {
- return (t = xje(t)) in e ? Object.defineProperty(e, t, {
+ var i = D$(e, t);
+ return T$.set(n, i), i;
+}, k$;
+function Tje(e, t, n) {
+ return (t = Eje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xje(e) {
- var t = Sje(e, "string");
+function Eje(e) {
+ var t = Dje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sje(e, t) {
+function Dje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62108,7 +62108,7 @@ function Sje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, I$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Cje = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, wje = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Tje = {
+var A$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, j$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Oje = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, kje = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Aje = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -62116,7 +62116,7 @@ var F$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, I$ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, Eje = [
+}, jje = [
"cm",
"mm",
"pt",
@@ -62125,20 +62125,20 @@ var F$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, I$ = /(
"Q",
"px"
];
-function Dje(e) {
- return Eje.includes(e);
+function Mje(e) {
+ return jje.includes(e);
}
-var L$ = "NaN";
-function Oje(e, t) {
- return e * Tje[t];
+var M$ = "NaN";
+function Nje(e, t) {
+ return e * Aje[t];
}
-var R$ = class e {
+var N$ = class e {
static parse(t) {
- var [, n, r] = wje.exec(t) ?? [];
+ var [, n, r] = kje.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, Fz(e) && (this.unit = ""), t !== "" && !Cje.test(t) && (this.num = NaN, this.unit = ""), Dje(t) && (this.num = Oje(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, Pz(e) && (this.unit = ""), t !== "" && !Oje.test(t) && (this.num = NaN, this.unit = ""), Mje(t) && (this.num = Nje(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -62156,50 +62156,50 @@ var R$ = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return Fz(this.num);
+ return Pz(this.num);
}
};
-P$ = R$, bje(R$, "NaN", new P$(NaN, ""));
-function z$(e) {
- if (e == null || e.includes(L$)) return L$;
+k$ = N$, Tje(N$, "NaN", new k$(NaN, ""));
+function P$(e) {
+ if (e == null || e.includes(M$)) return M$;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = F$.exec(t) ?? [], a = R$.parse(n ?? ""), o = R$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return L$;
- t = t.replace(F$, s.toString());
+ var [, n, r, i] = A$.exec(t) ?? [], a = N$.parse(n ?? ""), o = N$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return M$;
+ t = t.replace(A$, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = I$.exec(t) ?? [], d = R$.parse(c ?? ""), f = R$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return L$;
- t = t.replace(I$, p.toString());
+ var [, c, l, u] = j$.exec(t) ?? [], d = N$.parse(c ?? ""), f = N$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return M$;
+ t = t.replace(j$, p.toString());
}
return t;
}
-var B$ = /\(([^()]*)\)/;
-function kje(e) {
- for (var t = e, n; (n = B$.exec(t)) != null;) {
+var F$ = /\(([^()]*)\)/;
+function Pje(e) {
+ for (var t = e, n; (n = F$.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(B$, z$(r));
+ t = t.replace(F$, P$(r));
}
return t;
}
-function Aje(e) {
+function Fje(e) {
var t = e.replace(/\s+/g, "");
- return t = kje(t), t = z$(t), t;
+ return t = Pje(t), t = P$(t), t;
}
-function jje(e) {
+function Ije(e) {
try {
- return Aje(e);
+ return Fje(e);
} catch {
- return L$;
+ return M$;
}
}
-function V$(e) {
- var t = jje(e.slice(5, -1));
- return t === L$ ? "" : t;
+function I$(e) {
+ var t = Ije(e.slice(5, -1));
+ return t === M$ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var Mje = [
+var Lje = [
"x",
"y",
"lineHeight",
@@ -62208,32 +62208,32 @@ var Mje = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], Nje = [
+], Rje = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function H$() {
- return H$ = Object.assign ? Object.assign.bind() : function(e) {
+function L$() {
+ return L$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, H$.apply(null, arguments);
+ }, L$.apply(null, arguments);
}
-function U$(e, t) {
+function R$(e, t) {
if (e == null) return {};
- var n, r, i = Pje(e, t);
+ var n, r, i = zje(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 Pje(e, t) {
+function zje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62242,28 +62242,28 @@ function Pje(e, t) {
}
return n;
}
-var W$ = /[ \f\n\r\t\v\u2028\u2029]+/, G$ = (e) => {
+var z$ = /[ \f\n\r\t\v\u2028\u2029]+/, B$ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return Uz(t) || (i = n ? t.toString().split("") : t.toString().split(W$)), {
+ return Hz(t) || (i = n ? t.toString().split("") : t.toString().split(z$)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: N$(e, r).width
+ width: O$(e, r).width
})),
- spaceWidth: n ? 0 : N$("\xA0", r).width
+ spaceWidth: n ? 0 : O$("\xA0", r).width
};
} catch {
return null;
}
};
-function K$(e) {
+function V$(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function Fje(e) {
- return Uz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function Bje(e) {
+ return Hz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var q$ = (e, t, n, r) => e.reduce((e, i) => {
+var H$ = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -62274,20 +62274,20 @@ var q$ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), J$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Ije = "…", Y$ = (e, t, n, r, i, a, o, s) => {
- var c = G$({
+}, []), U$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Vje = "…", W$ = (e, t, n, r, i, a, o, s) => {
+ var c = B$({
breakAll: n,
style: r,
- children: e.slice(0, t) + Ije
+ children: e.slice(0, t) + Vje
});
if (!c) return [!1, []];
- var l = q$(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || J$(l).width > Number(a), l];
-}, Lje = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = q$(t, r, n, i);
- if (!l || i || !(d.length > a || J$(d).width > Number(r))) return d;
+ var l = H$(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || U$(l).width > Number(a), l];
+}, Hje = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = H$(t, r, n, i);
+ if (!l || i || !(d.length > a || U$(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = Y$(u, g - 1, c, s, a, r, n, i), [y] = Y$(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = W$(u, g - 1, c, s, a, r, n, i), [y] = W$(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -62295,13 +62295,13 @@ var q$ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, X$ = (e) => [{
- words: Uz(e) ? [] : e.toString().split(W$),
+}, G$ = (e) => [{
+ words: Hz(e) ? [] : e.toString().split(z$),
width: void 0
-}], Rje = (e) => {
+}], Uje = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !xG.isSsr) {
- var s, c, l = G$({
+ if ((t || n) && !_G.isSsr) {
+ var s, c, l = B$({
breakAll: a,
children: r,
style: i
@@ -62309,28 +62309,28 @@ var q$ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return X$(r);
- return Lje({
+ } else return G$(r);
+ return Hje({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return X$(r);
-}, Z$ = "#808080", zje = {
+ return G$(r);
+}, K$ = "#808080", Wje = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: Z$,
+ fill: K$,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, Q$ = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var n = nB(e, zje), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = U$(n, Mje), f = (0, V.useMemo)(() => Rje({
+}, q$ = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var n = tB(e, Wje), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = R$(n, Lje), f = (0, V.useMemo)(() => Uje({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -62344,32 +62344,32 @@ var q$ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = U$(d, Nje);
- if (!Lz(r) || !Lz(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = R$(d, Rje);
+ if (!Iz(r) || !Iz(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!bU(y) || !bU(b)) return null;
+ if (!gU(y) || !gU(b)) return null;
var x;
switch (u) {
case "start":
- x = V$(`calc(${o})`);
+ x = I$(`calc(${o})`);
break;
case "middle":
- x = V$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = I$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = V$(`calc(${f.length - 1} * -${a})`);
+ default: x = I$(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ V.createElement("text", H$({}, OR(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ V.createElement("text", L$({}, DR(v), {
ref: t,
x: y,
y: b,
className: za("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? Z$ : s
+ fill: s.includes("url") ? K$ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ V.createElement("tspan", {
@@ -62379,10 +62379,10 @@ var q$ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-Q$.displayName = "Text";
+q$.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function $$(e, t) {
+function J$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62392,30 +62392,30 @@ function $$(e, t) {
}
return n;
}
-function e1(e) {
+function Y$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $$(Object(n), !0).forEach(function(t) {
- Bje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $$(Object(n)).forEach(function(t) {
+ t % 2 ? J$(Object(n), !0).forEach(function(t) {
+ Gje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bje(e, t, n) {
- return (t = Vje(t)) in e ? Object.defineProperty(e, t, {
+function Gje(e, t, n) {
+ return (t = Kje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vje(e) {
- var t = Hje(e, "string");
+function Kje(e) {
+ var t = qje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hje(e, t) {
+function qje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62425,8 +62425,8 @@ function Hje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Uje = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = oW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var Jje = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = nW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -62467,68 +62467,68 @@ var Uje = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? e1({
+ return n === "insideLeft" ? Y$({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? e1({
+ }, k) : n === "insideRight" ? Y$({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? e1({
+ }, k) : n === "insideTop" ? Y$({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? e1({
+ }, k) : n === "insideBottom" ? Y$({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? e1({
+ }, k) : n === "insideTopLeft" ? Y$({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? e1({
+ }, k) : n === "insideTopRight" ? Y$({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? e1({
+ }, k) : n === "insideBottomLeft" ? Y$({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? e1({
+ }, k) : n === "insideBottomRight" ? Y$({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || Iz(n.x)) && (Z(n.y) || Iz(n.y)) ? e1({
- x: o + zz(n.x, m),
- y: s + zz(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || Fz(n.x)) && (Z(n.y) || Fz(n.y)) ? Y$({
+ x: o + Rz(n.x, m),
+ y: s + Rz(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : e1({
+ }, k) : Y$({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, Wje = ["labelRef"], Gje = ["content"];
-function t1(e, t) {
+}, Yje = ["labelRef"], Xje = ["content"];
+function X$(e, t) {
if (e == null) return {};
- var n, r, i = Kje(e, t);
+ var n, r, i = Zje(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 Kje(e, t) {
+function Zje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62537,7 +62537,7 @@ function Kje(e, t) {
}
return n;
}
-function n1(e, t) {
+function Z$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62547,30 +62547,30 @@ function n1(e, t) {
}
return n;
}
-function r1(e) {
+function Q$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? n1(Object(n), !0).forEach(function(t) {
- qje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n1(Object(n)).forEach(function(t) {
+ t % 2 ? Z$(Object(n), !0).forEach(function(t) {
+ Qje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qje(e, t, n) {
- return (t = Jje(t)) in e ? Object.defineProperty(e, t, {
+function Qje(e, t, n) {
+ return (t = $je(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jje(e) {
- var t = Yje(e, "string");
+function $je(e) {
+ var t = eMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yje(e, t) {
+function eMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62580,16 +62580,16 @@ function Yje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function i1() {
- return i1 = Object.assign ? Object.assign.bind() : function(e) {
+function $$() {
+ return $$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, i1.apply(null, arguments);
+ }, $$.apply(null, arguments);
}
-var a1 = /*#__PURE__*/ (0, V.createContext)(null), o1 = (e) => {
+var e1 = /*#__PURE__*/ (0, V.createContext)(null), t1 = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, V.useMemo)(() => ({
x: t,
y: n,
@@ -62605,11 +62605,11 @@ var a1 = /*#__PURE__*/ (0, V.createContext)(null), o1 = (e) => {
a,
o
]);
- return /*#__PURE__*/ V.createElement(a1.Provider, { value: c }, s);
-}, s1 = () => {
- var e = (0, V.useContext)(a1), t = sW();
- return e || (t ? oW(t) : void 0);
-}, c1 = /*#__PURE__*/ (0, V.createContext)(null), Xje = (e) => {
+ return /*#__PURE__*/ V.createElement(e1.Provider, { value: c }, s);
+}, n1 = () => {
+ var e = (0, V.useContext)(e1), t = rW();
+ return e || (t ? nW(t) : void 0);
+}, r1 = /*#__PURE__*/ (0, V.createContext)(null), tMe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, V.useMemo)(() => ({
cx: t,
cy: n,
@@ -62627,15 +62627,15 @@ var a1 = /*#__PURE__*/ (0, V.createContext)(null), o1 = (e) => {
o,
s
]);
- return /*#__PURE__*/ V.createElement(c1.Provider, { value: l }, c);
-}, l1 = () => {
- var e = (0, V.useContext)(c1), t = Q(dq);
+ return /*#__PURE__*/ V.createElement(r1.Provider, { value: l }, c);
+}, i1 = () => {
+ var e = (0, V.useContext)(r1), t = Q(sq);
return e || t;
-}, Zje = (e) => {
- var { value: t, formatter: n } = e, r = Uz(e.children) ? t : e.children;
+}, nMe = (e) => {
+ var { value: t, formatter: n } = e, r = Hz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, u1 = (e) => e != null && typeof e == "function", Qje = (e, t) => Pz(t - e) * Math.min(Math.abs(t - e), 360), $je = (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 = Qje(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, a1 = (e) => e != null && typeof e == "function", rMe = (e, t) => Nz(t - e) * Math.min(Math.abs(t - e), 360), iMe = (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 = rMe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -62649,20 +62649,20 @@ var a1 = /*#__PURE__*/ (0, V.createContext)(null), o1 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = pK(s, c, m, _), b = pK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = lK(s, c, m, _), b = lK(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = Uz(e.id) ? Rz("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ V.createElement("text", i1({}, r, {
+ ${b.x},${b.y}`, S = Hz(e.id) ? Lz("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ V.createElement("text", $$({}, r, {
dominantBaseline: "central",
className: za("recharts-radial-bar-label", o)
}), /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ V.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, eMe = (e, t, n) => {
+}, aMe = (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 } = pK(r, i, o + t, l);
+ var { x: u, y: d } = lK(r, i, o + t, l);
return {
x: u,
y: d,
@@ -62688,22 +62688,22 @@ var a1 = /*#__PURE__*/ (0, V.createContext)(null), o1 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = pK(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = lK(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, d1 = (e) => e != null && "cx" in e && Z(e.cx), tMe = {
+}, o1 = (e) => e != null && "cx" in e && Z(e.cx), oMe = {
angle: 0,
offset: 5,
- zIndex: JK.label,
+ zIndex: WK.label,
position: "middle",
textBreakAll: !1
};
-function nMe(e) {
- if (!d1(e)) return e;
+function sMe(e) {
+ if (!o1(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -62714,100 +62714,100 @@ function nMe(e) {
height: i
};
}
-function f1(e) {
- var t = nB(e, tMe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = l1(), f = s1(), p = n == null ? i === "center" ? f : d ?? f : d1(n) ? n : oW(n), m, h, g = nMe(p);
- if (!p || Uz(a) && Uz(o) && !/*#__PURE__*/ (0, V.isValidElement)(s) && typeof s != "function") return null;
- var _ = r1(r1({}, t), {}, { viewBox: p });
+function s1(e) {
+ var t = tB(e, oMe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = i1(), f = n1(), p = n == null ? i === "center" ? f : d ?? f : o1(n) ? n : nW(n), m, h, g = sMe(p);
+ if (!p || Hz(a) && Hz(o) && !/*#__PURE__*/ (0, V.isValidElement)(s) && typeof s != "function") return null;
+ var _ = Q$(Q$({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, V.isValidElement)(s)) {
- var { labelRef: v } = _, y = t1(_, Wje);
+ var { labelRef: v } = _, y = X$(_, Yje);
return /*#__PURE__*/ (0, V.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = t1(_, Gje);
+ var { content: b } = _, x = X$(_, Xje);
if (m = /*#__PURE__*/ (0, V.createElement)(s, x), /*#__PURE__*/ (0, V.isValidElement)(m)) return m;
- } else m = Zje(t);
- var S = OR(t);
- if (d1(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return $je(t, i, m, S, p);
- h = eMe(p, t.offset, t.position);
+ } else m = nMe(t);
+ var S = DR(t);
+ if (o1(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return iMe(t, i, m, S, p);
+ h = aMe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = Uje({
+ var C = Jje({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: d1(r) ? void 0 : r,
+ parentViewBox: o1(r) ? void 0 : r,
clamp: !0
});
- h = r1(r1({
+ h = Q$(Q$({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ V.createElement(u$, { zIndex: t.zIndex }, /*#__PURE__*/ V.createElement(Q$, i1({
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: t.zIndex }, /*#__PURE__*/ V.createElement(q$, $$({
ref: u,
className: za("recharts-label", c)
}, S, h, {
- textAnchor: K$(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: V$(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-f1.displayName = "Label";
-var p1 = (e, t, n) => {
+s1.displayName = "Label";
+var c1 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ V.createElement(f1, i1({ key: "label-implicit" }, r)) : Lz(e) ? /*#__PURE__*/ V.createElement(f1, i1({
+ return e === !0 ? /*#__PURE__*/ V.createElement(s1, $$({ key: "label-implicit" }, r)) : Iz(e) ? /*#__PURE__*/ V.createElement(s1, $$({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, V.isValidElement)(e) ? e.type === f1 ? /*#__PURE__*/ (0, V.cloneElement)(e, r1({ key: "label-implicit" }, r)) : /*#__PURE__*/ V.createElement(f1, i1({
+ }, r)) : /*#__PURE__*/ (0, V.isValidElement)(e) ? e.type === s1 ? /*#__PURE__*/ (0, V.cloneElement)(e, Q$({ key: "label-implicit" }, r)) : /*#__PURE__*/ V.createElement(s1, $$({
key: "label-implicit",
content: e
- }, r)) : u1(e) ? /*#__PURE__*/ V.createElement(f1, i1({
+ }, r)) : a1(e) ? /*#__PURE__*/ V.createElement(s1, $$({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ V.createElement(f1, i1({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ V.createElement(s1, $$({}, e, { key: "label-implicit" }, r)) : null;
};
-function m1(e) {
+function l1(e) {
var { label: t, labelRef: n } = e;
- return p1(t, s1(), n) || null;
+ return c1(t, n1(), n) || null;
}
-function rMe(e) {
+function cMe(e) {
var { label: t } = e;
- return p1(t, l1()) || null;
+ return c1(t, i1()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var iMe = ["valueAccessor"], aMe = [
+var lMe = ["valueAccessor"], uMe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function h1() {
- return h1 = Object.assign ? Object.assign.bind() : function(e) {
+function u1() {
+ return u1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, h1.apply(null, arguments);
+ }, u1.apply(null, arguments);
}
-function g1(e, t) {
+function d1(e, t) {
if (e == null) return {};
- var n, r, i = oMe(e, t);
+ var n, r, i = dMe(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 oMe(e, t) {
+function dMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62816,21 +62816,21 @@ function oMe(e, t) {
}
return n;
}
-var sMe = (e) => {
+var fMe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (Fje(t)) return t;
-}, _1 = /*#__PURE__*/ (0, V.createContext)(void 0), v1 = _1.Provider, y1 = /*#__PURE__*/ (0, V.createContext)(void 0), cMe = y1.Provider;
-function lMe() {
- return (0, V.useContext)(_1);
-}
-function uMe() {
- return (0, V.useContext)(y1);
-}
-function b1(e) {
- var { valueAccessor: t = sMe } = e, n = g1(e, iMe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = g1(n, aMe), l = lMe(), u = uMe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ V.createElement(u$, { zIndex: s ?? JK.label }, /*#__PURE__*/ V.createElement(MR, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = Uz(r) ? t(e, i) : wU(e.payload, r), l = Uz(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ V.createElement(f1, h1({ key: `label-${i}` }, OR(e), c, l, {
+ if (Bje(t)) return t;
+}, f1 = /*#__PURE__*/ (0, V.createContext)(void 0), p1 = f1.Provider, m1 = /*#__PURE__*/ (0, V.createContext)(void 0), pMe = m1.Provider;
+function mMe() {
+ return (0, V.useContext)(f1);
+}
+function hMe() {
+ return (0, V.useContext)(m1);
+}
+function h1(e) {
+ var { valueAccessor: t = fMe } = e, n = d1(e, lMe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = d1(n, uMe), l = mMe(), u = hMe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ V.createElement(a$, { zIndex: s ?? WK.label }, /*#__PURE__*/ V.createElement(jR, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = Hz(r) ? t(e, i) : bU(e.payload, r), l = Hz(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ V.createElement(s1, u1({ key: `label-${i}` }, DR(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -62841,41 +62841,41 @@ function b1(e) {
}));
})));
}
-b1.displayName = "LabelList";
-function x1(e) {
+h1.displayName = "LabelList";
+function g1(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ V.createElement(b1, { key: "labelList-implicit" }) : /*#__PURE__*/ V.isValidElement(t) || u1(t) ? /*#__PURE__*/ V.createElement(b1, {
+ return t ? t === !0 ? /*#__PURE__*/ V.createElement(h1, { key: "labelList-implicit" }) : /*#__PURE__*/ V.isValidElement(t) || a1(t) ? /*#__PURE__*/ V.createElement(h1, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ V.createElement(b1, h1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ V.createElement(h1, u1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var dMe = [
+var gMe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], fMe;
-function S1() {
- return S1 = Object.assign ? Object.assign.bind() : function(e) {
+], _Me;
+function _1() {
+ return _1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, S1.apply(null, arguments);
+ }, _1.apply(null, arguments);
}
-function pMe(e, t) {
+function vMe(e, t) {
if (e == null) return {};
- var n, r, i = mMe(e, t);
+ var n, r, i = yMe(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 mMe(e, t) {
+function yMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62884,23 +62884,23 @@ function mMe(e, t) {
}
return n;
}
-function hMe(e, t) {
+function bMe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var C1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gMe = function() {
+var v1 = (e) => e != null && e.x === +e.x && e.y === +e.y, xMe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- C1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ v1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- C1(n) && r && r.push(n);
+ v1(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, w1 = (e, t) => {
- var n = gMe(e);
+}, y1 = (e, t) => {
+ var n = xMe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => Nz(fMe ||= hMe([
+ var r = n.map((e) => e.reduce((e, t, n) => Mz(_Me ||= bMe([
"",
"",
"",
@@ -62908,29 +62908,29 @@ var C1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gMe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, _Me = (e, t, n) => {
- var r = w1(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${w1(Array.from(t).reverse(), n).slice(1)}`;
-}, T1 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = pMe(e, dMe);
+}, SMe = (e, t, n) => {
+ var r = y1(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${y1(Array.from(t).reverse(), n).slice(1)}`;
+}, b1 = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = vMe(e, gMe);
if (!t || !t.length) return null;
var o = za("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = _Me(t, r, i);
- return /*#__PURE__*/ V.createElement("g", { className: o }, /*#__PURE__*/ V.createElement("path", S1({}, OR(a), {
+ var s = a.stroke && a.stroke !== "none", c = SMe(t, r, i);
+ return /*#__PURE__*/ V.createElement("g", { className: o }, /*#__PURE__*/ V.createElement("path", _1({}, DR(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ V.createElement("path", S1({}, OR(a), {
+ })), s ? /*#__PURE__*/ V.createElement("path", _1({}, DR(a), {
fill: "none",
- d: w1(t, i)
- })) : null, s ? /*#__PURE__*/ V.createElement("path", S1({}, OR(a), {
+ d: y1(t, i)
+ })) : null, s ? /*#__PURE__*/ V.createElement("path", _1({}, DR(a), {
fill: "none",
- d: w1(r, i)
+ d: y1(r, i)
})) : null);
}
- var l = w1(t, i);
- return /*#__PURE__*/ V.createElement("path", S1({}, OR(a), {
+ var l = y1(t, i);
+ return /*#__PURE__*/ V.createElement("path", _1({}, DR(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -62938,111 +62938,111 @@ var C1 = (e) => e != null && e.x === +e.x && e.y === +e.y, gMe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function E1() {
- return E1 = Object.assign ? Object.assign.bind() : function(e) {
+function x1() {
+ return x1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, E1.apply(null, arguments);
+ }, x1.apply(null, arguments);
}
-var D1 = (e) => {
+var S1 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = za("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ V.createElement("circle", E1({}, ER(e), $z(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ V.createElement("circle", x1({}, TR(e), Qz(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, O1 = (e) => e.graphicalItems.polarItems, k1 = $([
- O1,
- KX,
- $([fq, pq], YX)
-], ZX), A1 = $([$([k1], tZ), CK], nZ), j1 = $([
- A1,
- KX,
- k1
-], iZ);
+}, C1 = (e) => e.graphicalItems.polarItems, w1 = $([
+ C1,
+ HX,
+ $([cq, lq], GX)
+], qX), T1 = $([$([w1], ZX), yK], QX), E1 = $([
+ T1,
+ HX,
+ w1
+], eZ);
$([
- A1,
- KX,
- k1
+ T1,
+ HX,
+ w1
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: wU(e, t.dataKey ?? n.dataKey),
+ value: bU(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: wU(e, t.dataKey),
+ value: bU(e, t.dataKey),
errorDomain: []
})));
-var M1 = () => void 0, N1 = $([
- KX,
- dW,
- A1,
- j1,
- HK,
- fq,
+var D1 = () => void 0, O1 = $([
+ HX,
+ sW,
+ T1,
+ E1,
+ RK,
+ cq,
$([
- KX,
- _Z,
- vZ,
- M1,
+ HX,
+ fZ,
+ pZ,
+ D1,
$([
- A1,
- KX,
- k1,
- yZ,
- fq
- ], xZ),
- M1,
- dW,
- fq
- ], kZ)
-], AZ), P1 = $([
- N1,
- qX,
- MZ
-], NZ), vMe = $([MZ, $([
- KX,
- N1,
- P1,
- fq
-], FZ)], Sq), F1 = (e, t, n) => {
+ T1,
+ HX,
+ w1,
+ mZ,
+ cq
+ ], gZ),
+ D1,
+ sW,
+ cq
+ ], wZ)
+], TZ), k1 = $([
+ O1,
+ UX,
+ DZ
+], OZ), CMe = $([DZ, $([
+ HX,
+ O1,
+ k1,
+ cq
+], AZ)], vq), A1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return rq(e, n);
- case "radiusAxis": return iq(e, n);
+ case "angleAxis": return $K(e, n);
+ case "radiusAxis": return eq(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, I1 = (e, t, n) => {
+}, j1 = (e, t, n) => {
switch (t) {
- case "angleAxis": return QTe(e, n);
- case "radiusAxis": return $Te(e, n);
+ case "angleAxis": return nEe(e, n);
+ case "radiusAxis": return rEe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, L1 = $([$([
- F1,
- MZ,
- vMe,
- I1
-], NX)], xq), R1 = $([
- dW,
+}, M1 = $([$([
+ A1,
+ DZ,
+ CMe,
+ j1
+], kX)], _q), N1 = $([
+ sW,
+ E1,
+ UX,
+ cq
+], FZ), P1 = $([
+ sW,
+ A1,
+ DZ,
+ M1,
+ k1,
j1,
- qX,
- fq
-], BZ), z1 = $([
- dW,
- F1,
- MZ,
- L1,
- P1,
- I1,
- ZZ,
- R1,
- fq
-], $Z), yMe = $([z1], (e) => {
+ KZ,
+ N1,
+ cq
+], JZ), wMe = $([P1], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -63050,19 +63050,19 @@ var M1 = () => void 0, N1 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), bMe = $([
- dW,
- F1,
- L1,
- I1,
- ZZ,
- R1,
- fq
-], tQ), xMe = $([(e, t) => z1(e, "angleAxis", t, !1)], (e) => {
+}), TMe = $([
+ sW,
+ A1,
+ M1,
+ j1,
+ KZ,
+ N1,
+ cq
+], XZ), EMe = $([(e, t) => P1(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), SMe = $([(e, t) => z1(e, "radiusAxis", t, !1)], (e) => {
+}), DMe = $([(e, t) => P1(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), CMe = [
+}), OMe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -63075,16 +63075,16 @@ var M1 = () => void 0, N1 = $([
"polarRadius",
"zIndex"
];
-function wMe(e, t) {
+function kMe(e, t) {
if (e == null) return {};
- var n, r, i = TMe(e, t);
+ var n, r, i = AMe(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 TMe(e, t) {
+function AMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63093,16 +63093,16 @@ function TMe(e, t) {
}
return n;
}
-function B1() {
- return B1 = Object.assign ? Object.assign.bind() : function(e) {
+function F1() {
+ return F1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, B1.apply(null, arguments);
+ }, F1.apply(null, arguments);
}
-function V1(e, t) {
+function I1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63112,30 +63112,30 @@ function V1(e, t) {
}
return n;
}
-function H1(e) {
+function L1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? V1(Object(n), !0).forEach(function(t) {
- EMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V1(Object(n)).forEach(function(t) {
+ t % 2 ? I1(Object(n), !0).forEach(function(t) {
+ jMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EMe(e, t, n) {
- return (t = DMe(t)) in e ? Object.defineProperty(e, t, {
+function jMe(e, t, n) {
+ return (t = MMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DMe(e) {
- var t = OMe(e, "string");
+function MMe(e) {
+ var t = NMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OMe(e, t) {
+function NMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63145,69 +63145,69 @@ function OMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kMe = (e, t, n, r) => {
+var PMe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = pK(t, n, e, r);
+ var o = lK(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, AMe = (e) => {
+}, FMe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = H1({ stroke: "#ccc" }, ER(e));
+ var s = L1({ stroke: "#ccc" }, TR(e));
return /*#__PURE__*/ V.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = pK(t, n, r, e), o = pK(t, n, i, e);
- return /*#__PURE__*/ V.createElement("line", B1({ key: `line-${e}` }, s, {
+ var a = lK(t, n, r, e), o = lK(t, n, i, e);
+ return /*#__PURE__*/ V.createElement("line", F1({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, U1 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = H1({
+}, R1 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = L1({
stroke: "#ccc",
fill: "none"
- }, ER(e));
- return /*#__PURE__*/ V.createElement("circle", B1({}, i, {
+ }, TR(e));
+ return /*#__PURE__*/ V.createElement("circle", F1({}, i, {
className: za("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, W1 = (e) => {
- var { radius: t } = e, n = H1({
+}, z1 = (e) => {
+ var { radius: t } = e, n = L1({
stroke: "#ccc",
fill: "none"
- }, ER(e));
- return /*#__PURE__*/ V.createElement("path", B1({}, n, {
+ }, TR(e));
+ return /*#__PURE__*/ V.createElement("path", F1({}, n, {
className: za("recharts-polar-grid-concentric-polygon", e.className),
- d: kMe(t, e.cx, e.cy, e.polarAngles)
+ d: PMe(t, e.cx, e.cy, e.polarAngles)
}));
-}, jMe = (e) => {
+}, IMe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ V.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ V.createElement(U1, B1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ V.createElement(W1, B1({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ V.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ V.createElement(R1, F1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ V.createElement(z1, F1({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ V.createElement(U1, B1({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ V.createElement(R1, F1({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ V.createElement(W1, B1({ key: i }, e, {
+ })) : /*#__PURE__*/ V.createElement(z1, F1({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, MMe = {
+}, LMe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: JK.grid
-}, G1 = (e) => {
- var t = nB(e, MMe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wMe(t, CMe), m = Q(dq), h = Q((e) => xMe(e, i)), g = Q((e) => SMe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ zIndex: WK.grid
+}, B1 = (e) => {
+ var t = tB(e, LMe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = kMe(t, OMe), m = Q(sq), h = Q((e) => EMe(e, i)), g = Q((e) => DMe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = H1({
+ var y = L1({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -63216,13 +63216,13 @@ var kMe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ V.createElement(u$, { zIndex: y.zIndex }, /*#__PURE__*/ V.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ V.createElement(jMe, B1({
+ return b <= 0 ? null : /*#__PURE__*/ V.createElement(a$, { zIndex: y.zIndex }, /*#__PURE__*/ V.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ V.createElement(IMe, F1({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ V.createElement(AMe, B1({
+ })), /*#__PURE__*/ V.createElement(FMe, F1({
gridType: n,
radialLines: r
}, y, {
@@ -63230,19 +63230,19 @@ var kMe = (e, t, n, r) => {
polarRadius: v
}))));
};
-G1.displayName = "PolarGrid";
+B1.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function K1(e) {
+function V1(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function NMe(e, t = sB) {
+function RMe(e, t = oB) {
if (e == null) return;
- let n = K1(e);
+ let n = V1(e);
if (n.length === 0) return;
- let r = TB(t), i, a;
+ let r = wB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@ -63251,11 +63251,11 @@ function NMe(e, t = sB) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function PMe(e, t = sB) {
+function zMe(e, t = oB) {
if (e == null) return;
- let n = K1(e);
+ let n = V1(e);
if (n.length === 0) return;
- let r = TB(t), i, a;
+ let r = wB(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@ -63264,7 +63264,7 @@ function PMe(e, t = sB) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var q1 = GH({
+var H1 = VH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -63272,47 +63272,47 @@ var q1 = GH({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = nG(t.payload);
+ e.radiusAxis[t.payload.id] = QW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = nG(t.payload);
+ e.angleAxis[t.payload.id] = QW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: FMe, removeRadiusAxis: IMe, addAngleAxis: LMe, removeAngleAxis: RMe } = q1.actions, zMe = q1.reducer;
+}), { addRadiusAxis: BMe, removeRadiusAxis: VMe, addAngleAxis: HMe, removeAngleAxis: UMe } = H1.actions, WMe = H1.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function J1(e) {
+function U1(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var BMe = ["type"], VMe = [
+var GMe = ["type"], KMe = [
"cx",
"cy",
"angle",
"axisLine"
-], HMe = [
+], qMe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function Y1() {
- return Y1 = Object.assign ? Object.assign.bind() : function(e) {
+function W1() {
+ return W1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Y1.apply(null, arguments);
+ }, W1.apply(null, arguments);
}
-function X1(e, t) {
+function G1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63322,30 +63322,30 @@ function X1(e, t) {
}
return n;
}
-function Z1(e) {
+function K1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X1(Object(n), !0).forEach(function(t) {
- UMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X1(Object(n)).forEach(function(t) {
+ t % 2 ? G1(Object(n), !0).forEach(function(t) {
+ JMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UMe(e, t, n) {
- return (t = WMe(t)) in e ? Object.defineProperty(e, t, {
+function JMe(e, t, n) {
+ return (t = YMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WMe(e) {
- var t = GMe(e, "string");
+function YMe(e) {
+ var t = XMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GMe(e, t) {
+function XMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63355,16 +63355,16 @@ function GMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Q1(e, t) {
+function q1(e, t) {
if (e == null) return {};
- var n, r, i = KMe(e, t);
+ var n, r, i = ZMe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KMe(e, t) {
+function ZMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63373,20 +63373,20 @@ function KMe(e, t) {
}
return n;
}
-var qMe = "radiusAxis";
-function JMe(e) {
- var t = NB(), n = hW(), r = (0, V.useMemo)(() => {
- var { type: t } = e, r = Q1(e, BMe), i = QK(n, "radiusAxis", t);
- if (i != null) return Z1(Z1({}, r), {}, { type: i });
+var QMe = "radiusAxis";
+function $Me(e) {
+ var t = kB(), n = dW(), r = (0, V.useMemo)(() => {
+ var { type: t } = e, r = q1(e, GMe), i = JK(n, "radiusAxis", t);
+ if (i != null) return K1(K1({}, r), {}, { type: i });
}, [e, n]);
- return (0, V.useEffect)(() => r == null ? Kz : (t(FMe(r)), () => {
- t(IMe(r));
+ return (0, V.useEffect)(() => r == null ? Gz : (t(BMe(r)), () => {
+ t(VMe(r));
}), [t, r]), null;
}
-var YMe = (e, t, n, r) => {
+var eNe = (e, t, n, r) => {
var { coordinate: i } = e;
- return pK(n, r, i, t);
-}, XMe = (e) => {
+ return lK(n, r, i, t);
+}, tNe = (e) => {
var t;
switch (e) {
case "left":
@@ -63398,49 +63398,49 @@ var YMe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, ZMe = (e, t, n, r) => {
- var i = NMe(r, (e) => e.coordinate || 0);
+}, nNe = (e, t, n, r) => {
+ var i = RMe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: PMe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: zMe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, QMe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = Q1(e, VMe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = pK(n, r, s[0], i), l = pK(n, r, s[1], i), u = Z1(Z1(Z1({}, ER(o)), {}, { fill: "none" }, ER(a)), {}, {
+}, rNe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = q1(e, KMe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = lK(n, r, s[0], i), l = lK(n, r, s[1], i), u = K1(K1(K1({}, TR(o)), {}, { fill: "none" }, TR(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ V.createElement("line", Y1({ className: "recharts-polar-radius-axis-line" }, u));
-}, $Me = (e, t, n) => /*#__PURE__*/ V.isValidElement(e) ? /*#__PURE__*/ V.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ V.createElement(Q$, Y1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), eNe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = Q1(e, HMe), s = XMe(e.orientation), c = ER(o), l = DR(a), u = t.map((t, o) => {
- var u = YMe(t, e.angle, e.cx, e.cy), d = Z1(Z1(Z1(Z1({
+ return /*#__PURE__*/ V.createElement("line", W1({ className: "recharts-polar-radius-axis-line" }, u));
+}, iNe = (e, t, n) => /*#__PURE__*/ V.isValidElement(e) ? /*#__PURE__*/ V.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ V.createElement(q$, W1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), aNe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = q1(e, qMe), s = tNe(e.orientation), c = TR(o), l = ER(a), u = t.map((t, o) => {
+ var u = eNe(t, e.angle, e.cx, e.cy), d = K1(K1(K1(K1({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ V.createElement(MR, Y1({
- className: za("recharts-polar-radius-axis-tick", J1(a)),
+ return /*#__PURE__*/ V.createElement(jR, W1({
+ className: za("recharts-polar-radius-axis-tick", U1(a)),
key: `tick-${t.coordinate}`
- }, eB(e, t, o)), $Me(a, d, r ? r(t.value, o) : t.value));
+ }, $z(e, t, o)), iNe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ V.createElement(MR, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, tNe = (e) => {
- var { radiusAxisId: t } = e, n = Q(dq), r = Q((e) => L1(e, "radiusAxis", t)), i = Q((e) => z1(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ V.createElement(jR, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, oNe = (e) => {
+ var { radiusAxisId: t } = e, n = Q(sq), r = Q((e) => M1(e, "radiusAxis", t)), i = Q((e) => P1(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = Z1(Z1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ V.createElement(u$, { zIndex: a.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: za("recharts-polar-radius-axis", qMe, a.className) }, s && QMe(a, i), o && eNe(a, i), /*#__PURE__*/ V.createElement(Xje, ZMe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ V.createElement(rMe, { label: a.label }), a.children)));
+ var a = K1(K1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: a.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: za("recharts-polar-radius-axis", QMe, a.className) }, s && rNe(a, i), o && aNe(a, i), /*#__PURE__*/ V.createElement(tMe, nNe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ V.createElement(cMe, { label: a.label }), a.children)));
};
-function $1(e) {
- var t = nB(e, XK);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(JMe, {
+function J1(e) {
+ var t = tB(e, KK);
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement($Me, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -63457,22 +63457,22 @@ function $1(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ V.createElement(tNe, t));
+ }), /*#__PURE__*/ V.createElement(oNe, t));
}
-$1.displayName = "PolarRadiusAxis";
+J1.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var nNe = ["children", "type"], rNe = ["ref"];
-function e0() {
- return e0 = Object.assign ? Object.assign.bind() : function(e) {
+var sNe = ["children", "type"], cNe = ["ref"];
+function Y1() {
+ return Y1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, e0.apply(null, arguments);
+ }, Y1.apply(null, arguments);
}
-function t0(e, t) {
+function X1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63482,30 +63482,30 @@ function t0(e, t) {
}
return n;
}
-function n0(e) {
+function Z1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? t0(Object(n), !0).forEach(function(t) {
- iNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t0(Object(n)).forEach(function(t) {
+ t % 2 ? X1(Object(n), !0).forEach(function(t) {
+ lNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iNe(e, t, n) {
- return (t = aNe(t)) in e ? Object.defineProperty(e, t, {
+function lNe(e, t, n) {
+ return (t = uNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aNe(e) {
- var t = oNe(e, "string");
+function uNe(e) {
+ var t = dNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oNe(e, t) {
+function dNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63515,16 +63515,16 @@ function oNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function r0(e, t) {
+function Q1(e, t) {
if (e == null) return {};
- var n, r, i = sNe(e, t);
+ var n, r, i = fNe(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 sNe(e, t) {
+function fNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63533,47 +63533,47 @@ function sNe(e, t) {
}
return n;
}
-var i0 = 1e-5, cNe = Math.cos(fK(45)), lNe = "angleAxis";
-function uNe(e) {
- var t = NB(), n = hW(), r = (0, V.useMemo)(() => {
- var { children: t, type: r } = e, i = r0(e, nNe), a = QK(n, "angleAxis", r);
- if (a != null) return n0(n0({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => rq(e, r?.id));
- return (0, V.useEffect)(() => r == null ? Kz : (t(LMe(r)), () => {
- t(RMe(r));
+var $1 = 1e-5, pNe = Math.cos(cK(45)), mNe = "angleAxis";
+function hNe(e) {
+ var t = kB(), n = dW(), r = (0, V.useMemo)(() => {
+ var { children: t, type: r } = e, i = Q1(e, sNe), a = JK(n, "angleAxis", r);
+ if (a != null) return Z1(Z1({}, i), {}, { type: a });
+ }, [e, n]), i = r === Q((e) => $K(e, r?.id));
+ return (0, V.useEffect)(() => r == null ? Gz : (t(HMe(r)), () => {
+ t(UMe(r));
}), [t, r]), i ? e.children : null;
}
-var dNe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = pK(n, r, i, e.coordinate), l = pK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var gNe = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = lK(n, r, i, e.coordinate), l = lK(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, fNe = (e, t) => {
- var n = Math.cos(fK(-e.coordinate));
- return n > i0 ? t === "outer" ? "start" : "end" : n < -i0 ? t === "outer" ? "end" : "start" : "middle";
-}, pNe = (e) => {
- var t = Math.cos(fK(-e.coordinate)), n = Math.sin(fK(-e.coordinate));
- return Math.abs(t) <= cNe ? n > 0 ? "start" : "end" : "middle";
-}, mNe = (e) => {
+}, _Ne = (e, t) => {
+ var n = Math.cos(cK(-e.coordinate));
+ return n > $1 ? t === "outer" ? "start" : "end" : n < -$1 ? t === "outer" ? "end" : "start" : "middle";
+}, vNe = (e) => {
+ var t = Math.cos(cK(-e.coordinate)), n = Math.sin(cK(-e.coordinate));
+ return Math.abs(t) <= pNe ? n > 0 ? "start" : "end" : "middle";
+}, yNe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = n0(n0({}, ER(e)), {}, { fill: "none" }, ER(a));
- if (i === "circle") return /*#__PURE__*/ V.createElement(D1, e0({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = Z1(Z1({}, TR(e)), {}, { fill: "none" }, TR(a));
+ if (i === "circle") return /*#__PURE__*/ V.createElement(S1, Y1({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => pK(t, n, r, e.coordinate));
- return /*#__PURE__*/ V.createElement(T1, e0({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, hNe = (e) => {
+ var c = o.map((e) => lK(t, n, r, e.coordinate));
+ return /*#__PURE__*/ V.createElement(b1, Y1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, bNe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ V.isValidElement(t) ? /*#__PURE__*/ V.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ V.createElement(Q$, e0({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, gNe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = ER(e), { ref: s } = o, c = r0(o, rNe), l = DR(t), u = n0(n0({}, c), {}, { fill: "none" }, ER(n)), d = a.map((a, o) => {
- var s = dNe(a, e), d = fNe(a, e.orientation), f = pNe(a), p = n0(n0(n0({}, c), {}, {
+ return t ? /*#__PURE__*/ V.isValidElement(t) ? /*#__PURE__*/ V.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ V.createElement(q$, Y1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, xNe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = TR(e), { ref: s } = o, c = Q1(o, cNe), l = ER(t), u = Z1(Z1({}, c), {}, { fill: "none" }, TR(n)), d = a.map((a, o) => {
+ var s = gNe(a, e), d = _Ne(a, e.orientation), f = vNe(a), p = Z1(Z1(Z1({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -63584,28 +63584,28 @@ var dNe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ V.createElement(MR, e0({
- className: za("recharts-polar-angle-axis-tick", J1(t)),
+ return /*#__PURE__*/ V.createElement(jR, Y1({
+ className: za("recharts-polar-angle-axis-tick", U1(t)),
key: `tick-${a.coordinate}`
- }, eB(e, a, o)), n && /*#__PURE__*/ V.createElement("line", e0({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ V.createElement(hNe, {
+ }, $z(e, a, o)), n && /*#__PURE__*/ V.createElement("line", Y1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ V.createElement(bNe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ V.createElement(MR, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, _Ne = (e) => {
- var { angleAxisId: t } = e, n = Q(dq), r = Q((e) => L1(e, "angleAxis", t)), i = qU(), a = Q((e) => yMe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ V.createElement(jR, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, SNe = (e) => {
+ var { angleAxisId: t } = e, n = Q(sq), r = Q((e) => M1(e, "angleAxis", t)), i = UU(), a = Q((e) => wMe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = n0(n0(n0({}, e), {}, { scale: r }, n), {}, {
+ var o = Z1(Z1(Z1({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ V.createElement(u$, { zIndex: o.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: za("recharts-polar-angle-axis", lNe, o.className) }, /*#__PURE__*/ V.createElement(mNe, o), /*#__PURE__*/ V.createElement(gNe, o)));
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: o.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: za("recharts-polar-angle-axis", mNe, o.className) }, /*#__PURE__*/ V.createElement(yNe, o), /*#__PURE__*/ V.createElement(xNe, o)));
};
-function a0(e) {
- var t = nB(e, YK);
- return /*#__PURE__*/ V.createElement(uNe, {
+function e0(e) {
+ var t = tB(e, GK);
+ return /*#__PURE__*/ V.createElement(hNe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -63622,12 +63622,12 @@ function a0(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ V.createElement(_Ne, t));
+ }, /*#__PURE__*/ V.createElement(SNe, t));
}
-a0.displayName = "PolarAngleAxis";
+e0.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var vNe = /* @__PURE__ */ gt(((e) => {
+var CNe = /* @__PURE__ */ gt(((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) {
@@ -63656,26 +63656,26 @@ var vNe = /* @__PURE__ */ gt(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), yNe = (/* @__PURE__ */ gt(((e, t) => {
- t.exports = vNe();
-})))(), o0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", s0 = null, c0 = null, l0 = (e) => {
- if (e === s0 && Array.isArray(c0)) return c0;
+})), wNe = (/* @__PURE__ */ gt(((e, t) => {
+ t.exports = CNe();
+})))(), t0 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", n0 = null, r0 = null, i0 = (e) => {
+ if (e === n0 && Array.isArray(r0)) return r0;
var t = [];
return V.Children.forEach(e, (e) => {
- Uz(e) || ((0, yNe.isFragment)(e) ? t = t.concat(l0(e.props.children)) : t.push(e));
- }), c0 = t, s0 = e, t;
+ Hz(e) || ((0, wNe.isFragment)(e) ? t = t.concat(i0(e.props.children)) : t.push(e));
+ }), r0 = t, n0 = e, t;
};
-function u0(e, t) {
+function a0(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => o0(e)) : [o0(t)], l0(e).forEach((e) => {
- var t = jz(e, "type.displayName") || jz(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => t0(e)) : [t0(t)], i0(e).forEach((e) => {
+ var t = Az(e, "type.displayName") || Az(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var d0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var o0 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function bNe(e) {
+function TNe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -63688,8 +63688,8 @@ function bNe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var xNe, SNe, CNe, wNe, TNe;
-function f0(e, t) {
+var ENe, DNe, ONe, kNe, ANe;
+function s0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63699,30 +63699,30 @@ function f0(e, t) {
}
return n;
}
-function p0(e) {
+function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? f0(Object(n), !0).forEach(function(t) {
- ENe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f0(Object(n)).forEach(function(t) {
+ t % 2 ? s0(Object(n), !0).forEach(function(t) {
+ jNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ENe(e, t, n) {
- return (t = DNe(t)) in e ? Object.defineProperty(e, t, {
+function jNe(e, t, n) {
+ return (t = MNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DNe(e) {
- var t = ONe(e, "string");
+function MNe(e) {
+ var t = NNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ONe(e, t) {
+function NNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63732,42 +63732,42 @@ function ONe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function m0() {
- return m0 = Object.assign ? Object.assign.bind() : function(e) {
+function l0() {
+ return l0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m0.apply(null, arguments);
+ }, l0.apply(null, arguments);
}
-function h0(e, t) {
+function u0(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var g0 = (e, t, n, r, i) => {
- var a = n - r, o = Nz(xNe ||= h0([
+var d0 = (e, t, n, r, i) => {
+ var a = n - r, o = Mz(ENe ||= u0([
"M ",
",",
""
]), e, t);
- return o += Nz(SNe ||= h0([
+ return o += Mz(DNe ||= u0([
"L ",
",",
""
- ]), e + n, t), o += Nz(CNe ||= h0([
+ ]), e + n, t), o += Mz(ONe ||= u0([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += Nz(wNe ||= h0([
+ ]), e + n - a / 2, t + i), o += Mz(kNe ||= u0([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += Nz(TNe ||= h0([
+ ]), e + n - a / 2 - r, t + i), o += Mz(ANe ||= u0([
"L ",
",",
" Z"
]), e, t), o;
-}, kNe = {
+}, PNe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -63777,8 +63777,8 @@ var g0 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, ANe = (e) => {
- var t = nB(e, kNe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, V.useRef)(null), [p, m] = (0, V.useState)(-1), h = (0, V.useRef)(i), g = (0, V.useRef)(a), _ = (0, V.useRef)(o), v = (0, V.useRef)(n), y = (0, V.useRef)(r), b = eK(e, "trapezoid-");
+}, FNe = (e) => {
+ var t = tB(e, PNe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, V.useRef)(null), [p, m] = (0, V.useState)(-1), h = (0, V.useRef)(i), g = (0, V.useRef)(a), _ = (0, V.useRef)(o), v = (0, V.useRef)(n), y = (0, V.useRef)(r), b = XG(e, "trapezoid-");
if ((0, V.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -63786,12 +63786,12 @@ var g0 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = za("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ V.createElement("g", null, /*#__PURE__*/ V.createElement("path", m0({}, OR(t), {
+ if (!d) return /*#__PURE__*/ V.createElement("g", null, /*#__PURE__*/ V.createElement("path", l0({}, DR(t), {
className: x,
- d: g0(n, r, i, a, o)
+ d: d0(n, r, i, a, o)
})));
- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = BG(["strokeDasharray"], l, c);
- return /*#__PURE__*/ V.createElement($G, {
+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = IG(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ V.createElement(YG, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -63800,35 +63800,35 @@ var g0 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = Vz(S, i, e), c = Vz(C, a, e), l = Vz(w, o, e), u = Vz(T, n, e), d = Vz(E, r, e);
+ var s = Bz(S, i, e), c = Bz(C, a, e), l = Bz(w, o, e), u = Bz(T, n, e), d = Bz(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ V.createElement("path", m0({}, OR(t), {
+ return /*#__PURE__*/ V.createElement("path", l0({}, DR(t), {
className: x,
- d: g0(u, d, s, c, l),
+ d: d0(u, d, s, c, l),
ref: f,
- style: p0(p0({}, p), t.style)
+ style: c0(c0({}, p), t.style)
}));
});
-}, jNe = [
+}, INe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function MNe(e, t) {
+function LNe(e, t) {
if (e == null) return {};
- var n, r, i = NNe(e, t);
+ var n, r, i = RNe(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 NNe(e, t) {
+function RNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63837,7 +63837,7 @@ function NNe(e, t) {
}
return n;
}
-function _0(e, t) {
+function f0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63847,30 +63847,30 @@ function _0(e, t) {
}
return n;
}
-function v0(e) {
+function p0(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) {
- PNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _0(Object(n)).forEach(function(t) {
+ t % 2 ? f0(Object(n), !0).forEach(function(t) {
+ zNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function PNe(e, t, n) {
- return (t = FNe(t)) in e ? Object.defineProperty(e, t, {
+function zNe(e, t, n) {
+ return (t = BNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function FNe(e) {
- var t = INe(e, "string");
+function BNe(e) {
+ var t = VNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function INe(e, t) {
+function VNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63880,68 +63880,68 @@ function INe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function LNe(e, t) {
- return v0(v0({}, t), e);
+function HNe(e, t) {
+ return p0(p0({}, t), e);
}
-function RNe(e, t) {
+function UNe(e, t) {
return e === "symbols";
}
-function y0(e) {
+function m0(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ V.createElement(cK, n);
- case "trapezoid": return /*#__PURE__*/ V.createElement(ANe, n);
- case "sector": return /*#__PURE__*/ V.createElement(yK, n);
+ case "rectangle": return /*#__PURE__*/ V.createElement(iK, n);
+ case "trapezoid": return /*#__PURE__*/ V.createElement(FNe, n);
+ case "sector": return /*#__PURE__*/ V.createElement(hK, n);
case "symbols":
- if (RNe(t, n)) return /*#__PURE__*/ V.createElement(Zz, n);
+ if (UNe(t, n)) return /*#__PURE__*/ V.createElement(Xz, n);
break;
- case "curve": return /*#__PURE__*/ V.createElement(FG, n);
+ case "curve": return /*#__PURE__*/ V.createElement(jG, n);
default: return null;
}
}
-function zNe(e) {
+function WNe(e) {
return /*#__PURE__*/ (0, V.isValidElement)(e) ? e.props : e;
}
-function b0(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = MNe(e, jNe), o;
- if (/*#__PURE__*/ (0, V.isValidElement)(t)) o = /*#__PURE__*/ (0, V.cloneElement)(t, v0(v0({}, a), zNe(t)));
+function h0(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = LNe(e, INe), o;
+ if (/*#__PURE__*/ (0, V.isValidElement)(t)) o = /*#__PURE__*/ (0, V.cloneElement)(t, p0(p0({}, a), WNe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (bNe(t) && typeof t != "boolean") {
- var s = LNe(t, a);
- o = /*#__PURE__*/ V.createElement(y0, {
+ else if (TNe(t) && typeof t != "boolean") {
+ var s = HNe(t, a);
+ o = /*#__PURE__*/ V.createElement(m0, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ V.createElement(y0, {
+ o = /*#__PURE__*/ V.createElement(m0, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ V.createElement(MR, { className: r }, o) : /*#__PURE__*/ V.createElement(MR, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ V.createElement(jR, { className: r }, o) : /*#__PURE__*/ V.createElement(jR, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var x0 = (e, t, n) => {
- var r = NB();
+var g0 = (e, t, n) => {
+ var r = kB();
return (i, a) => (o) => {
- e?.(i, a, o), r(dQ({
+ e?.(i, a, o), r(oQ({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, S0 = (e) => {
- var t = NB();
+}, _0 = (e) => {
+ var t = kB();
return (n, r) => (i) => {
- e?.(n, r, i), t(wke());
+ e?.(n, r, i), t(kke());
};
-}, C0 = (e, t, n) => {
- var r = NB();
+}, v0 = (e, t, n) => {
+ var r = kB();
return (i, a) => (o) => {
- e?.(i, a, o), r(Tke({
+ e?.(i, a, o), r(Ake({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -63951,10 +63951,10 @@ var x0 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function w0(e) {
- var { tooltipEntrySettings: t } = e, n = NB(), r = qU(), i = (0, V.useRef)(null);
+function y0(e) {
+ var { tooltipEntrySettings: t } = e, n = kB(), r = UU(), i = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
- r || (i.current === null ? n(bke(t)) : i.current !== t && n(xke({
+ r || (i.current === null ? n(Tke(t)) : i.current !== t && n(Eke({
prev: i.current,
next: t
})), i.current = t);
@@ -63963,15 +63963,15 @@ function w0(e) {
n,
r
]), (0, V.useLayoutEffect)(() => () => {
- i.current &&= (n(Ske(i.current)), null);
+ i.current &&= (n(Dke(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function T0(e) {
- var { legendPayload: t } = e, n = NB(), r = qU(), i = (0, V.useRef)(null);
+function b0(e) {
+ var { legendPayload: t } = e, n = kB(), r = UU(), i = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
- r || (i.current === null ? n(aG(t)) : i.current !== t && n(oG({
+ r || (i.current === null ? n(tG(t)) : i.current !== t && n(nG({
prev: i.current,
next: t
})), i.current = t);
@@ -63980,13 +63980,13 @@ function T0(e) {
r,
t
]), (0, V.useLayoutEffect)(() => () => {
- i.current &&= (n(sG(i.current)), null);
+ i.current &&= (n(rG(i.current)), null);
}, [n]), null;
}
-function E0(e) {
- var { legendPayload: t } = e, n = NB(), r = Q(dW), i = (0, V.useRef)(null);
+function x0(e) {
+ var { legendPayload: t } = e, n = kB(), r = Q(sW), i = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(aG(t)) : i.current !== t && n(oG({
+ (r === "centric" || r === "radial") && (i.current === null ? n(tG(t)) : i.current !== t && n(nG({
prev: i.current,
next: t
})), i.current = t);
@@ -63995,27 +63995,27 @@ function E0(e) {
r,
t
]), (0, V.useLayoutEffect)(() => () => {
- i.current &&= (n(sG(i.current)), null);
+ i.current &&= (n(rG(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var BNe = V.useId ?? (() => {
- var [e] = V.useState(() => Rz("uid-"));
+var GNe = V.useId ?? (() => {
+ var [e] = V.useState(() => Lz("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function VNe(e, t) {
- var n = BNe();
+function KNe(e, t) {
+ var n = GNe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var HNe = /*#__PURE__*/ (0, V.createContext)(void 0), D0 = (e) => {
- var { id: t, type: n, children: r } = e, i = VNe(`recharts-${n}`, t);
- return /*#__PURE__*/ V.createElement(HNe.Provider, { value: i }, r(i));
-}, O0 = GH({
+var qNe = /*#__PURE__*/ (0, V.createContext)(void 0), S0 = (e) => {
+ var { id: t, type: n, children: r } = e, i = KNe(`recharts-${n}`, t);
+ return /*#__PURE__*/ V.createElement(qNe.Provider, { value: i }, r(i));
+}, C0 = VH({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -64024,80 +64024,80 @@ var HNe = /*#__PURE__*/ (0, V.createContext)(void 0), D0 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(nG(t.payload));
+ e.cartesianItems.push(QW(t.payload));
},
- prepare: VH()
+ prepare: LH()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MH(e).cartesianItems.indexOf(nG(n));
- i > -1 && (e.cartesianItems[i] = nG(r));
+ var { prev: n, next: r } = t.payload, i = OH(e).cartesianItems.indexOf(QW(n));
+ i > -1 && (e.cartesianItems[i] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = MH(e).cartesianItems.indexOf(nG(t.payload));
+ var n = OH(e).cartesianItems.indexOf(QW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: VH()
+ prepare: LH()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(nG(t.payload));
+ e.polarItems.push(QW(t.payload));
},
- prepare: VH()
+ prepare: LH()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = MH(e).polarItems.indexOf(nG(t.payload));
+ var n = OH(e).polarItems.indexOf(QW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: VH()
+ prepare: LH()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MH(e).polarItems.indexOf(nG(n));
- i > -1 && (e.polarItems[i] = nG(r));
+ var { prev: n, next: r } = t.payload, i = OH(e).polarItems.indexOf(QW(n));
+ i > -1 && (e.polarItems[i] = QW(r));
},
- prepare: VH()
+ prepare: LH()
}
}
-}), { addCartesianGraphicalItem: UNe, replaceCartesianGraphicalItem: WNe, removeCartesianGraphicalItem: GNe, addPolarGraphicalItem: KNe, removePolarGraphicalItem: qNe, replacePolarGraphicalItem: JNe } = O0.actions, YNe = O0.reducer, k0 = /*#__PURE__*/ (0, V.memo)((e) => {
- var t = NB(), n = (0, V.useRef)(null);
+}), { addCartesianGraphicalItem: JNe, replaceCartesianGraphicalItem: YNe, removeCartesianGraphicalItem: XNe, addPolarGraphicalItem: ZNe, removePolarGraphicalItem: QNe, replacePolarGraphicalItem: $Ne } = C0.actions, ePe = C0.reducer, w0 = /*#__PURE__*/ (0, V.memo)((e) => {
+ var t = kB(), n = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
- n.current === null ? t(UNe(e)) : n.current !== e && t(WNe({
+ n.current === null ? t(JNe(e)) : n.current !== e && t(YNe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, V.useLayoutEffect)(() => () => {
- n.current &&= (t(GNe(n.current)), null);
+ n.current &&= (t(XNe(n.current)), null);
}, [t]), null;
-}), A0 = /*#__PURE__*/ (0, V.memo)((e) => {
- var t = NB(), n = (0, V.useRef)(null);
+}), T0 = /*#__PURE__*/ (0, V.memo)((e) => {
+ var t = kB(), n = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => {
- n.current === null ? t(KNe(e)) : n.current !== e && t(JNe({
+ n.current === null ? t(ZNe(e)) : n.current !== e && t($Ne({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, V.useLayoutEffect)(() => () => {
- n.current &&= (t(qNe(n.current)), null);
+ n.current &&= (t(QNe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function XNe(e) {
+function tPe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function ZNe(e) {
- if (!(!cB(e) || e.length === 0)) return XNe(K1(e));
+function nPe(e) {
+ if (!(!sB(e) || e.length === 0)) return tPe(V1(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var QNe = ["points"];
-function j0(e, t) {
+var rPe = ["points"];
+function E0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64107,30 +64107,30 @@ function j0(e, t) {
}
return n;
}
-function M0(e) {
+function D0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? j0(Object(n), !0).forEach(function(t) {
- $Ne(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j0(Object(n)).forEach(function(t) {
+ t % 2 ? E0(Object(n), !0).forEach(function(t) {
+ iPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ne(e, t, n) {
- return (t = ePe(t)) in e ? Object.defineProperty(e, t, {
+function iPe(e, t, n) {
+ return (t = aPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ePe(e) {
- var t = tPe(e, "string");
+function aPe(e) {
+ var t = oPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tPe(e, t) {
+function oPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64140,25 +64140,25 @@ function tPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function N0() {
- return N0 = Object.assign ? Object.assign.bind() : function(e) {
+function O0() {
+ return O0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, N0.apply(null, arguments);
+ }, O0.apply(null, arguments);
}
-function nPe(e, t) {
+function sPe(e, t) {
if (e == null) return {};
- var n, r, i = rPe(e, t);
+ var n, r, i = cPe(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 rPe(e, t) {
+function cPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64167,21 +64167,21 @@ function rPe(e, t) {
}
return n;
}
-function iPe(e) {
+function lPe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, V.isValidElement)(t)) return /*#__PURE__*/ (0, V.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = za(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = nPe(a, QNe);
- return /*#__PURE__*/ V.createElement(D1, N0({}, s, { className: i }));
+ var i = za(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = sPe(a, rPe);
+ return /*#__PURE__*/ V.createElement(S1, O0({}, s, { className: i }));
}
-function aPe(e, t) {
+function uPe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function P0(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = JK.scatter } = e;
- if (!aPe(t, n)) return null;
- var u = d0(n), d = Uye(n), f = t.map((e, r) => {
- var s = M0(M0(M0({ r: 3 }, o), d), {}, {
+function k0(e) {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = WK.scatter } = e;
+ if (!uPe(t, n)) return null;
+ var u = o0(n), d = Wye(n), f = t.map((e, r) => {
+ var s = D0(D0(D0({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -64190,18 +64190,18 @@ function P0(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ V.createElement(iPe, {
+ return /*#__PURE__*/ V.createElement(lPe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ V.createElement(u$, { zIndex: l }, /*#__PURE__*/ V.createElement(MR, N0({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ V.createElement(a$, { zIndex: l }, /*#__PURE__*/ V.createElement(jR, O0({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function F0(e, t) {
+function A0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64211,30 +64211,30 @@ function F0(e, t) {
}
return n;
}
-function I0(e) {
+function j0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? F0(Object(n), !0).forEach(function(t) {
- oPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F0(Object(n)).forEach(function(t) {
+ t % 2 ? A0(Object(n), !0).forEach(function(t) {
+ dPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oPe(e, t, n) {
- return (t = sPe(t)) in e ? Object.defineProperty(e, t, {
+function dPe(e, t, n) {
+ return (t = fPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sPe(e) {
- var t = cPe(e, "string");
+function fPe(e) {
+ var t = pPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cPe(e, t) {
+function pPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64244,7 +64244,7 @@ function cPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var L0 = GH({
+var M0 = VH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -64254,60 +64254,60 @@ var L0 = GH({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = nG(t.payload);
+ e.xAxis[t.payload.id] = QW(t.payload);
},
- prepare: VH()
+ prepare: LH()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = nG(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: VH()
+ prepare: LH()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = nG(t.payload);
+ e.yAxis[t.payload.id] = QW(t.payload);
},
- prepare: VH()
+ prepare: LH()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = nG(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: VH()
+ prepare: LH()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = nG(t.payload);
+ e.zAxis[t.payload.id] = QW(t.payload);
},
- prepare: VH()
+ prepare: LH()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = nG(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = QW(r));
},
- prepare: VH()
+ prepare: LH()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: VH()
+ prepare: LH()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -64315,22 +64315,22 @@ var L0 = GH({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = I0(I0({}, i), {}, {
+ e.yAxis[n] = j0(j0({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: lPe, replaceXAxis: uPe, removeXAxis: dPe, addYAxis: fPe, replaceYAxis: pPe, removeYAxis: mPe, addZAxis: hPe, replaceZAxis: gPe, removeZAxis: _Pe, updateYAxisWidth: vPe } = L0.actions, yPe = L0.reducer, bPe = $([
- $([GU], (e) => ({
+}), { addXAxis: mPe, replaceXAxis: hPe, removeXAxis: gPe, addYAxis: _Pe, replaceYAxis: vPe, removeYAxis: yPe, addZAxis: bPe, replaceZAxis: xPe, removeZAxis: SPe, updateYAxisWidth: CPe } = M0.actions, wPe = M0.reducer, TPe = $([
+ $([VU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- RU,
- zU
+ PU,
+ FU
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -64338,10 +64338,10 @@ var L0 = GH({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), R0 = () => Q(bPe), xPe = () => Q(eAe);
+}), N0 = () => Q(TPe), EPe = () => Q(aAe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function z0(e, t) {
+function P0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64351,30 +64351,30 @@ function z0(e, t) {
}
return n;
}
-function B0(e) {
+function F0(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) {
- SPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
+ t % 2 ? P0(Object(n), !0).forEach(function(t) {
+ DPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SPe(e, t, n) {
- return (t = CPe(t)) in e ? Object.defineProperty(e, t, {
+function DPe(e, t, n) {
+ return (t = OPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CPe(e) {
- var t = wPe(e, "string");
+function OPe(e) {
+ var t = kPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wPe(e, t) {
+function kPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64384,10 +64384,10 @@ function wPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TPe = (e) => {
+var APe = (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 = B0(B0(B0({}, {
+ var s = F0(F0(F0({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -64398,17 +64398,17 @@ var TPe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), DR(i)), $z(i)), c = /*#__PURE__*/ (0, V.isValidElement)(i) ? /*#__PURE__*/ (0, V.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ V.createElement(D1, s);
- return /*#__PURE__*/ V.createElement(MR, {
+ }), ER(i)), Qz(i)), c = /*#__PURE__*/ (0, V.isValidElement)(i) ? /*#__PURE__*/ (0, V.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ V.createElement(S1, s);
+ return /*#__PURE__*/ V.createElement(jR, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function V0(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = JK.activeDot } = e, s = Q(UQ), c = xPe();
+function I0(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = WK.activeDot } = e, s = Q(RQ), c = EPe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return Uz(l) ? null : /*#__PURE__*/ V.createElement(u$, { zIndex: o }, /*#__PURE__*/ V.createElement(TPe, {
+ return Hz(l) ? null : /*#__PURE__*/ V.createElement(a$, { zIndex: o }, /*#__PURE__*/ V.createElement(APe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -64419,7 +64419,7 @@ function V0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function H0(e, t) {
+function L0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64429,30 +64429,30 @@ function H0(e, t) {
}
return n;
}
-function U0(e) {
+function R0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H0(Object(n), !0).forEach(function(t) {
- EPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H0(Object(n)).forEach(function(t) {
+ t % 2 ? L0(Object(n), !0).forEach(function(t) {
+ jPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EPe(e, t, n) {
- return (t = DPe(t)) in e ? Object.defineProperty(e, t, {
+function jPe(e, t, n) {
+ return (t = MPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DPe(e) {
- var t = OPe(e, "string");
+function MPe(e) {
+ var t = NPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OPe(e, t) {
+function NPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64462,16 +64462,16 @@ function OPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var W0 = (e, t) => L1(e, "radiusAxis", t), kPe = $([W0], (e) => {
+var z0 = (e, t) => M1(e, "radiusAxis", t), PPe = $([z0], (e) => {
if (e != null) return { scale: e };
-}), APe = $([iq, W0], (e, t) => {
- if (e != null && t != null) return U0(U0({}, e), {}, { scale: t });
-}), jPe = (e, t, n, r) => z1(e, "radiusAxis", t, r), G0 = (e, t, n) => rq(e, n), K0 = (e, t, n) => L1(e, "angleAxis", n), MPe = $([G0, K0], (e, t) => {
- if (e != null && t != null) return U0(U0({}, e), {}, { scale: t });
-}), NPe = (e, t, n, r) => z1(e, "angleAxis", n, r), PPe = $([
- G0,
- K0,
- dq
+}), FPe = $([eq, z0], (e, t) => {
+ if (e != null && t != null) return R0(R0({}, e), {}, { scale: t });
+}), IPe = (e, t, n, r) => P1(e, "radiusAxis", t, r), B0 = (e, t, n) => $K(e, n), V0 = (e, t, n) => M1(e, "angleAxis", n), LPe = $([B0, V0], (e, t) => {
+ if (e != null && t != null) return R0(R0({}, e), {}, { scale: t });
+}), RPe = (e, t, n, r) => P1(e, "angleAxis", n, r), zPe = $([
+ B0,
+ V0,
+ sq
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -64480,40 +64480,40 @@ var W0 = (e, t) => L1(e, "radiusAxis", t), kPe = $([W0], (e) => {
cx: n.cx,
cy: n.cy
};
-}), FPe = (e, t, n, r, i) => i, IPe = $([
- dW,
- APe,
- jPe,
- MPe,
- NPe
-], (e, t, n, r, i) => TU(e, "radiusAxis") ? FU(t, n, !1) : FU(r, i, !1)), LPe = $([
- kPe,
+}), BPe = (e, t, n, r, i) => i, VPe = $([
+ sW,
+ FPe,
+ IPe,
+ LPe,
+ RPe
+], (e, t, n, r, i) => xU(e, "radiusAxis") ? jU(t, n, !1) : jU(r, i, !1)), HPe = $([
PPe,
- CK,
- $([O1, FPe], (e, t) => {
+ zPe,
+ yK,
+ $([C1, BPe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- IPe
+ VPe
], (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 qPe({
+ if (e != null && t != null && a != null && i != null && r != null) return QPe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), RPe = ["id"];
-function q0() {
- return q0 = Object.assign ? Object.assign.bind() : function(e) {
+}), UPe = ["id"];
+function H0() {
+ return H0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, q0.apply(null, arguments);
+ }, H0.apply(null, arguments);
}
-function J0(e, t) {
+function U0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64523,30 +64523,30 @@ function J0(e, t) {
}
return n;
}
-function Y0(e) {
+function W0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? J0(Object(n), !0).forEach(function(t) {
- zPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J0(Object(n)).forEach(function(t) {
+ t % 2 ? U0(Object(n), !0).forEach(function(t) {
+ WPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zPe(e, t, n) {
- return (t = BPe(t)) in e ? Object.defineProperty(e, t, {
+function WPe(e, t, n) {
+ return (t = GPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BPe(e) {
- var t = VPe(e, "string");
+function GPe(e) {
+ var t = KPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VPe(e, t) {
+function KPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64556,16 +64556,16 @@ function VPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HPe(e, t) {
+function qPe(e, t) {
if (e == null) return {};
- var n, r, i = UPe(e, t);
+ var n, r, i = JPe(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 UPe(e, t) {
+function JPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64574,42 +64574,42 @@ function UPe(e, t) {
}
return n;
}
-function X0(e, t) {
+function G0(e, t) {
return e && e !== "none" ? e : t;
}
-var WPe = (e) => {
+var YPe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: X0(r, i),
- value: LU(n, t),
+ color: G0(r, i),
+ value: NU(n, t),
payload: e
}];
-}, GPe = /*#__PURE__*/ V.memo((e) => {
+}, XPe = /*#__PURE__*/ V.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: Kz,
+ getPosition: Gz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: LU(a, t),
+ name: NU(a, t),
hide: o,
type: s,
- color: X0(n, i),
+ color: G0(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ V.createElement(w0, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ V.createElement(y0, { tooltipEntrySettings: l });
});
-function KPe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = ER(HPe(n, RPe));
- return /*#__PURE__*/ V.createElement(P0, {
+function ZPe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = TR(qPe(n, UPe));
+ return /*#__PURE__*/ V.createElement(k0, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -64618,11 +64618,11 @@ function KPe(e) {
baseProps: o
});
}
-function qPe(e) {
+function QPe(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 = wU(e, n.dataKey, r), d = wU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ZNe(d) : d, m = Uz(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(Y0(Y0({}, pK(o, s, m, f)), {}, {
+ var a = bU(e, n.dataKey, r), d = bU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? nPe(d) : d, m = Hz(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(W0(W0({}, lK(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -64635,8 +64635,8 @@ function qPe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = Uz(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(Y0(Y0({}, e), {}, { radius: r }, pK(o, s, r, e.angle)));
+ var n = e.value[0], r = Hz(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(W0(W0({}, e), {}, { radius: r }, lK(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -64644,7 +64644,7 @@ function qPe(e) {
baseLinePoints: d
};
}
-function JPe(e) {
+function $Pe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -64654,7 +64654,7 @@ function JPe(e) {
upperWidth: 0,
height: 0
};
- return Y0(Y0({}, t), {}, {
+ return W0(W0({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -64662,12 +64662,12 @@ function JPe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ V.createElement(v1, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ V.createElement(p1, { value: t ? i : void 0 }, r);
}
-function YPe(e) {
+function eFe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ V.isValidElement(i) ? /*#__PURE__*/ V.cloneElement(i, Y0(Y0({}, r), {}, { points: t })) : typeof i == "function" ? i(Y0(Y0({}, r), {}, { points: t })) : /*#__PURE__*/ V.createElement(T1, q0({}, OR(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ V.isValidElement(i) ? /*#__PURE__*/ V.cloneElement(i, W0(W0({}, r), {}, { points: t })) : typeof i == "function" ? i(W0(W0({}, r), {}, { points: t })) : /*#__PURE__*/ V.createElement(b1, H0({}, DR(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -64680,31 +64680,31 @@ function YPe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ V.createElement(MR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ V.createElement(KPe, {
+ return /*#__PURE__*/ V.createElement(jR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ V.createElement(ZPe, {
props: r,
points: t
}));
}
-var Z0 = (e, t, n) => (r, i) => {
+var K0 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? Y0(Y0({}, r), {}, {
- x: Vz(a.x, r.x, n),
- y: Vz(a.y, r.y, n)
- }) : Y0(Y0({}, r), {}, {
- x: Vz(r.cx, r.x, n),
- y: Vz(r.cy, r.y, n)
+ return a ? W0(W0({}, r), {}, {
+ x: Bz(a.x, r.x, n),
+ y: Bz(a.y, r.y, n)
+ }) : W0(W0({}, r), {}, {
+ x: Bz(r.cx, r.x, n),
+ y: Bz(r.cy, r.y, n)
});
};
-function XPe(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 = eK(t, "recharts-radar-"), [_, v] = (0, V.useState)(!1), y = !_, b = (0, V.useCallback)(() => {
+function tFe(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 = XG(t, "recharts-radar-"), [_, v] = (0, V.useState)(!1), y = !_, b = (0, V.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, V.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ V.createElement(JPe, {
+ return /*#__PURE__*/ V.createElement($Pe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ V.createElement($G, {
+ }, /*#__PURE__*/ V.createElement(YG, {
animationId: g,
begin: s,
duration: c,
@@ -64714,23 +64714,23 @@ function XPe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(Z0(f, m, e)), s = e === 1 ? a : a?.map(Z0(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ V.createElement(YPe, {
+ var o = e === 1 ? i : i.map(K0(f, m, e)), s = e === 1 ? a : a?.map(K0(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ V.createElement(eFe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ V.createElement(x1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ V.createElement(g1, { label: t.label }), t.children);
}
-function ZPe(e) {
+function nFe(e) {
var t = (0, V.useRef)(void 0), n = (0, V.useRef)(void 0);
- return /*#__PURE__*/ V.createElement(XPe, {
+ return /*#__PURE__*/ V.createElement(tFe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var QPe = {
+var rFe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -64742,33 +64742,33 @@ var QPe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: JK.area
+ zIndex: WK.area
};
-function $Pe(e) {
+function iFe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = za("recharts-radar", n);
- return /*#__PURE__*/ V.createElement(u$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: i }, /*#__PURE__*/ V.createElement(ZPe, e)), /*#__PURE__*/ V.createElement(V0, {
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: i }, /*#__PURE__*/ V.createElement(nFe, e)), /*#__PURE__*/ V.createElement(I0, {
points: r,
- mainColor: X0(e.stroke, e.fill),
+ mainColor: G0(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function eFe(e) {
- var t = qU(), n = Q((n) => LPe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ V.createElement($Pe, q0({}, e, {
+function aFe(e) {
+ var t = UU(), n = Q((n) => HPe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ V.createElement(iFe, H0({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function Q0(e) {
- var t = nB(e, QPe);
- return /*#__PURE__*/ V.createElement(D0, {
+function q0(e) {
+ var t = tB(e, rFe);
+ return /*#__PURE__*/ V.createElement(S0, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(A0, {
+ }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(T0, {
type: "radar",
id: e,
data: void 0,
@@ -64776,7 +64776,7 @@ function Q0(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ V.createElement(E0, { legendPayload: WPe(t) }), /*#__PURE__*/ V.createElement(GPe, {
+ }), /*#__PURE__*/ V.createElement(x0, { legendPayload: YPe(t) }), /*#__PURE__*/ V.createElement(XPe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -64785,33 +64785,33 @@ function Q0(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ V.createElement(eFe, q0({}, t, { id: e }))));
+ }), /*#__PURE__*/ V.createElement(aFe, H0({}, t, { id: e }))));
}
-Q0.displayName = "Radar";
+q0.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function $0() {
- return $0 = Object.assign ? Object.assign.bind() : function(e) {
+function J0() {
+ return J0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $0.apply(null, arguments);
+ }, J0.apply(null, arguments);
}
-function e2(e) {
+function Y0(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function t2(e) {
- return /*#__PURE__*/ V.createElement(b0, $0({ shapeType: "sector" }, e));
+function X0(e) {
+ return /*#__PURE__*/ V.createElement(h0, J0({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var n2 = (e, t, n) => {
+var Z0 = (e, t, n) => {
var r = n ?? e;
- if (!Uz(r)) return zz(r, t, 0);
-}, r2 = (e, t, n) => {
- var r = {}, i = e.filter(gq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ if (!Hz(r)) return Rz(r, t, 0);
+}, Q0 = (e, t, n) => {
+ var r = {}, i = e.filter(fq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -64819,18 +64819,18 @@ var n2 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: n2(t, n, i[0]?.barSize)
+ barSize: Z0(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: n2(t, n, e.barSize)
+ barSize: Z0(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function i2(e, t) {
+function $0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64840,30 +64840,30 @@ function i2(e, t) {
}
return n;
}
-function a2(e) {
+function e2(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) {
- tFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i2(Object(n)).forEach(function(t) {
+ t % 2 ? $0(Object(n), !0).forEach(function(t) {
+ oFe(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 tFe(e, t, n) {
- return (t = nFe(t)) in e ? Object.defineProperty(e, t, {
+function oFe(e, t, n) {
+ return (t = sFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nFe(e) {
- var t = rFe(e, "string");
+function sFe(e) {
+ var t = cFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rFe(e, t) {
+function cFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64873,11 +64873,11 @@ function rFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iFe(e, t, n, r, i) {
+function lFe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = zz(e, n, 0, !0), s, c = [];
- if (bU(r[0]?.barSize)) {
+ var o = Rz(e, n, 0, !0), s, c = [];
+ if (gU(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@ -64896,11 +64896,11 @@ function iFe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = zz(t, n, 0, !0);
+ var p = Rz(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
- var h = bU(i) ? Math.min(m, i) : m;
+ var h = gU(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -64913,11 +64913,11 @@ function iFe(e, t, n, r, i) {
return s;
}
}
-var o2 = (e, t, n, r, i, a, o) => {
- var s = Uz(o) ? t : o, c = iFe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => a2(a2({}, e), {}, { position: a2(a2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, s2 = (e, t) => {
- var n = mq(t);
+var t2 = (e, t, n, r, i, a, o) => {
+ var s = Hz(o) ? t : o, c = lFe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => e2(e2({}, e), {}, { position: e2(e2({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, n2 = (e, t) => {
+ var n = uq(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -64928,7 +64928,7 @@ var o2 = (e, t, n, r, i, a, o) => {
}
}
}
-}, c2 = (e, t) => {
+}, r2 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -64936,7 +64936,7 @@ var o2 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function l2(e, t) {
+function i2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64946,30 +64946,30 @@ function l2(e, t) {
}
return n;
}
-function u2(e) {
+function a2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l2(Object(n), !0).forEach(function(t) {
- aFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l2(Object(n)).forEach(function(t) {
+ t % 2 ? i2(Object(n), !0).forEach(function(t) {
+ uFe(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 aFe(e, t, n) {
- return (t = oFe(t)) in e ? Object.defineProperty(e, t, {
+function uFe(e, t, n) {
+ return (t = dFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oFe(e) {
- var t = sFe(e, "string");
+function dFe(e) {
+ var t = fFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sFe(e, t) {
+function fFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64979,81 +64979,81 @@ function sFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var d2 = $([(e, t) => iq(e, t), (e, t) => L1(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return u2(u2({}, e), {}, { scale: t });
-}), f2 = (e, t) => bMe(e, "radiusAxis", t, !1), p2 = $([(e, t, n) => rq(e, n), (e, t, n) => L1(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return u2(u2({}, e), {}, { scale: t });
-}), m2 = (e, t, n) => z1(e, "angleAxis", n, !1), h2 = $([O1, (e, t, n, r) => r], (e, t) => {
+var o2 = $([(e, t) => eq(e, t), (e, t) => M1(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return a2(a2({}, e), {}, { scale: t });
+}), s2 = (e, t) => TMe(e, "radiusAxis", t, !1), c2 = $([(e, t, n) => $K(e, n), (e, t, n) => M1(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return a2(a2({}, e), {}, { scale: t });
+}), l2 = (e, t, n) => P1(e, "angleAxis", n, !1), u2 = $([C1, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), g2 = $([
- dW,
- d2,
- f2,
- p2,
- m2
-], (e, t, n, r, i) => TU(e, "radiusAxis") ? FU(t, n, !1) : FU(r, i, !1)), cFe = $([
- p2,
- d2,
- dW
+}), d2 = $([
+ sW,
+ o2,
+ s2,
+ c2,
+ l2
+], (e, t, n, r, i) => xU(e, "radiusAxis") ? jU(t, n, !1) : jU(r, i, !1)), pFe = $([
+ c2,
+ o2,
+ sW
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return MU({ numericAxis: r });
-}), lFe = (e, t, n, r, i) => i, uFe = (e, t, n, r, i) => n, dFe = (e, t, n, r, i) => t, _2 = (e, t, n, r, i) => r.maxBarSize, v2 = (e) => e.type === "radialBar", fFe = $([$([
+ if (r != null && r.scale != null) return OU({ numericAxis: r });
+}), mFe = (e, t, n, r, i) => i, hFe = (e, t, n, r, i) => n, gFe = (e, t, n, r, i) => t, f2 = (e, t, n, r, i) => r.maxBarSize, p2 = (e) => e.type === "radialBar", _Fe = $([$([
$([
$([
- dW,
- O1,
- uFe,
- dFe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(v2)),
- VK,
+ sW,
+ C1,
+ hFe,
+ gFe
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(p2)),
+ LK,
() => void 0
- ], r2),
- RK,
- zK,
- BK,
+ ], Q0),
+ PK,
+ FK,
+ IK,
$([
- dW,
- RK,
- p2,
- m2,
- d2,
- f2,
- _2
+ sW,
+ PK,
+ c2,
+ l2,
+ o2,
+ s2,
+ f2
], (e, t, n, r, i, a, o) => {
- var s = Uz(o) ? t : o;
- return e === "centric" ? FU(n, r, !0) ?? s ?? 0 : FU(i, a, !0) ?? s ?? 0;
+ var s = Hz(o) ? t : o;
+ return e === "centric" ? jU(n, r, !0) ?? s ?? 0 : jU(i, a, !0) ?? s ?? 0;
}),
- g2,
- _2
-], o2), h2], c2), y2 = $([k1], (e) => e.filter(v2).filter(gq)), b2 = $([
+ d2,
+ f2
+], t2), u2], r2), m2 = $([w1], (e) => e.filter(p2).filter(fq)), h2 = $([
$([
- y2,
- CK,
- uZ
- ], hq),
- y2,
- HK,
- UK
-], pZ), pFe = $([
- p2,
+ m2,
+ yK,
+ oZ
+ ], dq),
m2,
+ RK,
+ zK
+], cZ), vFe = $([
+ c2,
+ l2,
+ o2,
+ s2,
+ vK,
+ u2,
d2,
- f2,
- SK,
- h2,
- g2,
- dW,
- cFe,
- dq,
- lFe,
- fFe,
- $([(e, t, n) => dW(e) === "centric" ? b2(e, "radiusAxis", t) : b2(e, "angleAxis", n), h2], s2)
+ sW,
+ pFe,
+ sq,
+ mFe,
+ _Fe,
+ $([(e, t, n) => sW(e) === "centric" ? h2(e, "radiusAxis", t) : h2(e, "angleAxis", n), u2], n2)
], (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 AFe({
+ return FFe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -65074,7 +65074,7 @@ var d2 = $([(e, t) => iq(e, t), (e, t) => L1(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), mFe = $([CK, (e, t) => t], (e, t) => {
+}), yFe = $([yK, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -65087,31 +65087,31 @@ var d2 = $([(e, t) => iq(e, t), (e, t) => L1(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function x2(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && bU(e.zIndex) ? e.zIndex : t;
+function g2(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && gU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var hFe = [
+var bFe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], gFe = [
+], xFe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], _Fe = ["value", "background"];
-function S2() {
- return S2 = Object.assign ? Object.assign.bind() : function(e) {
+], SFe = ["value", "background"];
+function _2() {
+ return _2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, S2.apply(null, arguments);
+ }, _2.apply(null, arguments);
}
-function C2(e, t) {
+function v2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65121,30 +65121,30 @@ function C2(e, t) {
}
return n;
}
-function w2(e) {
+function y2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? C2(Object(n), !0).forEach(function(t) {
- vFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C2(Object(n)).forEach(function(t) {
+ t % 2 ? v2(Object(n), !0).forEach(function(t) {
+ CFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vFe(e, t, n) {
- return (t = yFe(t)) in e ? Object.defineProperty(e, t, {
+function CFe(e, t, n) {
+ return (t = wFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yFe(e) {
- var t = bFe(e, "string");
+function wFe(e) {
+ var t = TFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bFe(e, t) {
+function TFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65154,16 +65154,16 @@ function bFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function T2(e, t) {
+function b2(e, t) {
if (e == null) return {};
- var n, r, i = xFe(e, t);
+ var n, r, i = EFe(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 xFe(e, t) {
+function EFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65172,8 +65172,8 @@ function xFe(e, t) {
}
return n;
}
-var E2 = [];
-function SFe(e) {
+var x2 = [];
+function DFe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -65190,15 +65190,15 @@ function SFe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ V.createElement(cMe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ V.createElement(pMe, { value: t ? i : void 0 }, r);
}
-function CFe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = T2(n, hFe), l = ER(c), u = Q(UQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = T2(n, gFe), h = x0(d, n.dataKey, s), g = S0(p), _ = C0(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ V.createElement(SFe, {
+function OFe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = b2(n, bFe), l = TR(c), u = Q(RQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = b2(n, xFe), h = g0(d, n.dataKey, s), g = _0(p), _ = v0(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ V.createElement(DFe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = w2(w2(w2(w2({}, l), {}, { cornerRadius: e2(o) }, e), eB(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = y2(y2(y2(y2({}, l), {}, { cornerRadius: Y0(o) }, e), $z(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -65209,19 +65209,19 @@ function CFe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ V.createElement(u$, {
- zIndex: JK.activeBar,
+ return n ? /*#__PURE__*/ V.createElement(a$, {
+ zIndex: WK.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ V.createElement(t2, f)) : /*#__PURE__*/ V.createElement(t2, S2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ V.createElement(x1, { label: n.label }), n.children);
+ }, /*#__PURE__*/ V.createElement(X0, f)) : /*#__PURE__*/ V.createElement(X0, _2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ V.createElement(g1, { label: n.label }), n.children);
}
-function wFe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = eK(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, V.useState)(!1), m = (0, V.useCallback)(() => {
+function kFe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = XG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, V.useState)(!1), m = (0, V.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, V.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ V.createElement($G, {
+ return /*#__PURE__*/ V.createElement(YG, {
animationId: u,
begin: a,
duration: o,
@@ -65231,37 +65231,37 @@ function wFe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? E2).map((t, n) => {
+ var i = e === 1 ? r : (r ?? x2).map((t, n) => {
var r = d && d[n];
- if (r) return w2(w2({}, t), {}, {
- startAngle: Vz(r.startAngle, t.startAngle, e),
- endAngle: Vz(r.endAngle, t.endAngle, e)
+ if (r) return y2(y2({}, t), {}, {
+ startAngle: Bz(r.startAngle, t.startAngle, e),
+ endAngle: Bz(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return w2(w2({}, t), {}, { endAngle: Vz(a, i, e) });
+ return y2(y2({}, t), {}, { endAngle: Bz(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ V.createElement(CFe, {
- sectors: i ?? E2,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ V.createElement(OFe, {
+ sectors: i ?? x2,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function TFe(e) {
+function AFe(e) {
var t = (0, V.useRef)(null);
- return /*#__PURE__*/ V.createElement(wFe, {
+ return /*#__PURE__*/ V.createElement(kFe, {
props: e,
previousSectorsRef: t
});
}
-function EFe(e) {
- var t = Q((t) => mFe(t, e.legendType));
- return /*#__PURE__*/ V.createElement(E0, { legendPayload: t ?? [] });
+function jFe(e) {
+ var t = Q((t) => yFe(t, e.legendType));
+ return /*#__PURE__*/ V.createElement(x0, { legendPayload: t ?? [] });
}
-var DFe = /*#__PURE__*/ V.memo((e) => {
+var MFe = /*#__PURE__*/ V.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: Kz,
+ getPosition: Gz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -65269,45 +65269,45 @@ var DFe = /*#__PURE__*/ V.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: LU(a, t),
+ name: NU(a, t),
hide: o,
type: c,
color: s,
unit: ""
}
};
- return /*#__PURE__*/ V.createElement(w0, { tooltipEntrySettings: u });
-}), OFe = class extends V.PureComponent {
+ return /*#__PURE__*/ V.createElement(y0, { tooltipEntrySettings: u });
+}), NFe = class extends V.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = DR(this.props.background);
- return /*#__PURE__*/ V.createElement(u$, { zIndex: x2(this.props.background, JK.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = T2(e, _Fe);
+ var { cornerRadius: t } = this.props, n = ER(this.props.background);
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: g2(this.props.background, WK.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = b2(e, SFe);
if (!a) return null;
- var s = w2(w2(w2(w2(w2({ cornerRadius: e2(t) }, o), {}, { fill: "#eee" }, a), n), eB(this.props, e, r)), {}, {
+ var s = y2(y2(y2(y2(y2({ cornerRadius: Y0(t) }, o), {}, { fill: "#eee" }, a), n), $z(this.props, e, r)), {}, {
index: r,
className: za("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ V.createElement(t2, S2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ V.createElement(X0, _2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = za("recharts-area", n);
- return /*#__PURE__*/ V.createElement(u$, { zIndex: this.props.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: i }, r && /*#__PURE__*/ V.createElement(MR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ V.createElement(MR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ V.createElement(TFe, this.props))));
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: this.props.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: i }, r && /*#__PURE__*/ V.createElement(jR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ V.createElement(jR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ V.createElement(AFe, this.props))));
}
};
-function kFe(e) {
- var t = V.useMemo(() => u0(e.children, D$), [e.children]), n = V.useMemo(() => ({
+function PFe(e) {
+ var t = V.useMemo(() => a0(e.children, S$), [e.children]), n = V.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: kU(e.stackId),
+ stackId: TU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -65322,8 +65322,8 @@ function kFe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => pFe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? E2;
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(DFe, {
+ ]), r = Q((r) => vFe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? x2;
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(MFe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -65333,9 +65333,9 @@ function kFe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ V.createElement(OFe, S2({}, e, { sectors: r })));
+ }), /*#__PURE__*/ V.createElement(NFe, _2({}, e, { sectors: r })));
}
-var D2 = {
+var S2 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -65350,14 +65350,14 @@ var D2 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: JK.bar
+ zIndex: WK.bar
};
-function AFe(e) {
+function FFe(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 ? E2 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? x2 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = OU(n[r + t], i) : (b = wU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = jU({
+ if (n ? b = wU(n[r + t], i) : (b = bU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = DU({
axis: c,
ticks: l,
bandSize: u,
@@ -65368,7 +65368,7 @@ function AFe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = Pz(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = Nz(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -65380,7 +65380,7 @@ function AFe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = jU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = DU({
axis: f,
ticks: g,
bandSize: u,
@@ -65391,11 +65391,11 @@ function AFe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = Pz(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = Nz(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return w2(w2(w2({}, e), T), {}, {
+ return y2(y2(y2({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -65407,38 +65407,38 @@ function AFe(e) {
}, _ && _[t] && _[t].props);
});
}
-function O2(e) {
- var t = nB(e, D2);
- return /*#__PURE__*/ V.createElement(D0, {
+function C2(e) {
+ var t = tB(e, S2);
+ return /*#__PURE__*/ V.createElement(S0, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(A0, {
+ }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(T0, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? D2.hide,
- angleAxisId: t.angleAxisId ?? D2.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? D2.radiusAxisId,
- stackId: kU(t.stackId),
+ hide: t.hide ?? S2.hide,
+ angleAxisId: t.angleAxisId ?? S2.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? S2.radiusAxisId,
+ stackId: TU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ V.createElement(EFe, t), /*#__PURE__*/ V.createElement(kFe, S2({}, t, { id: e }))));
+ }), /*#__PURE__*/ V.createElement(jFe, t), /*#__PURE__*/ V.createElement(PFe, _2({}, t, { id: e }))));
}
-O2.displayName = "RadialBar";
+C2.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var k2 = (e) => {
- var { chartData: t } = e, n = NB(), r = qU();
- return (0, V.useEffect)(() => r ? () => {} : (n(x$(t)), () => {
- n(x$(void 0));
+var w2 = (e) => {
+ var { chartData: t } = e, n = kB(), r = UU();
+ return (0, V.useEffect)(() => r ? () => {} : (n(g$(t)), () => {
+ n(g$(void 0));
}), [
t,
n,
r
]), null;
-}, A2 = {
+}, T2 = {
x: 0,
y: 0,
width: 0,
@@ -65449,13 +65449,13 @@ var k2 = (e) => {
bottom: 0,
left: 0
}
-}, j2 = GH({
+}, E2 = VH({
name: "brush",
- initialState: A2,
+ initialState: T2,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? A2 : t.payload;
+ return t.payload == null ? T2 : t.payload;
} }
-}), { setBrushSettings: jFe } = j2.actions, MFe = j2.reducer, NFe = (e, t) => {
+}), { setBrushSettings: IFe } = E2.actions, LFe = E2.reducer, RFe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -65463,9 +65463,9 @@ var k2 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, PFe = (e) => {
+}, zFe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return NFe({
+ return RFe({
x: t,
y: n
}, {
@@ -65473,13 +65473,13 @@ var k2 = (e) => {
y: i
});
};
-function FFe(e) {
+function BFe(e) {
return (e % 180 + 180) % 180;
}
-var IFe = function(e) {
- var { width: t, height: n } = e, r = FFe(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 VFe = function(e) {
+ var { width: t, height: n } = e, r = BFe(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);
-}, M2 = GH({
+}, D2 = VH({
name: "referenceElements",
initialState: {
dots: [],
@@ -65491,35 +65491,35 @@ var IFe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = MH(e).dots.findIndex((e) => e === t.payload);
+ var n = OH(e).dots.findIndex((e) => e === t.payload);
n !== -1 && e.dots.splice(n, 1);
},
addArea: (e, t) => {
e.areas.push(t.payload);
},
removeArea: (e, t) => {
- var n = MH(e).areas.findIndex((e) => e === t.payload);
+ var n = OH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(nG(t.payload));
+ e.lines.push(QW(t.payload));
},
removeLine: (e, t) => {
- var n = MH(e).lines.findIndex((e) => e === t.payload);
+ var n = OH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: LFe, removeDot: RFe, addArea: zFe, removeArea: BFe, addLine: VFe, removeLine: HFe } = M2.actions, UFe = M2.reducer, N2 = /*#__PURE__*/ (0, V.createContext)(void 0), WFe = (e) => {
- var { children: t } = e, [n] = (0, V.useState)(`${Rz("recharts")}-clip`), r = R0();
+}), { addDot: HFe, removeDot: UFe, addArea: WFe, removeArea: GFe, addLine: KFe, removeLine: qFe } = D2.actions, JFe = D2.reducer, O2 = /*#__PURE__*/ (0, V.createContext)(void 0), YFe = (e) => {
+ var { children: t } = e, [n] = (0, V.useState)(`${Lz("recharts")}-clip`), r = N0();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ V.createElement(N2.Provider, { value: n }, /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement("clipPath", { id: n }, /*#__PURE__*/ V.createElement("rect", {
+ return /*#__PURE__*/ V.createElement(O2.Provider, { value: n }, /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement("clipPath", { id: n }, /*#__PURE__*/ V.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, GFe = () => (0, V.useContext)(N2), KFe = class {
+}, XFe = () => (0, V.useContext)(O2), ZFe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -65545,7 +65545,7 @@ var IFe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function P2(e, t) {
+function k2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65555,30 +65555,30 @@ function P2(e, t) {
}
return n;
}
-function F2(e) {
+function A2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P2(Object(n), !0).forEach(function(t) {
- qFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P2(Object(n)).forEach(function(t) {
+ t % 2 ? k2(Object(n), !0).forEach(function(t) {
+ QFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qFe(e, t, n) {
- return (t = JFe(t)) in e ? Object.defineProperty(e, t, {
+function QFe(e, t, n) {
+ return (t = $Fe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JFe(e) {
- var t = YFe(e, "string");
+function $Fe(e) {
+ var t = eIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YFe(e, t) {
+function eIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65588,27 +65588,27 @@ function YFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function I2() {
- return I2 = Object.assign ? Object.assign.bind() : function(e) {
+function j2() {
+ return j2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, I2.apply(null, arguments);
+ }, j2.apply(null, arguments);
}
-var XFe = (e, t) => {
+var tIe = (e, t) => {
var n;
if (/*#__PURE__*/ V.isValidElement(e)) n = /*#__PURE__*/ V.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!bU(t.x1) || !bU(t.y1) || !bU(t.x2) || !bU(t.y2)) return null;
- n = /*#__PURE__*/ V.createElement("line", I2({}, t, { className: "recharts-reference-line-line" }));
+ if (!gU(t.x1) || !gU(t.y1) || !gU(t.x2) || !gU(t.y2)) return null;
+ n = /*#__PURE__*/ V.createElement("line", j2({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, ZFe = (e, t, n, r, i, a) => {
+}, nIe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!bU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!gU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -65617,9 +65617,9 @@ var XFe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, QFe = (e, t, n, r, i, a) => {
+}, rIe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!bU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!gU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -65628,7 +65628,7 @@ var XFe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, $Fe = (e, t, n, r) => {
+}, iIe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -65637,43 +65637,43 @@ var XFe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, eIe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = Lz(s);
- return Lz(c) ? ZFe(c, u, r, a, t, n) : d ? QFe(s, u, r, i, e, n) : l != null && l.length === 2 ? $Fe(l, u, r, new KFe({
+}, aIe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = Iz(s);
+ return Iz(c) ? nIe(c, u, r, a, t, n) : d ? rIe(s, u, r, i, e, n) : l != null && l.length === 2 ? iIe(l, u, r, new ZFe({
x: e,
y: t
})) : null;
};
-function tIe(e) {
- var t = NB();
- return (0, V.useEffect)(() => (t(VFe(e)), () => {
- t(HFe(e));
+function oIe(e) {
+ var t = kB();
+ return (0, V.useEffect)(() => (t(KFe(e)), () => {
+ t(qFe(e));
})), null;
}
-function nIe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = qU(), s = GFe(), c = Q((e) => VX(e, t)), l = Q((e) => WX(e, n)), u = Q((e) => HZ(e, "xAxis", t, o)), d = Q((e) => HZ(e, "yAxis", n, o)), f = sW();
+function sIe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = UU(), s = XFe(), c = Q((e) => LX(e, t)), l = Q((e) => BX(e, n)), u = Q((e) => LZ(e, "xAxis", t, o)), d = Q((e) => LZ(e, "yAxis", n, o)), f = rW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = eIe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = aIe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = F2(F2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, OR(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = A2(A2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, DR(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = PFe({
+ }), x = zFe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ V.createElement(u$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: za("recharts-reference-line", i) }, XFe(r, b), /*#__PURE__*/ V.createElement(o1, I2({}, x, {
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: za("recharts-reference-line", i) }, tIe(r, b), /*#__PURE__*/ V.createElement(t1, j2({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ V.createElement(m1, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ V.createElement(l1, { label: e.label }), e.children)));
}
-var rIe = {
+var cIe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -65683,23 +65683,23 @@ var rIe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: JK.line
+ zIndex: WK.line
};
-function L2(e) {
- var t = nB(e, rIe);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(tIe, {
+function M2(e) {
+ var t = tB(e, cIe);
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(oIe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ V.createElement(nIe, t));
+ }), /*#__PURE__*/ V.createElement(sIe, t));
}
-L2.displayName = "ReferenceLine";
+M2.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function R2(e, t) {
+function N2(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -65710,13 +65710,13 @@ function R2(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function iIe(e, t, n) {
- return IFe({
+function lIe(e, t, n) {
+ return VFe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function aIe(e, t, n) {
+function uIe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -65726,33 +65726,33 @@ function aIe(e, t, n) {
end: r ? i : a
};
}
-function z2(e, t, n, r, i) {
+function P2(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function oIe(e, t) {
- return R2(e, t + 1);
+function dIe(e, t) {
+ return N2(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function sIe(e, t, n, r, i) {
+function fIe(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: R2(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || z2(e, p, f, u, s);
+ if (t === void 0) return { v: N2(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || P2(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function cIe(e, t, n, r, i) {
+function pIe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || z2(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || P2(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -65768,7 +65768,7 @@ function cIe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function B2(e, t) {
+function F2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65778,30 +65778,30 @@ function B2(e, t) {
}
return n;
}
-function V2(e) {
+function I2(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) {
- lIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B2(Object(n)).forEach(function(t) {
+ t % 2 ? F2(Object(n), !0).forEach(function(t) {
+ mIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lIe(e, t, n) {
- return (t = uIe(t)) in e ? Object.defineProperty(e, t, {
+function mIe(e, t, n) {
+ return (t = hIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uIe(e) {
- var t = dIe(e, "string");
+function hIe(e) {
+ var t = gIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dIe(e, t) {
+function gIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65811,26 +65811,26 @@ function dIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fIe(e, t, n, r, i) {
+function _Ie(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = V2(V2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = V2(V2({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && z2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = V2(V2({}, l), {}, { isShow: !0 }));
+ a[t] = l = I2(I2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = I2(I2({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && P2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = I2(I2({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function pIe(e, t, n, r, i, a) {
+function vIe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = V2(V2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && z2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = V2(V2({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = I2(I2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && P2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = I2(I2({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -65839,17 +65839,17 @@ function pIe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = V2(V2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = V2(V2({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && z2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = V2(V2({}, a), {}, { isShow: !0 }));
+ o[t] = a = I2(I2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = I2(I2({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && P2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = I2(I2({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function H2(e, t, n) {
+function L2(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) || xG.isSsr) return oIe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? N$(u, {
+ if (Z(c) || _G.isSsr) return dIe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? O$(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -65857,19 +65857,19 @@ function H2(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? iIe(N$(i, {
+ return p === "width" ? lIe(O$(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : N$(i, {
+ }), m, d) : O$(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Pz(_.coordinate - g.coordinate) : 1, y = aIe(a, v, p);
- return c === "equidistantPreserveStart" ? sIe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? cIe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? pIe(v, y, h, i, o, c === "preserveStartEnd") : fIe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Nz(_.coordinate - g.coordinate) : 1, y = uIe(a, v, p);
+ return c === "equidistantPreserveStart" ? fIe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? pIe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? vIe(v, y, h, i, o, c === "preserveStartEnd") : _Ie(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var mIe = (e) => {
+var yIe = (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) => {
@@ -65882,7 +65882,7 @@ var mIe = (e) => {
return Math.round(l);
}
return 0;
-}, U2 = GH({
+}, R2 = VH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -65891,14 +65891,14 @@ var mIe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = nG(i);
+ e[n][r] = QW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: hIe, removeRenderedTicks: gIe } = U2.actions, _Ie = U2.reducer, vIe = [
+}), { setRenderedTicks: bIe, removeRenderedTicks: xIe } = R2.actions, SIe = R2.reducer, CIe = [
"axisLine",
"width",
"height",
@@ -65908,16 +65908,16 @@ var mIe = (e) => {
"axisType",
"axisId"
];
-function yIe(e, t) {
+function wIe(e, t) {
if (e == null) return {};
- var n, r, i = bIe(e, t);
+ var n, r, i = TIe(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 bIe(e, t) {
+function TIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65926,16 +65926,16 @@ function bIe(e, t) {
}
return n;
}
-function W2() {
- return W2 = Object.assign ? Object.assign.bind() : function(e) {
+function z2() {
+ return z2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, W2.apply(null, arguments);
+ }, z2.apply(null, arguments);
}
-function G2(e, t) {
+function B2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65945,30 +65945,30 @@ function G2(e, t) {
}
return n;
}
-function K2(e) {
+function V2(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) {
- xIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
+ t % 2 ? B2(Object(n), !0).forEach(function(t) {
+ EIe(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 xIe(e, t, n) {
- return (t = SIe(t)) in e ? Object.defineProperty(e, t, {
+function EIe(e, t, n) {
+ return (t = DIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SIe(e) {
- var t = CIe(e, "string");
+function DIe(e) {
+ var t = OIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CIe(e, t) {
+function OIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65978,7 +65978,7 @@ function CIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var q2 = {
+var H2 = {
x: 0,
y: 0,
width: 0,
@@ -66000,15 +66000,15 @@ var q2 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: JK.axis
+ zIndex: WK.axis
};
-function wIe(e) {
+function kIe(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 = K2(K2(K2({}, c), ER(s)), {}, { fill: "none" });
+ var l = V2(V2(V2({}, c), TR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = K2(K2({}, l), {}, {
+ l = V2(V2({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -66016,16 +66016,16 @@ function wIe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = K2(K2({}, l), {}, {
+ l = V2(V2({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ V.createElement("line", W2({}, l, { className: za("recharts-cartesian-axis-line", jz(s, "className")) }));
+ return /*#__PURE__*/ V.createElement("line", z2({}, l, { className: za("recharts-cartesian-axis-line", Az(s, "className")) }));
}
-function TIe(e, t, n, r, i, a, o, s, c) {
+function AIe(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":
@@ -66052,14 +66052,14 @@ function TIe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function EIe(e, t) {
+function jIe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function DIe(e, t) {
+function MIe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -66067,19 +66067,19 @@ function DIe(e, t) {
default: return t ? "end" : "start";
}
}
-function OIe(e) {
+function NIe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = za(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ V.isValidElement(t)) i = /*#__PURE__*/ V.cloneElement(t, K2(K2({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(K2(K2({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ V.isValidElement(t)) i = /*#__PURE__*/ V.cloneElement(t, V2(V2({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(V2(V2({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = za(o, J1(t))), i = /*#__PURE__*/ V.createElement(Q$, W2({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = za(o, U1(t))), i = /*#__PURE__*/ V.createElement(q$, z2({}, n, { className: o }), r);
}
return i;
}
-function kIe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = NB();
- return (0, V.useEffect)(() => r == null || n == null ? Kz : (i(hIe({
+function PIe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = kB();
+ return (0, V.useEffect)(() => r == null || n == null ? Gz : (i(bIe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -66089,7 +66089,7 @@ function kIe(e) {
axisId: r,
axisType: n
})), () => {
- i(gIe({
+ i(xIe({
axisId: r,
axisType: n
}));
@@ -66100,17 +66100,17 @@ function kIe(e) {
n
]), null;
}
-var AIe = /*#__PURE__*/ (0, V.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 = H2(K2(K2({}, b), {}, { ticks: n }), v, y), T = ER(b), E = DR(r), D = K$(T.textAnchor) ? T.textAnchor : EIe(u, d), O = DIe(u, d), k = {};
+var FIe = /*#__PURE__*/ (0, V.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 = L2(V2(V2({}, b), {}, { ticks: n }), v, y), T = TR(b), E = ER(r), D = V$(T.textAnchor) ? T.textAnchor : jIe(u, d), O = MIe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = K2(K2({}, T), {}, { fill: "none" }, k), j = w.map((e) => K2({ entry: e }, TIe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = V2(V2({}, T), {}, { fill: "none" }, k), j = w.map((e) => V2({ entry: e }, AIe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ V.createElement(MR, {
+ return /*#__PURE__*/ V.createElement(jR, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ V.createElement("line", W2({}, A, n, { className: za("recharts-cartesian-axis-tick-line", jz(i, "className")) })));
+ }, i && /*#__PURE__*/ V.createElement("line", z2({}, A, n, { className: za("recharts-cartesian-axis-tick-line", Az(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = K2(K2({}, K2(K2(K2(K2({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = V2(V2({}, V2(V2(V2(V2({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -66121,26 +66121,26 @@ var AIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ V.createElement(MR, W2({
+ return /*#__PURE__*/ V.createElement(jR, z2({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, eB(x, n, t)), r && /*#__PURE__*/ V.createElement(OIe, {
+ }, $z(x, n, t)), r && /*#__PURE__*/ V.createElement(NIe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ V.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ V.createElement(kIe, {
+ return /*#__PURE__*/ V.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ V.createElement(PIe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ V.createElement(u$, { zIndex: JK.label }, /*#__PURE__*/ V.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ V.createElement(a$, { zIndex: WK.label }, /*#__PURE__*/ V.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ V.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), jIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = yIe(e, vIe), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(""), h = (0, V.useRef)(null);
- (0, V.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => mIe({
+}), IIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = wIe(e, CIe), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(""), h = (0, V.useRef)(null);
+ (0, V.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => yIe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -66158,7 +66158,7 @@ var AIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ V.createElement(u$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(MR, { className: za("recharts-cartesian-axis", a) }, /*#__PURE__*/ V.createElement(wIe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ V.createElement(a$, { zIndex: e.zIndex }, /*#__PURE__*/ V.createElement(jR, { className: za("recharts-cartesian-axis", a) }, /*#__PURE__*/ V.createElement(kIe, {
x: e.x,
y: e.y,
width: r,
@@ -66166,8 +66166,8 @@ var AIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: ER(e)
- }), /*#__PURE__*/ V.createElement(AIe, {
+ otherSvgProps: TR(e)
+ }), /*#__PURE__*/ V.createElement(FIe, {
ref: g,
axisType: c,
events: u,
@@ -66191,32 +66191,32 @@ var AIe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ V.createElement(o1, {
+ }), /*#__PURE__*/ V.createElement(t1, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ V.createElement(m1, {
+ }, /*#__PURE__*/ V.createElement(l1, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), J2 = /*#__PURE__*/ V.forwardRef((e, t) => {
- var n = nB(e, q2);
- return /*#__PURE__*/ V.createElement(jIe, W2({}, n, { ref: t }));
+}), U2 = /*#__PURE__*/ V.forwardRef((e, t) => {
+ var n = tB(e, H2);
+ return /*#__PURE__*/ V.createElement(IIe, z2({}, n, { ref: t }));
});
-J2.displayName = "CartesianAxis";
+U2.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var MIe = [
+var LIe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], NIe = ["offset"], PIe = ["xAxisId", "yAxisId"], FIe = ["xAxisId", "yAxisId"];
-function Y2(e, t) {
+], RIe = ["offset"], zIe = ["xAxisId", "yAxisId"], BIe = ["xAxisId", "yAxisId"];
+function W2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66226,30 +66226,30 @@ function Y2(e, t) {
}
return n;
}
-function X2(e) {
+function G2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Y2(Object(n), !0).forEach(function(t) {
- IIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y2(Object(n)).forEach(function(t) {
+ t % 2 ? W2(Object(n), !0).forEach(function(t) {
+ VIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IIe(e, t, n) {
- return (t = LIe(t)) in e ? Object.defineProperty(e, t, {
+function VIe(e, t, n) {
+ return (t = HIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LIe(e) {
- var t = RIe(e, "string");
+function HIe(e) {
+ var t = UIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RIe(e, t) {
+function UIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66259,25 +66259,25 @@ function RIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Z2() {
- return Z2 = Object.assign ? Object.assign.bind() : function(e) {
+function K2() {
+ return K2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Z2.apply(null, arguments);
+ }, K2.apply(null, arguments);
}
-function Q2(e, t) {
+function q2(e, t) {
if (e == null) return {};
- var n, r, i = zIe(e, t);
+ var n, r, i = WIe(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 zIe(e, t) {
+function WIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66286,7 +66286,7 @@ function zIe(e, t) {
}
return n;
}
-var BIe = (e) => {
+var GIe = (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;
@@ -66302,13 +66302,13 @@ var BIe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function $2(e) {
+function J2(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ V.isValidElement(t)) r = /*#__PURE__*/ V.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 = ER(Q2(n, MIe)) ?? {}, { offset: u } = l, d = Q2(l, NIe);
- r = /*#__PURE__*/ V.createElement("line", Z2({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = TR(q2(n, LIe)) ?? {}, { offset: u } = l, d = q2(l, RIe);
+ r = /*#__PURE__*/ V.createElement("line", K2({}, d, {
x1: i,
y1: a,
x2: o,
@@ -66319,11 +66319,11 @@ function $2(e) {
}
return r;
}
-function VIe(e) {
+function KIe(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 = Q2(e, PIe), c = i.map((e, i) => {
- var a = X2(X2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = q2(e, zIe), c = i.map((e, i) => {
+ var a = G2(G2({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -66331,7 +66331,7 @@ function VIe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ V.createElement($2, {
+ return /*#__PURE__*/ V.createElement(J2, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -66339,11 +66339,11 @@ function VIe(e) {
});
return /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function HIe(e) {
+function qIe(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 = Q2(e, FIe), c = i.map((e, i) => {
- var a = X2(X2({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = q2(e, BIe), c = i.map((e, i) => {
+ var a = G2(G2({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -66351,7 +66351,7 @@ function HIe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ V.createElement($2, {
+ return /*#__PURE__*/ V.createElement(J2, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -66359,7 +66359,7 @@ function HIe(e) {
});
return /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function UIe(e) {
+function JIe(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);
@@ -66382,7 +66382,7 @@ function UIe(e) {
});
return /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function WIe(e) {
+function YIe(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);
@@ -66405,10 +66405,10 @@ function WIe(e) {
});
return /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var GIe = (e, t) => {
+var XIe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return EU(H2(X2(X2(X2({}, q2), n), {}, {
- ticks: DU(n, !0),
+ return SU(L2(G2(G2(G2({}, H2), n), {}, {
+ ticks: CU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -66416,10 +66416,10 @@ var GIe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, KIe = (e, t) => {
+}, ZIe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return EU(H2(X2(X2(X2({}, q2), n), {}, {
- ticks: DU(n, !0),
+ return SU(L2(G2(G2(G2({}, H2), n), {}, {
+ ticks: CU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -66427,7 +66427,7 @@ var GIe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, qIe = {
+}, QIe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -66439,36 +66439,36 @@ var GIe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: JK.grid
+ zIndex: WK.grid
};
-function e4(e) {
- var t = lW(), n = uW(), r = cW(), i = X2(X2({}, nB(e, qIe)), {}, {
+function Y2(e) {
+ var t = aW(), n = oW(), r = iW(), i = G2(G2({}, tB(e, QIe)), {}, {
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 = qU(), h = Q((e) => QZ(e, "xAxis", a, m)), g = Q((e) => QZ(e, "yAxis", o, m));
- if (!xU(l) || !xU(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || GIe, v = i.horizontalCoordinatesGenerator || KIe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = UU(), h = Q((e) => qZ(e, "xAxis", a, m)), g = Q((e) => qZ(e, "yAxis", o, m));
+ if (!_U(l) || !_U(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || XIe, v = i.horizontalCoordinatesGenerator || ZIe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? X2(X2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? G2(G2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- XU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ KU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? X2(X2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? G2(G2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- XU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ KU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ V.createElement(u$, { zIndex: i.zIndex }, /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ V.createElement(BIe, {
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: i.zIndex }, /*#__PURE__*/ V.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ V.createElement(GIe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -66476,22 +66476,22 @@ function e4(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ V.createElement(UIe, Z2({}, i, { horizontalPoints: y })), /*#__PURE__*/ V.createElement(WIe, Z2({}, i, { verticalPoints: b })), /*#__PURE__*/ V.createElement(VIe, Z2({}, i, {
+ }), /*#__PURE__*/ V.createElement(JIe, K2({}, i, { horizontalPoints: y })), /*#__PURE__*/ V.createElement(YIe, K2({}, i, { verticalPoints: b })), /*#__PURE__*/ V.createElement(KIe, K2({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ V.createElement(HIe, Z2({}, i, {
+ })), /*#__PURE__*/ V.createElement(qIe, K2({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-e4.displayName = "CartesianGrid";
+Y2.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var t4 = GH({
+var X2 = VH({
name: "errorBars",
initialState: {},
reducers: {
@@ -66508,17 +66508,17 @@ var t4 = GH({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: JIe, replaceErrorBar: YIe, removeErrorBar: XIe } = t4.actions, ZIe = t4.reducer, QIe = ["children"];
-function $Ie(e, t) {
+}), { addErrorBar: $Ie, replaceErrorBar: eLe, removeErrorBar: tLe } = X2.actions, nLe = X2.reducer, rLe = ["children"];
+function iLe(e, t) {
if (e == null) return {};
- var n, r, i = eLe(e, t);
+ var n, r, i = aLe(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 eLe(e, t) {
+function aLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66527,7 +66527,7 @@ function eLe(e, t) {
}
return n;
}
-var tLe = /*#__PURE__*/ (0, V.createContext)({
+var oLe = /*#__PURE__*/ (0, V.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -66538,22 +66538,22 @@ var tLe = /*#__PURE__*/ (0, V.createContext)({
}),
errorBarOffset: 0
});
-function n4(e) {
- var { children: t } = e, n = $Ie(e, QIe);
- return /*#__PURE__*/ V.createElement(tLe.Provider, { value: n }, t);
+function Z2(e) {
+ var { children: t } = e, n = iLe(e, rLe);
+ return /*#__PURE__*/ V.createElement(oLe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function r4(e, t) {
- var n = Q((t) => VX(t, e)), r = Q((e) => WX(e, t)), i = n?.allowDataOverflow ?? zX.allowDataOverflow, a = r?.allowDataOverflow ?? HX.allowDataOverflow;
+function Q2(e, t) {
+ var n = Q((t) => LX(t, e)), r = Q((e) => BX(e, t)), i = n?.allowDataOverflow ?? FX.allowDataOverflow, a = r?.allowDataOverflow ?? RX.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function i4(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = R0(), { needClipX: a, needClipY: o, needClip: s } = r4(t, n);
+function $2(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = N0(), { needClipX: a, needClipY: o, needClip: s } = Q2(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ V.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ V.createElement("rect", {
@@ -66565,30 +66565,30 @@ function i4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var a4 = (e, t, n, r) => rQ(e, "xAxis", t, r), o4 = (e, t, n, r) => nQ(e, "xAxis", t, r), s4 = (e, t, n, r) => rQ(e, "yAxis", n, r), c4 = (e, t, n, r) => nQ(e, "yAxis", n, r), nLe = $([
- dW,
- a4,
- s4,
- o4,
- c4
-], (e, t, n, r, i) => TU(e, "xAxis") ? FU(t, r, !1) : FU(n, i, !1)), rLe = (e, t, n, r, i) => i;
-function iLe(e) {
+var e4 = (e, t, n, r) => QZ(e, "xAxis", t, r), t4 = (e, t, n, r) => ZZ(e, "xAxis", t, r), n4 = (e, t, n, r) => QZ(e, "yAxis", n, r), r4 = (e, t, n, r) => ZZ(e, "yAxis", n, r), sLe = $([
+ sW,
+ e4,
+ n4,
+ t4,
+ r4
+], (e, t, n, r, i) => xU(e, "xAxis") ? jU(t, r, !1) : jU(n, i, !1)), cLe = (e, t, n, r, i) => i;
+function lLe(e) {
return e.type === "line";
}
-var aLe = $([
- dW,
- a4,
- s4,
- o4,
- c4,
- $([XX, rLe], (e, t) => e.filter(iLe).find((e) => e.id === t)),
- nLe,
- wK
+var uLe = $([
+ sW,
+ e4,
+ n4,
+ t4,
+ r4,
+ $([KX, cLe], (e, t) => e.filter(lLe).find((e) => e.id === t)),
+ sLe,
+ bK
], (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 TLe({
+ if (p != null) return ALe({
layout: e,
xAxis: t,
yAxis: n,
@@ -66602,8 +66602,8 @@ var aLe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function l4(e) {
- var t = DR(e), n = 3, r = 2;
+function i4(e) {
+ var t = ER(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -66618,13 +66618,13 @@ function l4(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var oLe = ["id"], sLe = [
+var dLe = ["id"], fLe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], cLe = [
+], pLe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -66640,16 +66640,16 @@ var oLe = ["id"], sLe = [
"yAxisId",
"id"
];
-function u4() {
- return u4 = Object.assign ? Object.assign.bind() : function(e) {
+function a4() {
+ return a4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, u4.apply(null, arguments);
+ }, a4.apply(null, arguments);
}
-function d4(e, t) {
+function o4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66659,30 +66659,30 @@ function d4(e, t) {
}
return n;
}
-function f4(e) {
+function s4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d4(Object(n), !0).forEach(function(t) {
- lLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d4(Object(n)).forEach(function(t) {
+ t % 2 ? o4(Object(n), !0).forEach(function(t) {
+ mLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lLe(e, t, n) {
- return (t = uLe(t)) in e ? Object.defineProperty(e, t, {
+function mLe(e, t, n) {
+ return (t = hLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uLe(e) {
- var t = dLe(e, "string");
+function hLe(e) {
+ var t = gLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dLe(e, t) {
+function gLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66692,16 +66692,16 @@ function dLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function p4(e, t) {
+function c4(e, t) {
if (e == null) return {};
- var n, r, i = fLe(e, t);
+ var n, r, i = _Le(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 fLe(e, t) {
+function _Le(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66710,27 +66710,27 @@ function fLe(e, t) {
}
return n;
}
-var pLe = (e) => {
+var vLe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: LU(n, t),
+ value: NU(n, t),
payload: e
}];
-}, mLe = /*#__PURE__*/ V.memo((e) => {
+}, yLe = /*#__PURE__*/ V.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: Kz,
+ getPosition: Gz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: LU(o, t),
+ name: NU(o, t),
hide: s,
type: l,
color: r,
@@ -66738,15 +66738,15 @@ var pLe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ V.createElement(w0, { tooltipEntrySettings: d });
-}), m4 = (e, t) => `${t}px ${e}px`;
-function hLe(e, t) {
+ return /*#__PURE__*/ V.createElement(y0, { tooltipEntrySettings: d });
+}), l4 = (e, t) => `${t}px ${e}px`;
+function bLe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var gLe = (e, t, n) => {
+var xLe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return m4(t, e);
+ if (!r) return l4(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -66756,14 +66756,14 @@ var gLe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...hLe(n, i),
+ ...bLe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function _Le(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = ER(p4(r, oLe));
- return /*#__PURE__*/ V.createElement(P0, {
+function SLe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = TR(c4(r, dLe));
+ return /*#__PURE__*/ V.createElement(k0, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -66774,7 +66774,7 @@ function _Le(e) {
clipPathId: t
});
}
-function vLe(e) {
+function CLe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, V.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -66784,7 +66784,7 @@ function vLe(e) {
upperWidth: 0,
height: 0
};
- return f4(f4({}, t), {}, {
+ return s4(s4({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -66792,10 +66792,10 @@ function vLe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ V.createElement(v1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ V.createElement(p1, { value: t ? i : void 0 }, n);
}
-function h4(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 = f4(f4({}, OR(p4(a, sLe))), {}, {
+function u4(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 = s4(s4({}, DR(c4(a, fLe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -66805,34 +66805,34 @@ function h4(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ V.createElement(V.Fragment, null, r?.length > 1 && /*#__PURE__*/ V.createElement(b0, u4({
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, r?.length > 1 && /*#__PURE__*/ V.createElement(h0, a4({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ V.createElement(_Le, {
+ }, d, { pathRef: n })), /*#__PURE__*/ V.createElement(SLe, {
points: r,
clipPathId: t,
props: a
}));
}
-function yLe(e) {
+function wLe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function bLe(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 = eK(o, "recharts-line-"), y = (0, V.useRef)(v), [b, x] = (0, V.useState)(!1), S = !b, C = (0, V.useCallback)(() => {
+function TLe(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 = XG(o, "recharts-line-"), y = (0, V.useRef)(v), [b, x] = (0, V.useState)(!1), S = !b, C = (0, V.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, V.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = yLe(r.current), E = (0, V.useRef)(0);
+ }, [g]), T = wLe(r.current), E = (0, V.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ V.createElement(vLe, {
+ return /*#__PURE__*/ V.createElement(CLe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ V.createElement($G, {
+ }, n.children, /*#__PURE__*/ V.createElement(YG, {
animationId: v,
begin: l,
duration: u,
@@ -66842,26 +66842,26 @@ function bLe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = Vz(D, T + D, e), u = Math.min(l, T), d = c ? s ? gLe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : m4(T, u) : s == null ? void 0 : String(s);
+ var l = Bz(D, T + D, e), u = Math.min(l, T), d = c ? s ? xLe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : l4(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
- return f4(f4({}, t), {}, {
- x: Vz(i.x, t.x, e),
- y: Vz(i.y, t.y, e)
+ return s4(s4({}, t), {}, {
+ x: Bz(i.x, t.x, e),
+ y: Bz(i.y, t.y, e)
});
}
- return f ? f4(f4({}, t), {}, {
- x: Vz(p * 2, t.x, e),
- y: Vz(m / 2, t.y, e)
- }) : f4(f4({}, t), {}, {
+ return f ? s4(s4({}, t), {}, {
+ x: Bz(p * 2, t.x, e),
+ y: Bz(m / 2, t.y, e)
+ }) : s4(s4({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ V.createElement(h4, {
+ return i.current = g, /*#__PURE__*/ V.createElement(u4, {
props: n,
points: g,
clipPathId: t,
@@ -66869,18 +66869,18 @@ function bLe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ V.createElement(h4, {
+ return /*#__PURE__*/ V.createElement(u4, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ V.createElement(x1, { label: n.label }));
+ }), /*#__PURE__*/ V.createElement(g1, { label: n.label }));
}
-function xLe(e) {
+function ELe(e) {
var { clipPathId: t, props: n } = e, r = (0, V.useRef)(null), i = (0, V.useRef)(0), a = (0, V.useRef)(null);
- return /*#__PURE__*/ V.createElement(bLe, {
+ return /*#__PURE__*/ V.createElement(TLe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -66888,17 +66888,17 @@ function xLe(e) {
pathRef: a
});
}
-var SLe = (e, t) => ({
+var DLe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: wU(e.payload, t)
-}), CLe = class extends V.Component {
+ errorVal: bU(e.payload, t)
+}), OLe = class extends V.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = za("recharts-line", r), m = u, { r: h, strokeWidth: g } = l4(t), _ = d0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ V.createElement(u$, { zIndex: f }, /*#__PURE__*/ V.createElement(MR, { className: p }, d && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement(i4, {
+ var p = za("recharts-line", r), m = u, { r: h, strokeWidth: g } = i4(t), _ = o0(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: f }, /*#__PURE__*/ V.createElement(jR, { className: p }, d && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement($2, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -66907,16 +66907,16 @@ var SLe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ V.createElement(n4, {
+ }))), /*#__PURE__*/ V.createElement(Z2, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: SLe,
+ dataPointFormatter: DLe,
errorBarOffset: 0
- }, /*#__PURE__*/ V.createElement(xLe, {
+ }, /*#__PURE__*/ V.createElement(ELe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ V.createElement(V0, {
+ }))), /*#__PURE__*/ V.createElement(I0, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -66924,7 +66924,7 @@ var SLe = (e, t) => ({
clipPath: y
}));
}
-}, g4 = {
+}, d4 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -66941,14 +66941,14 @@ var SLe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: JK.line,
+ zIndex: WK.line,
type: "linear"
};
-function wLe(e) {
- var t = nB(e, g4), { 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 = p4(t, cLe), { needClip: _ } = r4(p, m), v = R0(), y = fW(), b = qU(), x = Q((e) => aLe(e, p, m, b, h));
+function kLe(e) {
+ var t = tB(e, d4), { 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 = c4(t, pLe), { needClip: _ } = Q2(p, m), v = N0(), y = cW(), b = UU(), x = Q((e) => uLe(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__*/ V.createElement(CLe, u4({}, g, {
+ return /*#__PURE__*/ V.createElement(OLe, a4({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -66972,23 +66972,23 @@ function wLe(e) {
needClip: _
}));
}
-function TLe(e) {
+function ALe(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 = wU(e, o);
+ var l = bU(e, o);
if (t === "horizontal") return {
- x: AU({
+ x: EU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (Uz(l) ? null : r.scale.map(l)) ?? null,
+ y: (Hz(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = Uz(l) ? null : n.scale.map(l), d = AU({
+ var u = Hz(l) ? null : n.scale.map(l), d = EU({
axis: r,
ticks: a,
bandSize: s,
@@ -67003,12 +67003,12 @@ function TLe(e) {
};
}).filter(Boolean);
}
-function ELe(e) {
- var t = nB(e, g4), n = qU();
- return /*#__PURE__*/ V.createElement(D0, {
+function jLe(e) {
+ var t = tB(e, d4), n = UU();
+ return /*#__PURE__*/ V.createElement(S0, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(T0, { legendPayload: pLe(t) }), /*#__PURE__*/ V.createElement(mLe, {
+ }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(b0, { legendPayload: vLe(t) }), /*#__PURE__*/ V.createElement(yLe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -67019,7 +67019,7 @@ function ELe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ V.createElement(k0, {
+ }), /*#__PURE__*/ V.createElement(w0, {
type: "line",
id: e,
data: t.data,
@@ -67029,50 +67029,50 @@ function ELe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ V.createElement(wLe, u4({}, t, { id: e }))));
+ }), /*#__PURE__*/ V.createElement(kLe, a4({}, t, { id: e }))));
}
-var _4 = /*#__PURE__*/ V.memo(ELe, uG);
-_4.displayName = "Line";
+var f4 = /*#__PURE__*/ V.memo(jLe, oG);
+f4.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function v4(e, t) {
+function p4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function y4(e, t) {
+function m4(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var b4 = (e, t, n) => rQ(e, "xAxis", v4(e, t), n), x4 = (e, t, n) => nQ(e, "xAxis", v4(e, t), n), S4 = (e, t, n) => rQ(e, "yAxis", y4(e, t), n), C4 = (e, t, n) => nQ(e, "yAxis", y4(e, t), n), DLe = $([
- dW,
- b4,
- S4,
- x4,
- C4
-], (e, t, n, r, i) => TU(e, "xAxis") ? FU(t, r, !1) : FU(n, i, !1)), w4 = $([XX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), T4 = (e) => TU(dW(e), "xAxis") ? "yAxis" : "xAxis", OLe = (e, t) => T4(e) === "yAxis" ? y4(e, t) : v4(e, t), kLe = $([
- dW,
- b4,
- S4,
- x4,
- C4,
- $([w4, (e, t, n) => mZ(e, T4(e), OLe(e, t), n)], (e, t) => {
+var h4 = (e, t, n) => QZ(e, "xAxis", p4(e, t), n), g4 = (e, t, n) => ZZ(e, "xAxis", p4(e, t), n), _4 = (e, t, n) => QZ(e, "yAxis", m4(e, t), n), v4 = (e, t, n) => ZZ(e, "yAxis", m4(e, t), n), MLe = $([
+ sW,
+ h4,
+ _4,
+ g4,
+ v4
+], (e, t, n, r, i) => xU(e, "xAxis") ? jU(t, r, !1) : jU(n, i, !1)), y4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), b4 = (e) => xU(sW(e), "xAxis") ? "yAxis" : "xAxis", NLe = (e, t) => b4(e) === "yAxis" ? m4(e, t) : p4(e, t), PLe = $([
+ sW,
+ h4,
+ _4,
+ g4,
+ v4,
+ $([y4, (e, t, n) => lZ(e, b4(e), NLe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = mq(e);
+ var { stackId: n } = e, r = uq(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- TK,
- DLe,
- w4,
- JTe
+ xK,
+ MLe,
+ y4,
+ QTe
], (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 YLe({
+ if (m != null) return eRe({
layout: e,
xAxis: t,
yAxis: n,
@@ -67086,7 +67086,7 @@ var b4 = (e, t, n) => rQ(e, "xAxis", v4(e, t), n), x4 = (e, t, n) => nQ(e, "xAxi
bandSize: s
});
}
-}), ALe = ["id"], jLe = [
+}), FLe = ["id"], ILe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -67102,25 +67102,25 @@ var b4 = (e, t, n) => rQ(e, "xAxis", v4(e, t), n), x4 = (e, t, n) => nQ(e, "xAxi
"xAxisId",
"yAxisId"
];
-function E4() {
- return E4 = Object.assign ? Object.assign.bind() : function(e) {
+function x4() {
+ return x4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, E4.apply(null, arguments);
+ }, x4.apply(null, arguments);
}
-function D4(e, t) {
+function S4(e, t) {
if (e == null) return {};
- var n, r, i = MLe(e, t);
+ var n, r, i = LLe(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 MLe(e, t) {
+function LLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67129,7 +67129,7 @@ function MLe(e, t) {
}
return n;
}
-function O4(e, t) {
+function C4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67139,30 +67139,30 @@ function O4(e, t) {
}
return n;
}
-function k4(e) {
+function w4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O4(Object(n), !0).forEach(function(t) {
- NLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
+ t % 2 ? C4(Object(n), !0).forEach(function(t) {
+ RLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NLe(e, t, n) {
- return (t = PLe(t)) in e ? Object.defineProperty(e, t, {
+function RLe(e, t, n) {
+ return (t = zLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PLe(e) {
- var t = FLe(e, "string");
+function zLe(e) {
+ var t = BLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FLe(e, t) {
+function BLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67172,42 +67172,42 @@ function FLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function A4(e, t) {
+function T4(e, t) {
return e && e !== "none" ? e : t;
}
-var ILe = (e) => {
+var VLe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: A4(r, i),
- value: LU(n, t),
+ color: T4(r, i),
+ value: NU(n, t),
payload: e
}];
-}, LLe = /*#__PURE__*/ V.memo((e) => {
+}, HLe = /*#__PURE__*/ V.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: Kz,
+ getPosition: Gz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: LU(o, t),
+ name: NU(o, t),
hide: s,
type: l,
- color: A4(r, a),
+ color: T4(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ V.createElement(w0, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ V.createElement(y0, { tooltipEntrySettings: d });
});
-function RLe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = ER(r);
- return /*#__PURE__*/ V.createElement(P0, {
+function ULe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = TR(r);
+ return /*#__PURE__*/ V.createElement(k0, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -67218,7 +67218,7 @@ function RLe(e) {
clipPathId: t
});
}
-function zLe(e) {
+function WLe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -67228,7 +67228,7 @@ function zLe(e) {
upperWidth: 0,
height: 0
};
- return k4(k4({}, t), {}, {
+ return w4(w4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -67236,11 +67236,11 @@ function zLe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ V.createElement(v1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ V.createElement(p1, { value: t ? i : void 0 }, n);
}
-function j4(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 = D4(a, ALe), p = ER(f), m = OR(f);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, t?.length > 1 && /*#__PURE__*/ V.createElement(MR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ V.createElement(FG, E4({}, m, {
+function E4(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 = S4(a, FLe), p = TR(f), m = DR(f);
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, t?.length > 1 && /*#__PURE__*/ V.createElement(jR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ V.createElement(jG, x4({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -67249,29 +67249,29 @@ function j4(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ V.createElement(FG, E4({}, p, {
+ })), c !== "none" && /*#__PURE__*/ V.createElement(jG, x4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ V.createElement(FG, E4({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ V.createElement(jG, x4({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ V.createElement(RLe, {
+ }))), /*#__PURE__*/ V.createElement(ULe, {
points: t,
props: f,
clipPathId: i
}));
}
-function BLe(e) {
+function GLe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!bU(a) || !bU(o)) return null;
+ if (!gU(a) || !gU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ V.createElement("rect", {
x: 0,
@@ -67280,9 +67280,9 @@ function BLe(e) {
height: Math.floor(s)
}) : null;
}
-function VLe(e) {
+function KLe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!bU(a) || !bU(o)) return null;
+ if (!gU(a) || !gU(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ V.createElement("rect", {
x: a < o ? a : a - s,
@@ -67291,35 +67291,35 @@ function VLe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function HLe(e) {
+function qLe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ V.createElement(BLe, {
+ return n === "vertical" ? /*#__PURE__*/ V.createElement(GLe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ V.createElement(VLe, {
+ }) : /*#__PURE__*/ V.createElement(KLe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function ULe(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 = eK((0, V.useMemo)(() => ({
+function JLe(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 = XG((0, V.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = pW(), [g, _] = (0, V.useState)(!1), v = !g, y = (0, V.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = lW(), [g, _] = (0, V.useState)(!1), v = !g, y = (0, V.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, V.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ V.createElement(zLe, {
+ return /*#__PURE__*/ V.createElement(WLe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ V.createElement($G, {
+ }, r.children, /*#__PURE__*/ V.createElement(YG, {
animationId: m,
begin: l,
duration: u,
@@ -67334,24 +67334,24 @@ function ULe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return k4(k4({}, t), {}, {
- x: Vz(i.x, t.x, e),
- y: Vz(i.y, t.y, e)
+ return w4(w4({}, t), {}, {
+ x: Bz(i.x, t.x, e),
+ y: Bz(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? Vz(S, s, e) : Uz(s) || Fz(s) ? Vz(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? Bz(S, s, e) : Hz(s) || Pz(s) ? Bz(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return k4(k4({}, t), {}, {
- x: Vz(i.x, t.x, e),
- y: Vz(i.y, t.y, e)
+ return w4(w4({}, t), {}, {
+ x: Bz(i.x, t.x, e),
+ y: Bz(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ V.createElement(j4, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ V.createElement(E4, {
points: u,
baseLine: d,
needClip: t,
@@ -67359,24 +67359,24 @@ function ULe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ V.createElement(MR, null, c && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ V.createElement(HLe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ V.createElement(jR, null, c && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ V.createElement(qLe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ V.createElement(MR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ V.createElement(j4, {
+ }))), /*#__PURE__*/ V.createElement(jR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ V.createElement(E4, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ V.createElement(x1, { label: r.label }));
+ }), /*#__PURE__*/ V.createElement(g1, { label: r.label }));
}
-function WLe(e) {
+function YLe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, V.useRef)(null), a = (0, V.useRef)();
- return /*#__PURE__*/ V.createElement(ULe, {
+ return /*#__PURE__*/ V.createElement(JLe, {
needClip: t,
clipPathId: n,
props: r,
@@ -67384,12 +67384,12 @@ function WLe(e) {
previousBaselineRef: a
});
}
-var GLe = class extends V.PureComponent {
+var XLe = class extends V.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = za("recharts-area", r), h = d, { r: g, strokeWidth: _ } = l4(t), v = d0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ V.createElement(u$, { zIndex: p }, /*#__PURE__*/ V.createElement(MR, { className: m }, o && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement(i4, {
+ var m = za("recharts-area", r), h = d, { r: g, strokeWidth: _ } = i4(t), v = o0(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: p }, /*#__PURE__*/ V.createElement(jR, { className: m }, o && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement($2, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -67398,25 +67398,25 @@ var GLe = class extends V.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ V.createElement(WLe, {
+ }))), /*#__PURE__*/ V.createElement(YLe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ V.createElement(V0, {
+ })), /*#__PURE__*/ V.createElement(I0, {
points: n,
- mainColor: A4(this.props.stroke, this.props.fill),
+ mainColor: T4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ V.createElement(V0, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ V.createElement(I0, {
points: f,
- mainColor: A4(this.props.stroke, this.props.fill),
+ mainColor: T4(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, KLe = {
+}, ZLe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -67434,13 +67434,13 @@ var GLe = class extends V.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: JK.area
+ zIndex: WK.area
};
-function qLe(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 = D4(e, jLe), g = fW(), _ = QQ(), { needClip: v } = r4(p, m), y = qU(), { points: b, isRange: x, baseLine: S } = Q((t) => kLe(t, e.id, y)) ?? {}, C = R0();
+function QLe(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 = S4(e, ILe), g = cW(), _ = qQ(), { needClip: v } = Q2(p, m), y = UU(), { points: b, isRange: x, baseLine: S } = Q((t) => PLe(t, e.id, y)) ?? {}, C = N0();
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__*/ V.createElement(GLe, E4({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ V.createElement(XLe, x4({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -67466,7 +67466,7 @@ function qLe(e) {
yAxisId: m
}));
}
-var JLe = (e, t, n, r, i) => {
+var $Le = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -67476,17 +67476,17 @@ var JLe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function YLe(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 = JLe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function eRe(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 = $Le(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = wU(e, r);
+ var o = bU(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && wU(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && bU(e, r) == null;
return g ? {
- x: AU({
+ x: EU({
axis: s,
ticks: d,
bandSize: p,
@@ -67498,7 +67498,7 @@ function YLe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: AU({
+ y: EU({
axis: c,
ticks: f,
bandSize: p,
@@ -67526,12 +67526,12 @@ function YLe(e) {
isRange: _
};
}
-function XLe(e) {
- var t = nB(e, KLe), n = qU();
- return /*#__PURE__*/ V.createElement(D0, {
+function tRe(e) {
+ var t = tB(e, ZLe), n = UU();
+ return /*#__PURE__*/ V.createElement(S0, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(T0, { legendPayload: ILe(t) }), /*#__PURE__*/ V.createElement(LLe, {
+ }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(b0, { legendPayload: VLe(t) }), /*#__PURE__*/ V.createElement(HLe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -67542,7 +67542,7 @@ function XLe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ V.createElement(k0, {
+ }), /*#__PURE__*/ V.createElement(w0, {
type: "area",
id: e,
data: t.data,
@@ -67550,115 +67550,115 @@ function XLe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: kU(t.stackId),
+ stackId: TU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ V.createElement(qLe, E4({}, t, { id: e }))));
+ }), /*#__PURE__*/ V.createElement(QLe, x4({}, t, { id: e }))));
}
-var M4 = /*#__PURE__*/ V.memo(XLe, uG);
-M4.displayName = "Area";
+var D4 = /*#__PURE__*/ V.memo(tRe, oG);
+D4.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var ZLe = "Invariant failed";
-function QLe(e, t) {
- if (!e) throw Error(ZLe);
+var nRe = "Invariant failed";
+function rRe(e, t) {
+ if (!e) throw Error(nRe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function N4() {
- return N4 = Object.assign ? Object.assign.bind() : function(e) {
+function O4() {
+ return O4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, N4.apply(null, arguments);
+ }, O4.apply(null, arguments);
}
-function P4(e) {
- return /*#__PURE__*/ V.createElement(b0, N4({
+function k4(e) {
+ return /*#__PURE__*/ V.createElement(h0, O4({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var $Le = function(e) {
+var iRe = 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) || Uz(n);
- return i ? e(n, r) : (!i && QLe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || Hz(n);
+ return i ? e(n, r) : (!i && rRe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, eRe = (e, t, n) => n, F4 = $([XX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), tRe = $([F4], (e) => e?.maxBarSize), nRe = (e, t, n, r) => r, rRe = $([
- dW,
- XX,
- v4,
- y4,
- eRe
-], (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")), iRe = (e, t, n) => {
- var r = dW(e), i = v4(e, t), a = y4(e, t);
- if (i != null && a != null) return r === "horizontal" ? mZ(e, "yAxis", a, n) : mZ(e, "xAxis", i, n);
-}, aRe = $([
- rRe,
- VK,
+}, aRe = (e, t, n) => n, A4 = $([KX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), oRe = $([A4], (e) => e?.maxBarSize), sRe = (e, t, n, r) => r, cRe = $([
+ sW,
+ KX,
+ p4,
+ m4,
+ aRe
+], (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")), lRe = (e, t, n) => {
+ var r = sW(e), i = p4(e, t), a = m4(e, t);
+ if (i != null && a != null) return r === "horizontal" ? lZ(e, "yAxis", a, n) : lZ(e, "xAxis", i, n);
+}, uRe = $([
+ cRe,
+ LK,
(e, t) => {
- var n = dW(e), r = v4(e, t), i = y4(e, t);
- if (r != null && i != null) return n === "horizontal" ? YZ(e, "xAxis", r) : YZ(e, "yAxis", i);
+ var n = sW(e), r = p4(e, t), i = m4(e, t);
+ if (r != null && i != null) return n === "horizontal" ? WZ(e, "xAxis", r) : WZ(e, "yAxis", i);
}
-], r2), oRe = (e, t, n) => {
- var r = F4(e, t);
+], Q0), dRe = (e, t, n) => {
+ var r = A4(e, t);
if (r == null) return 0;
- var i = v4(e, t), a = y4(e, t);
+ var i = p4(e, t), a = m4(e, t);
if (i == null || a == null) return 0;
- var o = dW(e), s = RK(e), { maxBarSize: c } = r, l = Uz(c) ? s : c, u, d;
- return o === "horizontal" ? (u = rQ(e, "xAxis", i, n), d = nQ(e, "xAxis", i, n)) : (u = rQ(e, "yAxis", a, n), d = nQ(e, "yAxis", a, n)), FU(u, d, !0) ?? l ?? 0;
-}, I4 = (e, t, n) => {
- var r = dW(e), i = v4(e, t), a = y4(e, t);
+ var o = sW(e), s = PK(e), { maxBarSize: c } = r, l = Hz(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = QZ(e, "xAxis", i, n), d = ZZ(e, "xAxis", i, n)) : (u = QZ(e, "yAxis", a, n), d = ZZ(e, "yAxis", a, n)), jU(u, d, !0) ?? l ?? 0;
+}, j4 = (e, t, n) => {
+ var r = sW(e), i = p4(e, t), a = m4(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = rQ(e, "xAxis", i, n), s = nQ(e, "xAxis", i, n)) : (o = rQ(e, "yAxis", a, n), s = nQ(e, "yAxis", a, n)), FU(o, s);
+ return r === "horizontal" ? (o = QZ(e, "xAxis", i, n), s = ZZ(e, "xAxis", i, n)) : (o = QZ(e, "yAxis", a, n), s = ZZ(e, "yAxis", a, n)), jU(o, s);
}
-}, sRe = $([
- GU,
- KU,
+}, fRe = $([
+ VU,
+ HU,
(e, t, n) => {
- var r = v4(e, t);
- if (r != null) return rQ(e, "xAxis", r, n);
+ var r = p4(e, t);
+ if (r != null) return QZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = y4(e, t);
- if (r != null) return rQ(e, "yAxis", r, n);
+ var r = m4(e, t);
+ if (r != null) return QZ(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = v4(e, t);
- if (r != null) return nQ(e, "xAxis", r, n);
+ var r = p4(e, t);
+ if (r != null) return ZZ(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = y4(e, t);
- if (r != null) return nQ(e, "yAxis", r, n);
+ var r = m4(e, t);
+ if (r != null) return ZZ(e, "yAxis", r, n);
},
$([$([
- aRe,
- RK,
- zK,
- BK,
- oRe,
- I4,
- tRe
- ], o2), F4], c2),
- dW,
- TK,
- I4,
- $([iRe, F4], s2),
- F4,
- nRe
+ uRe,
+ PK,
+ FK,
+ IK,
+ dRe,
+ j4,
+ oRe
+ ], t2), A4], r2),
+ sW,
+ xK,
+ j4,
+ $([lRe, A4], n2),
+ A4,
+ sRe
], (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 FRe({
+ if (_ != null) return BRe({
layout: s,
barSettings: d,
pos: o,
@@ -67675,26 +67675,26 @@ var $Le = function(e) {
dataStartIndex: m
});
}
-}), cRe = ["index"];
-function L4() {
- return L4 = Object.assign ? Object.assign.bind() : function(e) {
+}), pRe = ["index"];
+function M4() {
+ return M4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, L4.apply(null, arguments);
+ }, M4.apply(null, arguments);
}
-function lRe(e, t) {
+function mRe(e, t) {
if (e == null) return {};
- var n, r, i = uRe(e, t);
+ var n, r, i = hRe(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 uRe(e, t) {
+function hRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67703,45 +67703,45 @@ function uRe(e, t) {
}
return n;
}
-var R4 = /*#__PURE__*/ (0, V.createContext)(void 0), dRe = (e) => {
- var t = (0, V.useContext)(R4);
+var N4 = /*#__PURE__*/ (0, V.createContext)(void 0), gRe = (e) => {
+ var t = (0, V.useContext)(N4);
if (t != null) return t.stackId;
- if (e != null) return kU(e);
-}, fRe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, pRe = (e) => {
- var t = (0, V.useContext)(R4);
+ if (e != null) return TU(e);
+}, _Re = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, vRe = (e) => {
+ var t = (0, V.useContext)(N4);
if (t != null) {
var { stackId: n } = t;
- return `url(#${fRe(n, e)})`;
+ return `url(#${_Re(n, e)})`;
}
-}, z4 = (e) => {
- var { index: t } = e, n = lRe(e, cRe), r = pRe(t);
- return /*#__PURE__*/ V.createElement(MR, L4({
+}, P4 = (e) => {
+ var { index: t } = e, n = mRe(e, pRe), r = vRe(t);
+ return /*#__PURE__*/ V.createElement(jR, M4({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, mRe = [
+}, yRe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], hRe = [
+], bRe = [
"value",
"background",
"tooltipPosition"
-], gRe = ["id"], _Re = [
+], xRe = ["id"], SRe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function B4() {
- return B4 = Object.assign ? Object.assign.bind() : function(e) {
+function F4() {
+ return F4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, B4.apply(null, arguments);
+ }, F4.apply(null, arguments);
}
-function V4(e, t) {
+function I4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67751,30 +67751,30 @@ function V4(e, t) {
}
return n;
}
-function H4(e) {
+function L4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? V4(Object(n), !0).forEach(function(t) {
- vRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {
+ t % 2 ? I4(Object(n), !0).forEach(function(t) {
+ CRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vRe(e, t, n) {
- return (t = yRe(t)) in e ? Object.defineProperty(e, t, {
+function CRe(e, t, n) {
+ return (t = wRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yRe(e) {
- var t = bRe(e, "string");
+function wRe(e) {
+ var t = TRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bRe(e, t) {
+function TRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67784,16 +67784,16 @@ function bRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function U4(e, t) {
+function R4(e, t) {
if (e == null) return {};
- var n, r, i = xRe(e, t);
+ var n, r, i = ERe(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 xRe(e, t) {
+function ERe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67802,27 +67802,27 @@ function xRe(e, t) {
}
return n;
}
-var SRe = (e) => {
+var DRe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: LU(n, t),
+ value: NU(n, t),
payload: e
}];
-}, CRe = /*#__PURE__*/ V.memo((e) => {
+}, ORe = /*#__PURE__*/ V.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: Kz,
+ getPosition: Gz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: LU(a, t),
+ name: NU(a, t),
hide: o,
type: c,
color: i,
@@ -67830,19 +67830,19 @@ var SRe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ V.createElement(w0, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ V.createElement(y0, { tooltipEntrySettings: u });
});
-function wRe(e) {
- var t = Q(UQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = U4(a, mRe), u = x0(o, r, a.id), d = S0(s), f = C0(c, r, a.id);
+function kRe(e) {
+ var t = Q(RQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = R4(a, yRe), u = g0(o, r, a.id), d = _0(s), f = v0(c, r, a.id);
if (!i || n == null) return null;
- var p = DR(i);
- return /*#__PURE__*/ V.createElement(u$, { zIndex: x2(i, JK.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = U4(e, hRe);
+ var p = ER(i);
+ return /*#__PURE__*/ V.createElement(a$, { zIndex: g2(i, WK.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = R4(e, bRe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = H4(H4(H4(H4(H4({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = L4(L4(L4(L4(L4({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), eB(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), $z(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -67850,10 +67850,10 @@ function wRe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ V.createElement(P4, B4({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ V.createElement(k4, F4({ key: `background-bar-${n}` }, _));
}));
}
-function TRe(e) {
+function ARe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -67863,7 +67863,7 @@ function TRe(e) {
upperWidth: e.width,
height: e.height
};
- return H4(H4({}, t), {}, {
+ return L4(L4({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -67871,10 +67871,10 @@ function TRe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ V.createElement(v1, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ V.createElement(p1, { value: t ? i : void 0 }, n);
}
-function ERe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(UQ), c = Q(GQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, V.useState)(!1), [f, p] = (0, V.useState)(!1);
+function jRe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(RQ), c = Q(BQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, V.useState)(!1), [f, p] = (0, V.useState)(!1);
(0, V.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -67885,42 +67885,42 @@ function ERe(e) {
}, [l]);
var m = (0, V.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ V.createElement(P4, B4({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ V.createElement(k4, F4({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ V.createElement(u$, { zIndex: JK.activeBar }, /*#__PURE__*/ V.createElement(z4, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ V.createElement(a$, { zIndex: WK.activeBar }, /*#__PURE__*/ V.createElement(P4, { index: i.originalDataIndex }, v)) : v;
}
-function DRe(e) {
+function MRe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ V.createElement(P4, B4({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ V.createElement(k4, F4({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function ORe(e) {
- var { data: t, props: n } = e, r = ER(n) ?? {}, { id: i } = r, a = U4(r, gRe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = U4(n, _Re), p = x0(l, s, i), m = S0(d), h = C0(u, s, i);
- return t ? /*#__PURE__*/ V.createElement(V.Fragment, null, t.map((e, t) => /*#__PURE__*/ V.createElement(z4, B4({
+function NRe(e) {
+ var { data: t, props: n } = e, r = TR(n) ?? {}, { id: i } = r, a = R4(r, xRe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = R4(n, SRe), p = g0(l, s, i), m = _0(d), h = v0(u, s, i);
+ return t ? /*#__PURE__*/ V.createElement(V.Fragment, null, t.map((e, t) => /*#__PURE__*/ V.createElement(P4, F4({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, eB(f, e, t), {
+ }, $z(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ V.createElement(ERe, {
+ }), c ? /*#__PURE__*/ V.createElement(jRe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ V.createElement(DRe, {
+ }) : /*#__PURE__*/ V.createElement(MRe, {
shape: o,
baseProps: a,
entry: e,
@@ -67928,16 +67928,16 @@ function ORe(e) {
dataKey: s
})))) : null;
}
-function kRe(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 = eK(t, "recharts-bar-"), [p, m] = (0, V.useState)(!1), h = !p, g = (0, V.useCallback)(() => {
+function PRe(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 = XG(t, "recharts-bar-"), [p, m] = (0, V.useState)(!1), h = !p, g = (0, V.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, V.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ V.createElement(TRe, {
+ return /*#__PURE__*/ V.createElement(ARe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ V.createElement($G, {
+ }, /*#__PURE__*/ V.createElement(YG, {
animationId: f,
begin: o,
duration: s,
@@ -67949,69 +67949,69 @@ function kRe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return H4(H4({}, t), {}, {
- x: Vz(r.x, t.x, e),
- y: Vz(r.y, t.y, e),
- width: Vz(r.width, t.width, e),
- height: Vz(r.height, t.height, e)
+ if (r) return L4(L4({}, t), {}, {
+ x: Bz(r.x, t.x, e),
+ y: Bz(r.y, t.y, e),
+ width: Bz(r.width, t.width, e),
+ height: Bz(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = Vz(0, t.height, e), o = Vz(t.stackedBarStart, t.y, e);
- return H4(H4({}, t), {}, {
+ var a = Bz(0, t.height, e), o = Bz(t.stackedBarStart, t.y, e);
+ return L4(L4({}, t), {}, {
y: o,
height: a
});
}
- var s = Vz(0, t.width, e), c = Vz(t.stackedBarStart, t.x, e);
- return H4(H4({}, t), {}, {
+ var s = Bz(0, t.width, e), c = Bz(t.stackedBarStart, t.x, e);
+ return L4(L4({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ V.createElement(MR, null, /*#__PURE__*/ V.createElement(ORe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ V.createElement(jR, null, /*#__PURE__*/ V.createElement(NRe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ V.createElement(x1, { label: t.label }), t.children);
+ }), /*#__PURE__*/ V.createElement(g1, { label: t.label }), t.children);
}
-function ARe(e) {
+function FRe(e) {
var t = (0, V.useRef)(null);
- return /*#__PURE__*/ V.createElement(kRe, {
+ return /*#__PURE__*/ V.createElement(PRe, {
previousRectanglesRef: t,
props: e
});
}
-var W4 = 0, jRe = (e, t) => {
+var z4 = 0, IRe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: wU(e, t)
+ errorVal: bU(e, t)
};
-}, MRe = class extends V.PureComponent {
+}, LRe = class extends V.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = za("recharts-bar", r), u = c;
- return /*#__PURE__*/ V.createElement(MR, {
+ return /*#__PURE__*/ V.createElement(jR, {
className: l,
id: c
- }, o && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement(i4, {
+ }, o && /*#__PURE__*/ V.createElement("defs", null, /*#__PURE__*/ V.createElement($2, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ V.createElement(MR, {
+ })), /*#__PURE__*/ V.createElement(jR, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ V.createElement(wRe, {
+ }, /*#__PURE__*/ V.createElement(kRe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ V.createElement(ARe, this.props)));
+ }), /*#__PURE__*/ V.createElement(FRe, this.props)));
}
-}, NRe = {
+}, RRe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -68021,22 +68021,22 @@ var W4 = 0, jRe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: W4,
+ minPointSize: z4,
xAxisId: 0,
yAxisId: 0,
- zIndex: JK.bar
+ zIndex: WK.bar
};
-function PRe(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 } = r4(t, n), f = fW(), p = qU(), m = u0(e.children, D$), h = Q((t) => sRe(t, e.id, p, m));
+function zRe(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 } = Q2(t, n), f = cW(), p = UU(), m = a0(e.children, S$), h = Q((t) => fRe(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__*/ V.createElement(n4, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ V.createElement(Z2, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: jRe,
+ dataPointFormatter: IRe,
errorBarOffset: g
- }, /*#__PURE__*/ V.createElement(MRe, B4({}, e, {
+ }, /*#__PURE__*/ V.createElement(LRe, F4({}, e, {
layout: f,
needClip: d,
data: h,
@@ -68052,20 +68052,20 @@ function PRe(e) {
isAnimationActive: u
})));
}
-function FRe(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 = MU({ numericAxis: _ }), b = _.scale.map(y);
+function BRe(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 = OU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = OU(E, v);
- } else _ = wU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = $Le(r, W4)(_[1], f);
+ _ = wU(E, v);
+ } else _ = bU(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = iRe(r, z4)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = jU({
+ x = DU({
axis: s,
ticks: l,
bandSize: o,
@@ -68074,19 +68074,19 @@ function FRe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = Fz(A) ? 0 : A, T = {
+ if (w = Pz(A) ? 0 : A, T = {
x,
y: p.top,
width: C,
height: p.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = Pz(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = Nz(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = jU({
+ if (x = M, S = DU({
axis: c,
ticks: u,
bandSize: o,
@@ -68099,11 +68099,11 @@ function FRe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = Pz(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = Nz(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : H4(H4({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : L4(L4({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -68121,12 +68121,12 @@ function FRe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function IRe(e) {
- var t = nB(e, NRe), n = dRe(t.stackId), r = qU();
- return /*#__PURE__*/ V.createElement(D0, {
+function VRe(e) {
+ var t = tB(e, RRe), n = gRe(t.stackId), r = UU();
+ return /*#__PURE__*/ V.createElement(S0, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(T0, { legendPayload: SRe(t) }), /*#__PURE__*/ V.createElement(CRe, {
+ }, (e) => /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(b0, { legendPayload: DRe(t) }), /*#__PURE__*/ V.createElement(ORe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -68136,7 +68136,7 @@ function IRe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ V.createElement(k0, {
+ }), /*#__PURE__*/ V.createElement(w0, {
type: "bar",
id: e,
data: void 0,
@@ -68151,23 +68151,23 @@ function IRe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ V.createElement(u$, { zIndex: t.zIndex }, /*#__PURE__*/ V.createElement(PRe, B4({}, t, { id: e })))));
+ }), /*#__PURE__*/ V.createElement(a$, { zIndex: t.zIndex }, /*#__PURE__*/ V.createElement(zRe, F4({}, t, { id: e })))));
}
-var G4 = /*#__PURE__*/ V.memo(IRe, uG);
-G4.displayName = "Bar";
+var B4 = /*#__PURE__*/ V.memo(VRe, oG);
+B4.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var LRe = ["domain", "range"], RRe = ["domain", "range"];
-function K4(e, t) {
+var HRe = ["domain", "range"], URe = ["domain", "range"];
+function V4(e, t) {
if (e == null) return {};
- var n, r, i = zRe(e, t);
+ var n, r, i = WRe(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 zRe(e, t) {
+function WRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68176,31 +68176,31 @@ function zRe(e, t) {
}
return n;
}
-function q4(e, t) {
+function H4(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function J4(e, t) {
+function U4(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = K4(e, LRe), { domain: a, range: o } = t, s = K4(t, RRe);
- return !q4(n, a) || !q4(r, o) ? !1 : uG(i, s);
+ var { domain: n, range: r } = e, i = V4(e, HRe), { domain: a, range: o } = t, s = V4(t, URe);
+ return !H4(n, a) || !H4(r, o) ? !1 : oG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var BRe = ["type"], VRe = [
+var GRe = ["type"], KRe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], HRe = ["id", "scale"];
-function Y4() {
- return Y4 = Object.assign ? Object.assign.bind() : function(e) {
+], qRe = ["id", "scale"];
+function W4() {
+ return W4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Y4.apply(null, arguments);
+ }, W4.apply(null, arguments);
}
-function X4(e, t) {
+function G4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68210,30 +68210,30 @@ function X4(e, t) {
}
return n;
}
-function Z4(e) {
+function K4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X4(Object(n), !0).forEach(function(t) {
- URe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X4(Object(n)).forEach(function(t) {
+ t % 2 ? G4(Object(n), !0).forEach(function(t) {
+ JRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function URe(e, t, n) {
- return (t = WRe(t)) in e ? Object.defineProperty(e, t, {
+function JRe(e, t, n) {
+ return (t = YRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WRe(e) {
- var t = GRe(e, "string");
+function YRe(e) {
+ var t = XRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GRe(e, t) {
+function XRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68243,16 +68243,16 @@ function GRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Q4(e, t) {
+function q4(e, t) {
if (e == null) return {};
- var n, r, i = KRe(e, t);
+ var n, r, i = ZRe(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 KRe(e, t) {
+function ZRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68261,24 +68261,24 @@ function KRe(e, t) {
}
return n;
}
-function qRe(e) {
- var t = NB(), n = (0, V.useRef)(null), r = pW(), { type: i } = e, a = Q4(e, BRe), o = QK(r, "xAxis", i), s = (0, V.useMemo)(() => {
- if (o != null) return Z4(Z4({}, a), {}, { type: o });
+function QRe(e) {
+ var t = kB(), n = (0, V.useRef)(null), r = lW(), { type: i } = e, a = q4(e, GRe), o = JK(r, "xAxis", i), s = (0, V.useMemo)(() => {
+ if (o != null) return K4(K4({}, a), {}, { type: o });
}, [a, o]);
return (0, V.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(lPe(s)) : n.current !== s && t(uPe({
+ s != null && (n.current === null ? t(mPe(s)) : n.current !== s && t(hPe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, V.useLayoutEffect)(() => () => {
- n.current &&= (t(dPe(n.current)), null);
+ n.current &&= (t(gPe(n.current)), null);
}, [t]), null;
}
-var JRe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(KU), i = qU(), a = "xAxis", o = Q((e) => eQ(e, a, t, i)), s = Q((e) => qZ(e, t)), c = Q((e) => hke(e, t)), l = Q((e) => BX(e, t));
+var $Re = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(HU), i = UU(), a = "xAxis", o = Q((e) => YZ(e, a, t, i)), s = Q((e) => HZ(e, t)), c = Q((e) => bke(e, t)), l = Q((e) => IX(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = Q4(e, VRe), { id: m, scale: h } = l, g = Q4(l, HRe);
- return /*#__PURE__*/ V.createElement(J2, Y4({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = q4(e, KRe), { id: m, scale: h } = l, g = q4(l, qRe);
+ return /*#__PURE__*/ V.createElement(U2, W4({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -68289,33 +68289,33 @@ var JRe = (e) => {
axisType: a,
axisId: t
}));
-}, YRe = {
- allowDataOverflow: zX.allowDataOverflow,
- allowDecimals: zX.allowDecimals,
- allowDuplicatedCategory: zX.allowDuplicatedCategory,
- angle: zX.angle,
- axisLine: q2.axisLine,
- height: zX.height,
+}, eze = {
+ allowDataOverflow: FX.allowDataOverflow,
+ allowDecimals: FX.allowDecimals,
+ allowDuplicatedCategory: FX.allowDuplicatedCategory,
+ angle: FX.angle,
+ axisLine: H2.axisLine,
+ height: FX.height,
hide: !1,
- includeHidden: zX.includeHidden,
- interval: zX.interval,
+ includeHidden: FX.includeHidden,
+ interval: FX.interval,
label: !1,
- minTickGap: zX.minTickGap,
- mirror: zX.mirror,
- orientation: zX.orientation,
- padding: zX.padding,
- reversed: zX.reversed,
- scale: zX.scale,
- tick: zX.tick,
- tickCount: zX.tickCount,
- tickLine: q2.tickLine,
- tickSize: q2.tickSize,
- type: zX.type,
- niceTicks: zX.niceTicks,
+ minTickGap: FX.minTickGap,
+ mirror: FX.mirror,
+ orientation: FX.orientation,
+ padding: FX.padding,
+ reversed: FX.reversed,
+ scale: FX.scale,
+ tick: FX.tick,
+ tickCount: FX.tickCount,
+ tickLine: H2.tickLine,
+ tickSize: H2.tickSize,
+ type: FX.type,
+ niceTicks: FX.niceTicks,
xAxisId: 0
-}, $4 = /*#__PURE__*/ V.memo((e) => {
- var t = nB(e, YRe);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(qRe, {
+}, J4 = /*#__PURE__*/ V.memo((e) => {
+ var t = tB(e, eze);
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(QRe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -68341,26 +68341,26 @@ var JRe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ V.createElement(JRe, t));
-}, J4);
-$4.displayName = "XAxis";
+ }), /*#__PURE__*/ V.createElement($Re, t));
+}, U4);
+J4.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var XRe = ["type"], ZRe = [
+var tze = ["type"], nze = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], QRe = ["id", "scale"];
-function e3() {
- return e3 = Object.assign ? Object.assign.bind() : function(e) {
+], rze = ["id", "scale"];
+function Y4() {
+ return Y4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, e3.apply(null, arguments);
+ }, Y4.apply(null, arguments);
}
-function t3(e, t) {
+function X4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68370,30 +68370,30 @@ function t3(e, t) {
}
return n;
}
-function n3(e) {
+function Z4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? t3(Object(n), !0).forEach(function(t) {
- $Re(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t3(Object(n)).forEach(function(t) {
+ t % 2 ? X4(Object(n), !0).forEach(function(t) {
+ ize(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Re(e, t, n) {
- return (t = eze(t)) in e ? Object.defineProperty(e, t, {
+function ize(e, t, n) {
+ return (t = aze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eze(e) {
- var t = tze(e, "string");
+function aze(e) {
+ var t = oze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tze(e, t) {
+function oze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68403,16 +68403,16 @@ function tze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function r3(e, t) {
+function Q4(e, t) {
if (e == null) return {};
- var n, r, i = nze(e, t);
+ var n, r, i = sze(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 nze(e, t) {
+function sze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68421,27 +68421,27 @@ function nze(e, t) {
}
return n;
}
-function rze(e) {
- var t = NB(), n = (0, V.useRef)(null), r = pW(), { type: i } = e, a = r3(e, XRe), o = QK(r, "yAxis", i), s = (0, V.useMemo)(() => {
- if (o != null) return n3(n3({}, a), {}, { type: o });
+function cze(e) {
+ var t = kB(), n = (0, V.useRef)(null), r = lW(), { type: i } = e, a = Q4(e, tze), o = JK(r, "yAxis", i), s = (0, V.useMemo)(() => {
+ if (o != null) return Z4(Z4({}, a), {}, { type: o });
}, [o, a]);
return (0, V.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(fPe(s)) : n.current !== s && t(pPe({
+ s != null && (n.current === null ? t(_Pe(s)) : n.current !== s && t(vPe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, V.useLayoutEffect)(() => () => {
- n.current &&= (t(mPe(n.current)), null);
+ n.current &&= (t(yPe(n.current)), null);
}, [t]), null;
}
-function ize(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = Q(KU), c = qU(), l = NB(), u = "yAxis", d = Q((e) => JZ(e, t)), f = Q((e) => gke(e, t)), p = Q((e) => eQ(e, u, t, c)), m = Q((e) => UX(e, t));
+function lze(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = Q(HU), c = UU(), l = kB(), u = "yAxis", d = Q((e) => UZ(e, t)), f = Q((e) => xke(e, t)), p = Q((e) => YZ(e, u, t, c)), m = Q((e) => zX(e, t));
if ((0, V.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || u1(i) || /*#__PURE__*/ (0, V.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || a1(i) || /*#__PURE__*/ (0, V.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(vPe({
+ Math.round(d.width) !== Math.round(n) && l(CPe({
id: t,
width: n
}));
@@ -68456,8 +68456,8 @@ function ize(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = r3(e, ZRe), { id: y, scale: b } = m, x = r3(m, QRe);
- return /*#__PURE__*/ V.createElement(J2, e3({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Q4(e, nze), { id: y, scale: b } = m, x = Q4(m, rze);
+ return /*#__PURE__*/ V.createElement(U2, Y4({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -68472,33 +68472,33 @@ function ize(e) {
axisId: t
}));
}
-var aze = {
- allowDataOverflow: HX.allowDataOverflow,
- allowDecimals: HX.allowDecimals,
- allowDuplicatedCategory: HX.allowDuplicatedCategory,
- angle: HX.angle,
- axisLine: q2.axisLine,
+var uze = {
+ allowDataOverflow: RX.allowDataOverflow,
+ allowDecimals: RX.allowDecimals,
+ allowDuplicatedCategory: RX.allowDuplicatedCategory,
+ angle: RX.angle,
+ axisLine: H2.axisLine,
hide: !1,
- includeHidden: HX.includeHidden,
- interval: HX.interval,
+ includeHidden: RX.includeHidden,
+ interval: RX.interval,
label: !1,
- minTickGap: HX.minTickGap,
- mirror: HX.mirror,
- orientation: HX.orientation,
- padding: HX.padding,
- reversed: HX.reversed,
- scale: HX.scale,
- tick: HX.tick,
- tickCount: HX.tickCount,
- tickLine: q2.tickLine,
- tickSize: q2.tickSize,
- type: HX.type,
- niceTicks: HX.niceTicks,
- width: HX.width,
+ minTickGap: RX.minTickGap,
+ mirror: RX.mirror,
+ orientation: RX.orientation,
+ padding: RX.padding,
+ reversed: RX.reversed,
+ scale: RX.scale,
+ tick: RX.tick,
+ tickCount: RX.tickCount,
+ tickLine: H2.tickLine,
+ tickSize: H2.tickSize,
+ type: RX.type,
+ niceTicks: RX.niceTicks,
+ width: RX.width,
yAxisId: 0
-}, i3 = /*#__PURE__*/ V.memo((e) => {
- var t = nB(e, aze);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(rze, {
+}, $4 = /*#__PURE__*/ V.memo((e) => {
+ var t = tB(e, uze);
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(cze, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -68524,27 +68524,27 @@ var aze = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ V.createElement(ize, t));
-}, J4);
-i3.displayName = "YAxis";
-var a3 = $([
+ }), /*#__PURE__*/ V.createElement(lze, t));
+}, U4);
+$4.displayName = "YAxis";
+var e3 = $([
(e, t) => t,
- dW,
- dq,
- yq,
- IQ,
- RQ,
- fAe,
- GU
-], yAe);
+ sW,
+ sq,
+ hq,
+ jQ,
+ NQ,
+ _Ae,
+ VU
+], wAe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function oze(e) {
+function dze(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function o3(e) {
+function t3(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (oze(e)) {
+ if (dze(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 {
@@ -68559,55 +68559,55 @@ function o3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var s3 = IH("mouseClick"), c3 = gU();
-c3.startListening({
- actionCreator: s3,
+var n3 = MH("mouseClick"), r3 = fU();
+r3.startListening({
+ actionCreator: n3,
effect: (e, t) => {
- var n = e.payload, r = a3(t.getState(), o3(n));
- r?.activeIndex != null && t.dispatch(Eke({
+ var n = e.payload, r = e3(t.getState(), t3(n));
+ r?.activeIndex != null && t.dispatch(jke({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var l3 = IH("mouseMove"), u3 = gU(), d3 = null, f3 = null, p3 = null;
-u3.startListening({
- actionCreator: l3,
+var i3 = MH("mouseMove"), a3 = fU(), o3 = null, s3 = null, c3 = null;
+a3.startListening({
+ actionCreator: i3,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- d3 !== null && (cancelAnimationFrame(d3), d3 = null), f3 !== null && (typeof r != "number" || !a) && (clearTimeout(f3), f3 = null), p3 = o3(n);
+ o3 !== null && (cancelAnimationFrame(o3), o3 = null), s3 !== null && (typeof r != "number" || !a) && (clearTimeout(s3), s3 = null), c3 = t3(n);
var o = () => {
- var e = t.getState(), n = sQ(e, e.tooltip.settings.shared);
- if (!p3) {
- d3 = null, f3 = null;
+ var e = t.getState(), n = nQ(e, e.tooltip.settings.shared);
+ if (!c3) {
+ o3 = null, s3 = null;
return;
}
if (n === "axis") {
- var r = a3(e, p3);
- r?.activeIndex == null ? t.dispatch(fQ()) : t.dispatch(pQ({
+ var r = e3(e, c3);
+ r?.activeIndex == null ? t.dispatch(sQ()) : t.dispatch(cQ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- d3 = null, f3 = null;
+ o3 = null, s3 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? d3 = requestAnimationFrame(o) : typeof r == "number" && f3 === null && (f3 = setTimeout(o, r));
+ r === "raf" ? o3 = requestAnimationFrame(o) : typeof r == "number" && s3 === null && (s3 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function sze(e, t) {
+function fze(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var m3 = {
+var l3 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -68619,70 +68619,70 @@ var m3 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, h3 = GH({
+}, u3 = VH({
name: "rootProps",
- initialState: m3,
+ initialState: l3,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? m3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? l3.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;
} }
-}), cze = h3.reducer, { updateOptions: lze } = h3.actions, g3 = GH({
+}), pze = u3.reducer, { updateOptions: mze } = u3.actions, d3 = VH({
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: uze } = g3.actions, dze = g3.reducer, _3 = IH("keyDown"), v3 = IH("focus"), y3 = IH("blur"), b3 = gU(), x3 = null, S3 = null, C3 = null;
-b3.startListening({
- actionCreator: _3,
+}), { updatePolarOptions: hze } = d3.actions, gze = d3.reducer, f3 = MH("keyDown"), p3 = MH("focus"), m3 = MH("blur"), h3 = fU(), g3 = null, _3 = null, v3 = null;
+h3.startListening({
+ actionCreator: f3,
effect: (e, t) => {
- C3 = e.payload, x3 !== null && (cancelAnimationFrame(x3), x3 = null);
+ v3 = e.payload, g3 !== null && (cancelAnimationFrame(g3), g3 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- S3 !== null && (typeof n != "number" || !i) && (clearTimeout(S3), S3 = null);
+ _3 !== null && (typeof n != "number" || !i) && (clearTimeout(_3), _3 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = C3;
+ var { keyboardInteraction: n } = e.tooltip, r = v3;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = yQ(n, AQ(e), dZ(e), PQ(e)), a = i == null ? -1 : Number(i);
+ var i = mQ(n, TQ(e), sZ(e), kQ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = RQ(e);
+ var o = NQ(e);
if (r === "Enter") {
- var s = a$(e, "axis", "hover", String(n.index));
- t.dispatch(hQ({
+ var s = e$(e, "axis", "hover", String(n.index));
+ t.dispatch(uQ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = _ke(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = Ske(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = a$(e, "axis", "hover", String(l));
- t.dispatch(hQ({
+ var u = e$(e, "axis", "hover", String(l));
+ t.dispatch(uQ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- x3 = null, S3 = null;
+ g3 = null, _3 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? x3 = requestAnimationFrame(a) : typeof n == "number" && S3 === null && (a(), C3 = null, S3 = setTimeout(() => {
- C3 ? a() : (S3 = null, x3 = null);
+ n === "raf" ? g3 = requestAnimationFrame(a) : typeof n == "number" && _3 === null && (a(), v3 = null, _3 = setTimeout(() => {
+ v3 ? a() : (_3 = null, g3 = null);
}, n));
}
-}), b3.startListening({
- actionCreator: v3,
+}), h3.startListening({
+ actionCreator: p3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = a$(n, "axis", "hover", String(i));
- t.dispatch(hQ({
+ var i = "0", a = e$(n, "axis", "hover", String(i));
+ t.dispatch(uQ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -68690,13 +68690,13 @@ b3.startListening({
}
}
}
-}), b3.startListening({
- actionCreator: y3,
+}), h3.startListening({
+ actionCreator: m3,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(hQ({
+ r.active && t.dispatch(uQ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -68706,7 +68706,7 @@ b3.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function w3(e) {
+function y3(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -68717,36 +68717,36 @@ function w3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var T3 = IH("externalEvent"), E3 = gU(), D3 = /* @__PURE__ */ new Map(), O3 = /* @__PURE__ */ new Map(), k3 = /* @__PURE__ */ new Map();
-E3.startListening({
- actionCreator: T3,
+var b3 = MH("externalEvent"), x3 = fU(), S3 = /* @__PURE__ */ new Map(), C3 = /* @__PURE__ */ new Map(), w3 = /* @__PURE__ */ new Map();
+x3.startListening({
+ actionCreator: b3,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = w3(r);
- k3.set(i, {
+ var i = r.type, a = y3(r);
+ w3.set(i, {
handler: n,
reactEvent: a
});
- var o = D3.get(i);
- o !== void 0 && (cancelAnimationFrame(o), D3.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = O3.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), O3.delete(i));
+ var o = S3.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), S3.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = C3.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), C3.delete(i));
var f = () => {
- var e = k3.get(i);
+ var e = w3.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Qke(a),
- activeDataKey: GQ(a),
- activeIndex: UQ(a),
- activeLabel: WQ(a),
- activeTooltipIndex: UQ(a),
- isTooltipActive: $ke(a)
+ activeCoordinate: rAe(a),
+ activeDataKey: BQ(a),
+ activeIndex: RQ(a),
+ activeLabel: zQ(a),
+ activeTooltipIndex: RQ(a),
+ isTooltipActive: iAe(a)
};
n && n(o, r);
} finally {
- D3.delete(i), O3.delete(i), k3.delete(i);
+ S3.delete(i), C3.delete(i), w3.delete(i);
}
};
if (!u) {
@@ -68755,19 +68755,19 @@ E3.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- D3.set(i, p);
+ S3.set(i, p);
} else if (typeof s == "number") {
- if (!O3.has(i)) {
+ if (!C3.has(i)) {
f();
var m = setTimeout(f, s);
- O3.set(i, m);
+ C3.set(i, m);
}
} else f();
}
}
});
-var fze = $([
- $([CQ], (e) => e.tooltipItemPayloads),
+var _ze = $([
+ $([vQ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -68778,65 +68778,65 @@ var fze = $([
if (i != null) return i(t);
}
}
-}), A3 = IH("touchMove"), j3 = gU(), M3 = null, N3 = null, P3 = null, F3 = null;
-j3.startListening({
- actionCreator: A3,
+}), T3 = MH("touchMove"), E3 = fU(), D3 = null, O3 = null, k3 = null, A3 = null;
+E3.startListening({
+ actionCreator: T3,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- F3 = w3(n);
+ A3 = y3(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- M3 !== null && (cancelAnimationFrame(M3), M3 = null), N3 !== null && (typeof r != "number" || !a) && (clearTimeout(N3), N3 = null), P3 = Array.from(n.touches).map((e) => o3({
+ D3 !== null && (cancelAnimationFrame(D3), D3 = null), O3 !== null && (typeof r != "number" || !a) && (clearTimeout(O3), O3 = null), k3 = Array.from(n.touches).map((e) => t3({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (F3 != null) {
- var e = t.getState(), n = sQ(e, e.tooltip.settings.shared);
+ if (A3 != null) {
+ var e = t.getState(), n = nQ(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = P3?.[0];
+ var r = k3?.[0];
if (r == null) {
- M3 = null, N3 = null;
+ D3 = null, O3 = null;
return;
}
- var i = a3(e, r);
- i?.activeIndex != null && t.dispatch(pQ({
+ var i = e3(e, r);
+ i?.activeIndex != null && t.dispatch(cQ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = F3.touches[0];
+ var a = A3.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(KSe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = kQ(e).find((e) => e.id === c);
+ var s = o.getAttribute(XSe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = wQ(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = fze(e, s, c);
- t.dispatch(dQ({
+ var { dataKey: u } = l, d = _ze(e, s, c);
+ t.dispatch(oQ({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- M3 = null, N3 = null;
+ D3 = null, O3 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? M3 = requestAnimationFrame(o) : typeof r == "number" && N3 === null && (o(), F3 = null, N3 = setTimeout(() => {
- F3 ? o() : (N3 = null, M3 = null);
+ r === "raf" ? D3 = requestAnimationFrame(o) : typeof r == "number" && O3 === null && (o(), A3 = null, O3 = setTimeout(() => {
+ A3 ? o() : (O3 = null, D3 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var I3 = {
+var j3 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -68845,33 +68845,33 @@ var I3 = {
"scroll",
"wheel"
]
-}, L3 = GH({
+}, M3 = VH({
name: "eventSettings",
- initialState: I3,
+ initialState: j3,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = nG(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = QW(t.payload.throttledEvents));
} }
-}), { setEventSettings: pze } = L3.actions, mze = L3.reducer, hze = yV({
- brush: MFe,
- cartesianAxis: yPe,
- chartData: KAe,
- errorBars: ZIe,
- eventSettings: mze,
- graphicalItems: YNe,
- layout: NSe,
- legend: jCe,
- options: VAe,
- polarAxis: zMe,
- polarOptions: dze,
- referenceElements: UFe,
- renderedTicks: _Ie,
- rootProps: cze,
- tooltip: Dke,
- zIndex: MAe
-}), gze = function(e) {
+}), { setEventSettings: vze } = M3.actions, yze = M3.reducer, bze = hV({
+ brush: LFe,
+ cartesianAxis: wPe,
+ chartData: ZAe,
+ errorBars: nLe,
+ eventSettings: yze,
+ graphicalItems: ePe,
+ layout: LSe,
+ legend: FCe,
+ options: KAe,
+ polarAxis: WMe,
+ polarOptions: gze,
+ referenceElements: JFe,
+ renderedTicks: SIe,
+ rootProps: pze,
+ tooltip: Mke,
+ zIndex: LAe
+}), xze = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return aSe({
- reducer: hze,
+ return lSe({
+ reducer: bze,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -68881,40 +68881,40 @@ var I3 = {
"production"
].includes("es6")
}).concat([
- c3.middleware,
- u3.middleware,
- b3.middleware,
- E3.middleware,
- j3.middleware
+ r3.middleware,
+ a3.middleware,
+ h3.middleware,
+ x3.middleware,
+ E3.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(UH({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(zH({ type: "raf" }));
},
- devTools: xG.devToolsEnabled && {
- serialize: { replacer: sze },
+ devTools: _G.devToolsEnabled && {
+ serialize: { replacer: fze },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function R3(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = qU(), a = (0, V.useRef)(null);
+function N3(e) {
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = UU(), a = (0, V.useRef)(null);
if (i) return n;
- a.current ??= gze(t, r);
- var o = AB;
- return /*#__PURE__*/ V.createElement(GCe, {
+ a.current ??= xze(t, r);
+ var o = DB;
+ return /*#__PURE__*/ V.createElement(YCe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function _ze(e) {
- var { layout: t, margin: n } = e, r = NB(), i = qU();
+function Sze(e) {
+ var { layout: t, margin: n } = e, r = kB(), i = UU();
return (0, V.useEffect)(() => {
- i || (r(ASe(t)), r(kSe(n)));
+ i || (r(PSe(t)), r(NSe(n)));
}, [
r,
i,
@@ -68922,31 +68922,31 @@ function _ze(e) {
n
]), null;
}
-var z3 = /*#__PURE__*/ (0, V.memo)(_ze, uG);
+var P3 = /*#__PURE__*/ (0, V.memo)(Sze, oG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function B3(e) {
- var t = NB();
+function F3(e) {
+ var t = kB();
return (0, V.useEffect)(() => {
- t(lze(e));
+ t(mze(e));
}, [t, e]), null;
}
-var V3 = /*#__PURE__*/ (0, V.memo)((e) => {
- var t = NB();
+var I3 = /*#__PURE__*/ (0, V.memo)((e) => {
+ var t = kB();
return (0, V.useEffect)(() => {
- t(pze(e));
+ t(vze(e));
}, [t, e]), null;
-}, uG);
+}, oG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function H3(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, V.useRef)(null), i = NB();
- return (0, V.useLayoutEffect)(() => (r.current && i(AAe({
+function L3(e) {
+ var { zIndex: t, isPanorama: n } = e, r = (0, V.useRef)(null), i = kB();
+ return (0, V.useLayoutEffect)(() => (r.current && i(FAe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(jAe({
+ i(IAe({
zIndex: t,
isPanorama: n
}));
@@ -68960,15 +68960,15 @@ function H3(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function U3(e) {
- var { children: t, isPanorama: n } = e, r = Q(xAe);
+function R3(e) {
+ var { children: t, isPanorama: n } = e, r = Q(EAe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, i.map((e) => /*#__PURE__*/ V.createElement(H3, {
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, i.map((e) => /*#__PURE__*/ V.createElement(L3, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ V.createElement(H3, {
+ })), t, a.map((e) => /*#__PURE__*/ V.createElement(L3, {
key: e,
zIndex: e,
isPanorama: n
@@ -68976,17 +68976,17 @@ function U3(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var vze = ["children"];
-function yze(e, t) {
+var Cze = ["children"];
+function wze(e, t) {
if (e == null) return {};
- var n, r, i = bze(e, t);
+ var n, r, i = Tze(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 bze(e, t) {
+function Tze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68995,55 +68995,55 @@ function bze(e, t) {
}
return n;
}
-function W3() {
- return W3 = Object.assign ? Object.assign.bind() : function(e) {
+function z3() {
+ return z3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, W3.apply(null, arguments);
+ }, z3.apply(null, arguments);
}
-var xze = {
+var Eze = {
width: "100%",
height: "100%",
display: "block"
-}, Sze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var n = lW(), r = uW(), i = TG();
- if (!xU(n) || !xU(r)) return null;
+}, Dze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var n = aW(), r = oW(), i = xG();
+ if (!_U(n) || !_U(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ V.createElement(AR, W3({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ V.createElement(kR, z3({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: xze,
+ style: Eze,
ref: t
}), a);
-}), Cze = (e) => {
- var { children: t } = e, n = Q(YU);
+}), Oze = (e) => {
+ var { children: t } = e, n = Q(GU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ V.createElement(AR, {
+ return /*#__PURE__*/ V.createElement(kR, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, G3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var { children: n } = e, r = yze(e, vze);
- return qU() ? /*#__PURE__*/ V.createElement(Cze, null, /*#__PURE__*/ V.createElement(U3, { isPanorama: !0 }, n)) : /*#__PURE__*/ V.createElement(Sze, W3({ ref: t }, r), /*#__PURE__*/ V.createElement(U3, { isPanorama: !1 }, n));
+}, B3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var { children: n } = e, r = wze(e, Cze);
+ return UU() ? /*#__PURE__*/ V.createElement(Oze, null, /*#__PURE__*/ V.createElement(R3, { isPanorama: !0 }, n)) : /*#__PURE__*/ V.createElement(Dze, z3({ ref: t }, r), /*#__PURE__*/ V.createElement(R3, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function wze() {
- var e = NB(), [t, n] = (0, V.useState)(null), r = Q(GSe);
+function kze() {
+ var e = kB(), [t, n] = (0, V.useState)(null), r = Q(YSe);
return (0, V.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- bU(n) && n !== r && e(MSe(n));
+ gU(n) && n !== r && e(ISe(n));
}
}, [
t,
@@ -69053,7 +69053,7 @@ function wze() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function K3(e, t) {
+function V3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69063,30 +69063,30 @@ function K3(e, t) {
}
return n;
}
-function Tze(e) {
+function Aze(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? K3(Object(n), !0).forEach(function(t) {
- Eze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {
+ t % 2 ? V3(Object(n), !0).forEach(function(t) {
+ jze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Eze(e, t, n) {
- return (t = Dze(t)) in e ? Object.defineProperty(e, t, {
+function jze(e, t, n) {
+ return (t = Mze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dze(e) {
- var t = Oze(e, "string");
+function Mze(e) {
+ var t = Nze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oze(e, t) {
+function Nze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69096,17 +69096,17 @@ function Oze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function q3() {
- return q3 = Object.assign ? Object.assign.bind() : function(e) {
+function H3() {
+ return H3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, q3.apply(null, arguments);
+ }, H3.apply(null, arguments);
}
-var kze = () => (tje(), null);
-function J3(e) {
+var Pze = () => (oje(), null);
+function U3(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -69114,10 +69114,10 @@ function J3(e) {
}
return 0;
}
-var Aze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+var Fze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
var n = (0, V.useRef)(null), [r, i] = (0, V.useState)({
- containerWidth: J3(e.style?.width),
- containerHeight: J3(e.style?.height)
+ containerWidth: U3(e.style?.width),
+ containerHeight: U3(e.style?.height)
}), a = (0, V.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -69142,14 +69142,14 @@ var Aze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
}, [t, a]);
return (0, V.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(gW, {
+ }, [a]), /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(fW, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ V.createElement("div", q3({ ref: o }, e)));
-}), jze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ V.createElement("div", H3({ ref: o }, e)));
+}), Ize = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, V.useState)({
- containerWidth: J3(n),
- containerHeight: J3(r)
+ containerWidth: U3(n),
+ containerHeight: U3(r)
}), o = (0, V.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -69164,32 +69164,32 @@ var Aze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(gW, {
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(fW, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ V.createElement("div", q3({ ref: s }, e)));
-}), Mze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ V.createElement("div", H3({ ref: s }, e)));
+}), Lze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(gW, {
+ return /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(fW, {
width: n,
height: r
- }), /*#__PURE__*/ V.createElement("div", q3({ ref: t }, e)));
-}), Nze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ V.createElement("div", H3({ ref: t }, e)));
+}), Rze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ V.createElement(jze, q3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ V.createElement(Mze, q3({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ V.createElement(Ize, H3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ V.createElement(Lze, H3({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(gW, {
+ })) : /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(fW, {
width: n,
height: r
- }), /*#__PURE__*/ V.createElement("div", q3({ ref: t }, e)));
+ }), /*#__PURE__*/ V.createElement("div", H3({ ref: t }, e)));
});
-function Pze(e) {
- return e ? Aze : Nze;
+function zze(e) {
+ return e ? Fze : Rze;
}
-var Fze = /*#__PURE__*/ (0, V.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, V.useRef)(null), x = NB(), [S, C] = (0, V.useState)(null), [w, T] = (0, V.useState)(null), E = wze(), D = iW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, V.useCallback)((e) => {
+var Bze = /*#__PURE__*/ (0, V.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, V.useRef)(null), x = kB(), [S, C] = (0, V.useState)(null), [w, T] = (0, V.useState)(null), E = kze(), D = eW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, V.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -69197,58 +69197,58 @@ var Fze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
C,
T
]), j = (0, V.useCallback)((e) => {
- x(s3(e)), x(T3({
+ x(n3(e)), x(b3({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, V.useCallback)((e) => {
- x(l3(e)), x(T3({
+ x(i3(e)), x(b3({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, V.useCallback)((e) => {
- x(fQ()), x(T3({
+ x(sQ()), x(b3({
handler: u,
reactEvent: e
}));
}, [x, u]), P = (0, V.useCallback)((e) => {
- x(l3(e)), x(T3({
+ x(i3(e)), x(b3({
handler: d,
reactEvent: e
}));
}, [x, d]), ee = (0, V.useCallback)(() => {
- x(v3());
+ x(p3());
}, [x]), F = (0, V.useCallback)(() => {
- x(y3());
+ x(m3());
}, [x]), I = (0, V.useCallback)((e) => {
- x(_3(e.key));
+ x(f3(e.key));
}, [x]), te = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: o,
reactEvent: e
}));
}, [x, o]), ne = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: s,
reactEvent: e
}));
}, [x, s]), re = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: c,
reactEvent: e
}));
}, [x, c]), ie = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: f,
reactEvent: e
}));
}, [x, f]), ae = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: h,
reactEvent: e
}));
}, [x, h]), oe = (0, V.useCallback)((e) => {
- y && x(A3(e)), x(T3({
+ y && x(T3(e)), x(b3({
handler: m,
reactEvent: e
}));
@@ -69257,16 +69257,16 @@ var Fze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
y,
m
]), se = (0, V.useCallback)((e) => {
- x(T3({
+ x(b3({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = Pze(v);
- return /*#__PURE__*/ V.createElement(m$.Provider, { value: S }, /*#__PURE__*/ V.createElement(NR.Provider, { value: w }, /*#__PURE__*/ V.createElement(ce, {
+ }, [x, p]), ce = zze(v);
+ return /*#__PURE__*/ V.createElement(l$.Provider, { value: S }, /*#__PURE__*/ V.createElement(MR.Provider, { value: w }, /*#__PURE__*/ V.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: za("recharts-wrapper", r),
- style: Tze({
+ style: Aze({
position: "relative",
cursor: "default",
width: O,
@@ -69287,8 +69287,8 @@ var Fze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ V.createElement(kze, null), n)));
-}), Ize = [
+ }, /*#__PURE__*/ V.createElement(Pze, null), n)));
+}), Vze = [
"width",
"height",
"responsive",
@@ -69299,16 +69299,16 @@ var Fze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
"title",
"desc"
];
-function Lze(e, t) {
+function Hze(e, t) {
if (e == null) return {};
- var n, r, i = Rze(e, t);
+ var n, r, i = Uze(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 Rze(e, t) {
+function Uze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69317,16 +69317,16 @@ function Rze(e, t) {
}
return n;
}
-var Y3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = ER(Lze(e, Ize));
- return c ? /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(gW, {
+var W3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = TR(Hze(e, Vze));
+ return c ? /*#__PURE__*/ V.createElement(V.Fragment, null, /*#__PURE__*/ V.createElement(fW, {
width: n,
height: r
- }), /*#__PURE__*/ V.createElement(G3, {
+ }), /*#__PURE__*/ V.createElement(B3, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ V.createElement(Fze, {
+ }, a)) : /*#__PURE__*/ V.createElement(Bze, {
className: o,
style: s,
width: n,
@@ -69343,25 +69343,25 @@ var Y3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ V.createElement(G3, {
+ }, /*#__PURE__*/ V.createElement(B3, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ V.createElement(WFe, null, a)));
+ }, /*#__PURE__*/ V.createElement(YFe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function X3() {
- return X3 = Object.assign ? Object.assign.bind() : function(e) {
+function G3() {
+ return G3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, X3.apply(null, arguments);
+ }, G3.apply(null, arguments);
}
-function Z3(e, t) {
+function K3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69371,30 +69371,30 @@ function Z3(e, t) {
}
return n;
}
-function zze(e) {
+function Wze(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Z3(Object(n), !0).forEach(function(t) {
- Bze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z3(Object(n)).forEach(function(t) {
+ t % 2 ? K3(Object(n), !0).forEach(function(t) {
+ Gze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bze(e, t, n) {
- return (t = Vze(t)) in e ? Object.defineProperty(e, t, {
+function Gze(e, t, n) {
+ return (t = Kze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vze(e) {
- var t = Hze(e, "string");
+function Kze(e) {
+ var t = qze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hze(e, t) {
+function qze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69404,7 +69404,7 @@ function Hze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Uze = zze({
+var Jze = Wze({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -69419,24 +69419,24 @@ var Uze = zze({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, I3), Q3 = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- var n = nB(e.categoricalChartProps, Uze), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, j3), q3 = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ var n = tB(e.categoricalChartProps, Jze), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ V.createElement(R3, {
+ return /*#__PURE__*/ V.createElement(N3, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ V.createElement(k2, { chartData: s.data }), /*#__PURE__*/ V.createElement(z3, {
+ }, /*#__PURE__*/ V.createElement(w2, { chartData: s.data }), /*#__PURE__*/ V.createElement(P3, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ V.createElement(V3, {
+ }), /*#__PURE__*/ V.createElement(I3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ V.createElement(B3, {
+ }), /*#__PURE__*/ V.createElement(F3, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -69448,52 +69448,52 @@ var Uze = zze({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ V.createElement(Y3, X3({}, n, { ref: t })));
-}), Wze = ["axis"], Gze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(Q3, {
+ }), /*#__PURE__*/ V.createElement(W3, G3({}, n, { ref: t })));
+}), Yze = ["axis"], Xze = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(q3, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: Wze,
- tooltipPayloadSearcher: v$,
+ validateTooltipEventTypes: Yze,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
-})), Kze = ["axis", "item"], $3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(Q3, {
+})), Zze = ["axis", "item"], J3 = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(q3, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: Kze,
- tooltipPayloadSearcher: v$,
+ validateTooltipEventTypes: Zze,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function qze(e) {
- var t = NB();
+function Qze(e) {
+ var t = kB();
return (0, V.useEffect)(() => {
- t(uze(e));
+ t(hze(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var Jze = ["layout"];
-function e6() {
- return e6 = Object.assign ? Object.assign.bind() : function(e) {
+var $ze = ["layout"];
+function Y3() {
+ return Y3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, e6.apply(null, arguments);
+ }, Y3.apply(null, arguments);
}
-function Yze(e, t) {
+function eBe(e, t) {
if (e == null) return {};
- var n, r, i = Xze(e, t);
+ var n, r, i = tBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Xze(e, t) {
+function tBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69502,7 +69502,7 @@ function Xze(e, t) {
}
return n;
}
-function t6(e, t) {
+function X3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69512,30 +69512,30 @@ function t6(e, t) {
}
return n;
}
-function Zze(e) {
+function nBe(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) {
- Qze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t6(Object(n)).forEach(function(t) {
+ t % 2 ? X3(Object(n), !0).forEach(function(t) {
+ rBe(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 Qze(e, t, n) {
- return (t = $ze(t)) in e ? Object.defineProperty(e, t, {
+function rBe(e, t, n) {
+ return (t = iBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $ze(e) {
- var t = eBe(e, "string");
+function iBe(e) {
+ var t = aBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eBe(e, t) {
+function aBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69545,7 +69545,7 @@ function eBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var n6 = Zze({
+var Z3 = nBe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -69564,24 +69564,24 @@ var n6 = Zze({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, I3), r6 = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
- var n = nB(e.categoricalChartProps, n6), { layout: r } = n, i = Yze(n, Jze), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, j3), Q3 = /*#__PURE__*/ (0, V.forwardRef)(function(e, t) {
+ var n = tB(e.categoricalChartProps, Z3), { layout: r } = n, i = eBe(n, $ze), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ V.createElement(R3, {
+ return /*#__PURE__*/ V.createElement(N3, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ V.createElement(k2, { chartData: n.data }), /*#__PURE__*/ V.createElement(z3, {
+ }, /*#__PURE__*/ V.createElement(w2, { chartData: n.data }), /*#__PURE__*/ V.createElement(P3, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ V.createElement(V3, {
+ }), /*#__PURE__*/ V.createElement(I3, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ V.createElement(B3, {
+ }), /*#__PURE__*/ V.createElement(F3, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -69593,18 +69593,18 @@ var n6 = Zze({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ V.createElement(qze, {
+ }), /*#__PURE__*/ V.createElement(Qze, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ V.createElement(Y3, e6({}, i, { ref: t })));
+ }), /*#__PURE__*/ V.createElement(W3, Y3({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function i6(e, t) {
+function $3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69614,30 +69614,30 @@ function i6(e, t) {
}
return n;
}
-function a6(e) {
+function e6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i6(Object(n), !0).forEach(function(t) {
- tBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i6(Object(n)).forEach(function(t) {
+ t % 2 ? $3(Object(n), !0).forEach(function(t) {
+ oBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tBe(e, t, n) {
- return (t = nBe(t)) in e ? Object.defineProperty(e, t, {
+function oBe(e, t, n) {
+ return (t = sBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nBe(e) {
- var t = rBe(e, "string");
+function sBe(e) {
+ var t = cBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rBe(e, t) {
+function cBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69647,31 +69647,31 @@ function rBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iBe = ["axis"], aBe = a6(a6({}, n6), {}, {
+var lBe = ["axis"], uBe = e6(e6({}, Z3), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), oBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var n = nB(e, aBe);
- return /*#__PURE__*/ V.createElement(r6, {
+}), dBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var n = tB(e, uBe);
+ return /*#__PURE__*/ V.createElement(Q3, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: iBe,
- tooltipPayloadSearcher: v$,
+ validateTooltipEventTypes: lBe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: n,
ref: t
});
-}), sBe = ["axis"], cBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(Q3, {
+}), fBe = ["axis"], pBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => /*#__PURE__*/ V.createElement(q3, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: sBe,
- tooltipPayloadSearcher: v$,
+ validateTooltipEventTypes: fBe,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function o6(e, t) {
+function t6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69681,30 +69681,30 @@ function o6(e, t) {
}
return n;
}
-function s6(e) {
+function n6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? o6(Object(n), !0).forEach(function(t) {
- lBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o6(Object(n)).forEach(function(t) {
+ t % 2 ? t6(Object(n), !0).forEach(function(t) {
+ mBe(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 lBe(e, t, n) {
- return (t = uBe(t)) in e ? Object.defineProperty(e, t, {
+function mBe(e, t, n) {
+ return (t = hBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uBe(e) {
- var t = dBe(e, "string");
+function hBe(e) {
+ var t = gBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dBe(e, t) {
+function gBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69714,59 +69714,59 @@ function dBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fBe = ["axis", "item"], pBe = s6(s6({}, n6), {}, {
+var _Be = ["axis", "item"], vBe = n6(n6({}, Z3), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), mBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
- var n = nB(e, pBe);
- return /*#__PURE__*/ V.createElement(r6, {
+}), yBe = /*#__PURE__*/ (0, V.forwardRef)((e, t) => {
+ var n = tB(e, vBe);
+ return /*#__PURE__*/ V.createElement(Q3, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: fBe,
- tooltipPayloadSearcher: v$,
+ validateTooltipEventTypes: _Be,
+ tooltipPayloadSearcher: p$,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function c6(...e) {
+function r6(...e) {
return ra(za(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var l6 = {
+var i6 = {
light: "",
dark: ".dark"
-}, u6 = Object.keys(l6);
-function hBe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !u6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${u6.join(", ")}). Received empty object or invalid keys.`);
+}, a6 = Object.keys(i6);
+function bBe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !a6.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${a6.join(", ")}). Received empty object or invalid keys.`);
}
-var d6 = V.createContext(null);
-function f6() {
- let e = V.useContext(d6);
+var o6 = V.createContext(null);
+function s6() {
+ let e = V.useContext(o6);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function p6({ id: e, config: t, initialDimension: n = {
+function c6({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = V.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return hBe(t), /* @__PURE__ */ (0, H.jsx)(d6.Provider, {
+ return bBe(t), /* @__PURE__ */ (0, H.jsx)(o6.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, H.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: c6("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: r6("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, H.jsx)(h6, {
+ /* @__PURE__ */ (0, H.jsx)(u6, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, H.jsx)(aW, {
+ /* @__PURE__ */ (0, H.jsx)(tW, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -69776,7 +69776,7 @@ function p6({ id: e, config: t, initialDimension: n = {
})
});
}
-function m6({ isLoading: e }) {
+function l6({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -69785,7 +69785,7 @@ function m6({ isLoading: e }) {
})
}) : null;
}
-function gBe(e, t) {
+function xBe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -69795,46 +69795,46 @@ function gBe(e, t) {
}
return r;
}
-var h6 = ({ id: e, config: t }) => {
+var u6 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : gBe(r, _6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(l6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : xBe(r, f6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(i6).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, H.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function g6(e, t, n) {
+function d6(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function _6(e) {
+function f6(e) {
if (!e.colors) return 1;
- let t = u6.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = a6.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var _Be = (e = 10, t = 0, n = 70) => {
+var SBe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, vBe = {
+}, CBe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, yBe = {
+}, wBe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function v6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = f6(), g = V.useMemo(() => {
+function p6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = s6(), g = V.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = g6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = d6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("font-medium", c),
+ className: r6("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("font-medium", c),
+ className: r6("font-medium", c),
children: a
}) : null;
}, [
@@ -69849,23 +69849,23 @@ function v6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, H.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: c6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", vBe[p], yBe[m], n),
+ className: r6("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", CBe[p], wBe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, H.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = g6(h, e, n), o = i ? _6(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = d6(h, e, n), o = i ? f6(i) : 1;
return /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: r6("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, H.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("shrink-0 rounded-[2px]", {
+ className: r6("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: bBe(n, o)
+ style: TBe(n, o)
}), /* @__PURE__ */ (0, H.jsxs)("div", {
- className: c6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: r6("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, H.jsx)("span", {
@@ -69882,27 +69882,27 @@ function v6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function bBe(e, t) {
+function TBe(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 y6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, H.jsx)(lje, {
+var m6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, H.jsx)(mje, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function b6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = f6();
+function h6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = s6();
return r?.length ? /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: r6("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = g6(u, e, r), a = o === null || o === r, d = i ? _6(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = d6(u, e, r), a = o === null || o === r, d = i ? f6(i) : 1;
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: c6("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: r6("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, H.jsx)(i.icon, {}) : /* @__PURE__ */ (0, H.jsx)(xBe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, H.jsx)(i.icon, {}) : /* @__PURE__ */ (0, H.jsx)(EBe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -69911,8 +69911,8 @@ function b6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function xBe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = SBe(t, n), i = CBe(t, n);
+function EBe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = DBe(t, n), i = OBe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, H.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -69944,10 +69944,10 @@ function xBe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function SBe(e, t) {
+function DBe(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 CBe(e, t) {
+function OBe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -69962,12 +69962,12 @@ function CBe(e, t) {
...n
};
}
-var x6 = mG, S6 = () => null, C6 = {
+var g6 = uG, _6 = () => null, v6 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function wBe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function kBe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = V.useRef(null), [a, o] = V.useState(!1), s = (0, V.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, V.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -70013,7 +70013,7 @@ function wBe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function TBe({ 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 ABe({ 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 = V.useRef(null), S = V.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = V.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = V.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -70047,7 +70047,7 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = wBe({
+ }, [C, v]), { isDragging: A, bind: j } = kBe({
range: E,
totalPoints: C,
containerRef: x,
@@ -70072,16 +70072,16 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
f,
A
]);
- let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Jk(N), F = Jk(P);
+ let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Sj(N), F = Sj(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = Qk(ee, C6), te = Qk(F, C6), ne = Xk(I, (e) => `${e}%`), re = Xk(te, (e) => `${e}%`), ie = Xk(I, (e) => `${e}%`), ae = Xk(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Jk(`${Math.max(0, P - N)}%`), se = (0, V.useCallback)(() => {
+ let I = Ej(ee, v6), te = Ej(F, v6), ne = wj(I, (e) => `${e}%`), re = wj(te, (e) => `${e}%`), ie = wj(I, (e) => `${e}%`), ae = wj(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Sj(`${Math.max(0, P - N)}%`), se = (0, V.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
te,
oe
]);
- qk(I, "change", se), qk(te, "change", se);
+ xj(I, "change", se), xj(te, "change", se);
let ce = (0, V.useCallback)((t) => {
if (!r) return String(t);
let n = e[t]?.[r];
@@ -70094,16 +70094,16 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, H.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: c6("group relative select-none", o),
+ className: r6("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, H.jsx)(h6, {
+ !b && /* @__PURE__ */ (0, H.jsx)(u6, {
id: w,
config: t
}),
/* @__PURE__ */ (0, H.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, H.jsx)(EBe, {
+ children: /* @__PURE__ */ (0, H.jsx)(jBe, {
data: e,
keys: S,
chartConfig: t,
@@ -70116,15 +70116,15 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
barRadius: u
})
}),
- /* @__PURE__ */ (0, H.jsx)($k.div, {
+ /* @__PURE__ */ (0, H.jsx)(Dj.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 left-0 rounded-l-md backdrop-blur-[2px]",
style: { width: ie }
}),
- /* @__PURE__ */ (0, H.jsx)($k.div, {
+ /* @__PURE__ */ (0, H.jsx)(Dj.div, {
className: "bg-background/70 pointer-events-none absolute inset-y-0 right-0 rounded-r-md backdrop-blur-[2px]",
style: { width: ae }
}),
- /* @__PURE__ */ (0, H.jsx)($k.div, {
+ /* @__PURE__ */ (0, H.jsx)(Dj.div, {
className: "absolute inset-y-0 cursor-grab touch-none rounded-sm border active:cursor-grabbing",
style: {
left: ne,
@@ -70132,13 +70132,13 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, H.jsx)(w6, {
+ /* @__PURE__ */ (0, H.jsx)(y6, {
side: "left",
position: ne,
label: y ? ce(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, H.jsx)(w6, {
+ /* @__PURE__ */ (0, H.jsx)(y6, {
side: "right",
position: re,
label: y ? ce(M.endIndex) : void 0,
@@ -70147,16 +70147,16 @@ function TBe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function w6({ side: e, position: t, label: n, bind: r }) {
+function y6({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
- return /* @__PURE__ */ (0, H.jsxs)($k.div, {
+ return /* @__PURE__ */ (0, H.jsxs)(Dj.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: r6("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: r6("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -70167,15 +70167,15 @@ function w6({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, H.jsx)("div", {
- className: c6("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: r6("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function jBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = V.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: _6(t)
+ colorsCount: f6(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, H.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -70229,10 +70229,10 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, H.jsx)(aW, {
+ if (r === "line") return /* @__PURE__ */ (0, H.jsx)(tW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, H.jsxs)(Gze, {
+ children: /* @__PURE__ */ (0, H.jsxs)(Xze, {
data: e,
margin: {
top: 4,
@@ -70240,7 +70240,7 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(_4, {
+ children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(f4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -70256,10 +70256,10 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, H.jsx)(aW, {
+ return /* @__PURE__ */ (0, H.jsx)(tW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, H.jsxs)($3, {
+ children: /* @__PURE__ */ (0, H.jsxs)(J3, {
data: e,
margin: {
top: 2,
@@ -70269,7 +70269,7 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(G4, {
+ children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(B4, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -70285,10 +70285,10 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, H.jsx)(aW, {
+ return /* @__PURE__ */ (0, H.jsx)(tW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, H.jsxs)(cBe, {
+ children: /* @__PURE__ */ (0, H.jsxs)(pBe, {
data: e,
margin: {
top: 4,
@@ -70296,7 +70296,7 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(M4, {
+ children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(D4, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -70314,7 +70314,7 @@ function EBe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function DBe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function MBe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = V.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -70338,7 +70338,7 @@ function DBe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var OBe = {
+var NBe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, H.jsx)("pattern", {
id: e,
x: "0",
@@ -70510,9 +70510,9 @@ var OBe = {
})
})
};
-function T6({ variant: e }) {
- let t = (0, V.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = OBe[e];
- return /* @__PURE__ */ (0, H.jsxs)(u$, {
+function b6({ variant: e }) {
+ let t = (0, V.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = NBe[e];
+ return /* @__PURE__ */ (0, H.jsxs)(a$, {
zIndex: -1,
children: [/* @__PURE__ */ (0, H.jsxs)("defs", { children: [
/* @__PURE__ */ (0, H.jsx)(a, { id: n }),
@@ -70542,20 +70542,20 @@ function T6({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var E6 = 2, kBe = "loading", ABe = 2e3, jBe = "evil-stacked", MBe = .5, NBe = .05, PBe = [
+var x6 = 2, PBe = "loading", FBe = 2e3, IBe = "evil-stacked", LBe = .5, RBe = .05, zBe = [
0,
.7,
.5,
1
-], D6 = (0, V.createContext)(null);
-function O6() {
- let e = (0, V.use)(D6);
+], S6 = (0, V.createContext)(null);
+function C6() {
+ let e = (0, V.use)(S6);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function k6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = E6, 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, V.useId)().replace(/:/g, ""), [v] = (0, V.useState)(() => Date.now()), [y, b] = (0, V.useState)(f), [x, S] = (0, V.useState)(!1), { loadingData: C, onShimmerExit: w } = $Be(m, h), { visibleData: T, brushProps: E } = DBe({ data: t }), D = (0, V.useMemo)(() => {
- let e = V.Children.toArray(n), t = e.find((e) => (0, V.isValidElement)(e) && e.type === S6), r = (0, V.isValidElement)(t) ? t.props : {};
+function w6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = x6, 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, V.useId)().replace(/:/g, ""), [v] = (0, V.useState)(() => Date.now()), [y, b] = (0, V.useState)(f), [x, S] = (0, V.useState)(!1), { loadingData: C, onShimmerExit: w } = iVe(m, h), { visibleData: T, brushProps: E } = MBe({ data: t }), D = (0, V.useMemo)(() => {
+ let e = V.Children.toArray(n), t = e.find((e) => (0, V.isValidElement)(e) && e.type === _6), r = (0, V.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, V.isValidElement)(t),
@@ -70563,7 +70563,7 @@ function k6({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, V.isValidElement)(e) && e.type === S6))
+ chartChildren: e.filter((e) => !((0, V.isValidElement)(e) && e.type === _6))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, V.useCallback)((e) => {
b(e), p?.(e);
@@ -70592,12 +70592,12 @@ function k6({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, H.jsx)(D6, {
+ return /* @__PURE__ */ (0, H.jsx)(S6, {
value: N,
- children: /* @__PURE__ */ (0, H.jsxs)(p6, {
+ children: /* @__PURE__ */ (0, H.jsxs)(c6, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, H.jsx)(TBe, {
+ footer: O && !m && /* @__PURE__ */ (0, H.jsx)(ABe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -70613,7 +70613,7 @@ function k6({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, H.jsx)(m6, { isLoading: m }), /* @__PURE__ */ (0, H.jsxs)($3, {
+ children: [/* @__PURE__ */ (0, H.jsx)(l6, { isLoading: m }), /* @__PURE__ */ (0, H.jsxs)(J3, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -70625,10 +70625,10 @@ function k6({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, H.jsx)(T6, { variant: d }),
- /* @__PURE__ */ (0, H.jsx)(L2, { color: "white" }),
+ d && /* @__PURE__ */ (0, H.jsx)(b6, { variant: d }),
+ /* @__PURE__ */ (0, H.jsx)(M2, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, H.jsx)(eVe, {
+ m && /* @__PURE__ */ (0, H.jsx)(aVe, {
chartId: _,
onShimmerExit: w
})
@@ -70637,8 +70637,8 @@ function k6({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function FBe({ 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 } = O6(), b = (0, V.useId)().replace(/:/g, ""), x = zue();
+function BBe({ 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 } = C6(), b = (0, V.useId)().replace(/:/g, ""), x = _de();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -70658,65 +70658,65 @@ function FBe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(G4, {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(B4, {
dataKey: e,
- stackId: u ? jBe : void 0,
+ stackId: u ? IBe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, H.jsx)(A6, {
+ shape: (e) => /* @__PURE__ */ (0, H.jsx)(T6, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, H.jsx)(A6, {
+ activeBar: (e) => /* @__PURE__ */ (0, H.jsx)(T6, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, H.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, H.jsx)(WBe, {
+ /* @__PURE__ */ (0, H.jsx)(YBe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, H.jsx)(GBe, {
+ t === "hatched" && /* @__PURE__ */ (0, H.jsx)(XBe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, H.jsx)(qBe, {
+ t === "duotone" && /* @__PURE__ */ (0, H.jsx)(QBe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, H.jsx)(JBe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, H.jsx)($Be, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, H.jsx)(YBe, {
+ t === "gradient" && /* @__PURE__ */ (0, H.jsx)(eVe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, H.jsx)(XBe, {
+ t === "stripped" && /* @__PURE__ */ (0, H.jsx)(tVe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, H.jsx)(KBe, {
+ s && /* @__PURE__ */ (0, H.jsx)(ZBe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, H.jsx)(ZBe, {
+ o && /* @__PURE__ */ (0, H.jsx)(nVe, {
id: b,
dataKey: e
})
] })] });
}
-function IBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = O6();
- return o ? null : /* @__PURE__ */ (0, H.jsx)($4, {
+function VBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = C6();
+ return o ? null : /* @__PURE__ */ (0, H.jsx)(J4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -70725,9 +70725,9 @@ function IBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function LBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = O6();
- return s ? null : /* @__PURE__ */ (0, H.jsx)(i3, {
+function HBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = C6();
+ return s ? null : /* @__PURE__ */ (0, H.jsx)($4, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -70737,33 +70737,33 @@ function LBe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function RBe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = O6();
- return /* @__PURE__ */ (0, H.jsx)(e4, {
+function UBe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = C6();
+ return /* @__PURE__ */ (0, H.jsx)(Y2, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function zBe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = O6();
- return r ? null : /* @__PURE__ */ (0, H.jsx)(y6, {
+function WBe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = C6();
+ return r ? null : /* @__PURE__ */ (0, H.jsx)(m6, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, H.jsx)(v6, {
+ content: /* @__PURE__ */ (0, H.jsx)(p6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function BBe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = O6();
- return /* @__PURE__ */ (0, H.jsx)(x6, {
+function GBe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = C6();
+ return /* @__PURE__ */ (0, H.jsx)(g6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, H.jsx)(b6, {
+ content: /* @__PURE__ */ (0, H.jsx)(h6, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -70771,8 +70771,8 @@ function BBe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var A6 = (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 = VBe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : HBe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = UBe({
+var T6 = (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 = KBe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : qBe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = JBe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -70784,7 +70784,7 @@ var A6 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(cK, {
+ ] : c, A = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(iK, {
x: t,
y: n,
width: r,
@@ -70795,7 +70795,7 @@ var A6 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, H.jsx)(cK, {
+ }), C && /* @__PURE__ */ (0, H.jsx)(iK, {
x: t,
y: n - 4,
width: r,
@@ -70806,10 +70806,10 @@ var A6 = (e) => {
return /* @__PURE__ */ (0, H.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, H.jsx)(cK, {
+ children: [/* @__PURE__ */ (0, H.jsx)(iK, {
...e,
fill: "transparent"
- }), w ? /* @__PURE__ */ (0, H.jsx)($k.g, {
+ }), w ? /* @__PURE__ */ (0, H.jsx)(Dj.g, {
initial: w.initial,
animate: w.animate,
transition: w.transition,
@@ -70817,7 +70817,7 @@ var A6 = (e) => {
children: A
}) : A]
});
-}, VBe = (e, t, n, r, i) => {
+}, KBe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -70832,11 +70832,11 @@ var A6 = (e) => {
break;
default: s = t;
}
- let c = s * NBe * 1e3, l = MBe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * RBe * 1e3, l = LBe * 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: PBe,
+ ease: zBe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -70850,7 +70850,7 @@ var A6 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, HBe = (e, t, n) => {
+}, qBe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -70859,11 +70859,11 @@ var A6 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, UBe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, JBe = ({ 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;
-}, WBe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {});
+}, YBe = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {});
return /* @__PURE__ */ (0, H.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -70884,7 +70884,7 @@ var A6 = (e) => {
}, i);
})
});
-}, GBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+}, XBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -70925,7 +70925,7 @@ var A6 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), KBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+] }), ZBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -70966,8 +70966,8 @@ var A6 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), qBe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {});
+] }), QBe = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {});
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -71034,8 +71034,8 @@ var A6 = (e) => {
})
})
] });
-}, JBe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {});
+}, $Be = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {});
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -71102,7 +71102,7 @@ var A6 = (e) => {
})
})
] });
-}, YBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+}, eVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -71139,7 +71139,7 @@ var A6 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), XBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
+] }), tVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -71176,7 +71176,7 @@ var A6 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), ZBe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)("filter", {
+] }), nVe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -71196,35 +71196,35 @@ var A6 = (e) => {
}),
/* @__PURE__ */ (0, H.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, H.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, H.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), QBe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), rVe = (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 $Be(e, t = 12) {
+function iVe(e, t = 12) {
let [n, r] = (0, V.useState)(!1), i = (0, V.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, V.useMemo)(() => _Be(t, 20, 80), [t, n]),
+ loadingData: (0, V.useMemo)(() => SBe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var eVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(G4, {
- dataKey: kBe,
+var aVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(B4, {
+ dataKey: PBe,
fill: "currentColor",
fillOpacity: .15,
- radius: E6,
+ radius: x6,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)(tVe, {
+}), /* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)(oVe, {
chartId: e,
onShimmerExit: t
-}) })] }), tVe = ({ chartId: e, onShimmerExit: t }) => {
- let n = QBe(), r = (0, V.useRef)(-1);
+}) })] }), oVe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = rVe(), r = (0, V.useRef)(-1);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -71247,7 +71247,7 @@ var eVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fr
height: "1",
x: "0",
y: "0",
- children: /* @__PURE__ */ (0, H.jsx)($k.rect, {
+ children: /* @__PURE__ */ (0, H.jsx)(Dj.rect, {
y: "0",
width: "1",
height: "1",
@@ -71255,7 +71255,7 @@ var eVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: ABe / 1e3,
+ duration: FBe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -71277,11 +71277,11 @@ var eVe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, H.jsxs)(H.Fr
})
] });
};
-k6.Bar = FBe, k6.XAxis = IBe, k6.YAxis = LBe, k6.Grid = RBe, k6.Tooltip = zBe, k6.Legend = BBe, k6.Brush = S6;
+w6.Bar = BBe, w6.XAxis = VBe, w6.YAxis = HBe, w6.Grid = UBe, w6.Tooltip = WBe, w6.Legend = GBe, w6.Brush = _6;
//#endregion
//#region src/react/charts/chart-card.tsx
-var j6 = `${kT({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function M6({ title: e, figure: t, note: n }) {
+var E6 = `${NT({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function D6({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, H.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, H.jsxs)("span", {
@@ -71299,24 +71299,24 @@ function M6({ title: e, figure: t, note: n }) {
})]
});
}
-var N6 = [
+var O6 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], P6 = (e) => ({ light: [e] }), F6 = (e) => `s${e}`;
-function nVe(e) {
- return Object.fromEntries(e.map((e, t) => [F6(t), {
+], k6 = (e) => ({ light: [e] }), A6 = (e) => `s${e}`;
+function sVe(e) {
+ return Object.fromEntries(e.map((e, t) => [A6(t), {
label: e,
- colors: P6(N6[t % N6.length])
+ colors: k6(O6[t % O6.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var I6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function L6({ swatch: e, name: t, value: n }) {
+var j6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function M6({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -71331,33 +71331,33 @@ function L6({ swatch: e, name: t, value: n }) {
})]
});
}
-var R6 = "size-2.5 shrink-0 rounded-xs";
-function rVe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = f6(), s = (t ?? []).filter((e) => e.type !== "none");
+var N6 = "size-2.5 shrink-0 rounded-xs";
+function cVe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = s6(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, H.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: I6,
+ className: j6,
children: [c ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = g6(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, H.jsx)(L6, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = d6(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, H.jsx)(M6, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, H.jsx)("i", {
- className: R6,
+ className: N6,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function z6({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, H.jsx)(y6, {
+function P6({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, H.jsx)(m6, {
cursor: !1,
- content: /* @__PURE__ */ (0, H.jsx)(rVe, {
+ content: /* @__PURE__ */ (0, H.jsx)(cVe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -71366,12 +71366,12 @@ function z6({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var B6 = [0, (e) => e * 1.2], V6 = (e) => ({
+var F6 = [0, (e) => e * 1.2], I6 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function H6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function L6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -71379,53 +71379,53 @@ function H6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, H.jsxs)("section", {
- className: j6,
+ className: E6,
"aria-label": e,
- children: [/* @__PURE__ */ (0, H.jsx)(M6, {
+ children: [/* @__PURE__ */ (0, H.jsx)(D6, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, H.jsxs)(k6, {
+ }), /* @__PURE__ */ (0, H.jsxs)(w6, {
data: o,
config: { value: {
label: n,
- colors: P6(i)
+ colors: k6(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, H.jsx)(k6.Grid, {}),
- c ? /* @__PURE__ */ (0, H.jsx)(k6.YAxis, {
+ /* @__PURE__ */ (0, H.jsx)(w6.Grid, {}),
+ c ? /* @__PURE__ */ (0, H.jsx)(w6.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, H.jsx)(k6.XAxis, {
+ }) : /* @__PURE__ */ (0, H.jsx)(w6.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, H.jsx)(k6.XAxis, {
+ c ? /* @__PURE__ */ (0, H.jsx)(w6.XAxis, {
hide: !0,
- domain: B6
- }) : /* @__PURE__ */ (0, H.jsx)(k6.YAxis, {
+ domain: F6
+ }) : /* @__PURE__ */ (0, H.jsx)(w6.YAxis, {
hide: !0,
- domain: B6
+ domain: F6
}),
- /* @__PURE__ */ (0, H.jsx)(k6.Bar, {
+ /* @__PURE__ */ (0, H.jsx)(w6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: V6(c ? "right" : "top")
+ label: I6(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, H.jsx)(z6, {})
+ /* @__PURE__ */ (0, H.jsx)(P6, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var U6 = [
+var R6 = [
"周一",
"周二",
"周三",
@@ -71433,8 +71433,8 @@ var U6 = [
"周五",
"周六",
"周日"
-], W6 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function iVe(e) {
+], z6 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function lVe(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;
@@ -71444,14 +71444,14 @@ function iVe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${U6[t]} ${n}:00`,
+ label: `${R6[t]} ${n}:00`,
count: e,
- share: W6(e, r)
+ share: z6(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function aVe(e) {
+function uVe(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,
@@ -71469,7 +71469,7 @@ function aVe(e) {
key: r,
label: r,
count: s,
- share: W6(s, o)
+ share: z6(s, o)
};
});
return {
@@ -71481,7 +71481,7 @@ function aVe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var G6 = 14, K6 = 17, q6 = {
+var B6 = 14, V6 = 17, H6 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -71490,42 +71490,42 @@ var G6 = 14, K6 = 17, q6 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, oVe = {
+}, dVe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function sVe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function fVe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${I6} ${oVe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${j6} ${dVe[a]}`,
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, H.jsx)(L6, {
+ }), /* @__PURE__ */ (0, H.jsx)(M6, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, H.jsx)("i", { className: `${R6} ${q6[n].dot}` })
+ swatch: /* @__PURE__ */ (0, H.jsx)("i", { className: `${N6} ${H6[n].dot}` })
})]
});
}
-function J6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, V.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * K6, m = f + a * K6, h = (e) => ({
- x: d + e % i * K6,
- y: f + Math.floor(e / i) * K6
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + G6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function U6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, V.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * V6, m = f + a * V6, h = (e) => ({
+ x: d + e % i * V6,
+ y: f + Math.floor(e / i) * V6
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + B6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + G6 / 2,
- end: _.x + G6
+ center: _.x + B6 / 2,
+ end: _.x + B6
}[y] : 0;
return /* @__PURE__ */ (0, H.jsxs)("section", {
- className: j6,
+ className: E6,
children: [
- /* @__PURE__ */ (0, H.jsx)(M6, {
+ /* @__PURE__ */ (0, H.jsx)(D6, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -71548,19 +71548,19 @@ function J6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: G6,
- height: G6,
+ width: B6,
+ height: B6,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${q6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${H6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, H.jsx)(sVe, {
+ }), g && _ ? /* @__PURE__ */ (0, H.jsx)(fVe, {
cell: g,
series: t.series,
tone: c,
@@ -71576,24 +71576,24 @@ function J6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var cVe = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [U6.map((e, t) => /* @__PURE__ */ (0, H.jsx)("text", {
+var pVe = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [R6.map((e, t) => /* @__PURE__ */ (0, H.jsx)("text", {
x: 0,
- y: 18 + t * K6 + 7,
+ y: 18 + t * V6 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, H.jsx)("text", {
- x: 30 + t * K6,
+ x: 30 + t * V6,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function Y6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = iVe(e), s = aVe(e);
+function W6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = lVe(e), s = uVe(e);
return s.cells.length ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, H.jsx)(J6, {
+ children: [/* @__PURE__ */ (0, H.jsx)(U6, {
title: t,
words: r,
tone: i,
@@ -71601,9 +71601,9 @@ function Y6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: cVe,
+ axis: pVe,
footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, H.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, H.jsx)(J6, {
+ }), /* @__PURE__ */ (0, H.jsx)(U6, {
title: n,
words: r,
tone: i,
@@ -71614,7 +71614,7 @@ function Y6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, H.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, H.jsxs)("section", {
- className: j6,
+ className: E6,
children: [/* @__PURE__ */ (0, H.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -71626,7 +71626,7 @@ function Y6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function X6({ children: e, className: t = "", previewCount: n = 10 }) {
+function G6({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, V.useId)(), i = (0, V.useRef)(null), [a, o] = (0, V.useState)(!1), [s, c] = (0, V.useState)(!1), l = V.Children.toArray(e), u = l.length > n;
(0, V.useLayoutEffect)(() => {
let e = i.current;
@@ -71667,20 +71667,20 @@ function X6({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, H.jsx)(nE, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, H.jsx)(oE, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var lVe = "30%", uVe = "100%", Z6 = 5, Q6 = 14, dVe = 5, $6 = 1500, e8 = (0, V.createContext)(null);
-function t8() {
- let e = (0, V.use)(e8);
+var mVe = "30%", hVe = "100%", K6 = 5, q6 = 14, gVe = 5, J6 = 1500, Y6 = (0, V.createContext)(null);
+function X6() {
+ let e = (0, V.use)(Y6);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function n8({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = lVe, outerRadius: l = uVe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, V.useId)().replace(/:/g, ""), [h, g] = (0, V.useState)(u), _ = vVe(f), v = hVe(o), y = (0, V.useCallback)((e, t) => {
+function Z6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = mVe, outerRadius: l = hVe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, V.useId)().replace(/:/g, ""), [h, g] = (0, V.useState)(u), _ = CVe(f), v = bVe(o), y = (0, V.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -71707,12 +71707,12 @@ function n8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, H.jsx)(e8, {
+ return /* @__PURE__ */ (0, H.jsx)(Y6, {
value: x,
- children: /* @__PURE__ */ (0, H.jsxs)(p6, {
+ children: /* @__PURE__ */ (0, H.jsxs)(c6, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, H.jsx)(m6, { isLoading: f }), /* @__PURE__ */ (0, H.jsxs)(mBe, {
+ children: [/* @__PURE__ */ (0, H.jsx)(l6, { isLoading: f }), /* @__PURE__ */ (0, H.jsxs)(yBe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -71723,16 +71723,16 @@ function n8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, H.jsx)(a0, {
+ s != null && s > 0 && /* @__PURE__ */ (0, H.jsx)(e0, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, H.jsx)(T6, { variant: p }),
+ p && /* @__PURE__ */ (0, H.jsx)(b6, { variant: p }),
r,
- f && /* @__PURE__ */ (0, H.jsx)(yVe, {}),
- /* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)(gVe, {
+ f && /* @__PURE__ */ (0, H.jsx)(wVe, {}),
+ /* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)(xVe, {
config: e,
chartId: m
}) })
@@ -71741,9 +71741,9 @@ function n8({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function fVe({ dataKey: e, cornerRadius: t = Z6, barSize: n = Q6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = t8();
- return s ? null : /* @__PURE__ */ (0, H.jsx)(O2, {
+function _Ve({ dataKey: e, cornerRadius: t = K6, barSize: n = q6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = X6();
+ return s ? null : /* @__PURE__ */ (0, H.jsx)(C2, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -71757,7 +71757,7 @@ function fVe({ dataKey: e, cornerRadius: t = Z6, barSize: n = Q6, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, H.jsx)(yK, {
+ return /* @__PURE__ */ (0, H.jsx)(hK, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -71766,12 +71766,12 @@ function fVe({ dataKey: e, cornerRadius: t = Z6, barSize: n = Q6, showBackground
...a
});
}
-function pVe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = t8();
- return i ? null : /* @__PURE__ */ (0, H.jsx)(y6, {
+function vVe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = X6();
+ return i ? null : /* @__PURE__ */ (0, H.jsx)(m6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, H.jsx)(v6, {
+ content: /* @__PURE__ */ (0, H.jsx)(p6, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -71779,12 +71779,12 @@ function pVe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mVe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = t8();
- return a ? null : /* @__PURE__ */ (0, H.jsx)(x6, {
+function yVe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = X6();
+ return a ? null : /* @__PURE__ */ (0, H.jsx)(g6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, H.jsx)(b6, {
+ content: /* @__PURE__ */ (0, H.jsx)(h6, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -71793,7 +71793,7 @@ function mVe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function hVe(e) {
+function bVe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -71809,8 +71809,8 @@ function hVe(e) {
};
}
}
-var gVe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = _6(n);
+var xVe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, H.jsx)(H.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = f6(n);
return /* @__PURE__ */ (0, H.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -71832,47 +71832,47 @@ var gVe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, H.jsx)(H.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function _Ve() {
- return Array.from({ length: dVe }, (e, t) => ({
+function SVe() {
+ return Array.from({ length: gVe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function vVe(e) {
+function CVe(e) {
let [t, n] = (0, V.useState)(0);
return (0, V.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, $6);
+ }, J6);
return () => clearInterval(t);
- }, [e]), (0, V.useMemo)(() => _Ve(), [t]);
+ }, [e]), (0, V.useMemo)(() => SVe(), [t]);
}
-var yVe = () => /* @__PURE__ */ (0, H.jsx)(O2, {
+var wVe = () => /* @__PURE__ */ (0, H.jsx)(C2, {
dataKey: "value",
- cornerRadius: Z6,
- barSize: Q6,
+ cornerRadius: K6,
+ barSize: q6,
background: !0,
isAnimationActive: !0,
- animationDuration: $6,
+ animationDuration: J6,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, H.jsx)(yK, {
+ shape: (e) => /* @__PURE__ */ (0, H.jsx)(hK, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-n8.RadialBar = fVe, n8.Tooltip = pVe, n8.Legend = mVe;
+Z6.RadialBar = _Ve, Z6.Tooltip = vVe, Z6.Legend = yVe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var bVe = [
+var TVe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], xVe = [
+], EVe = [
"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",
@@ -71880,15 +71880,15 @@ var bVe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function r8({ title: e, rows: t, unit: n = "个视频" }) {
+function Q6({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, V.useState)(-1), [a, o] = (0, V.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: F6(t),
+ slice: A6(t),
value: e.value
}));
return /* @__PURE__ */ (0, H.jsxs)("section", {
- className: j6,
+ className: E6,
children: [
/* @__PURE__ */ (0, H.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -71910,18 +71910,18 @@ function r8({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, H.jsxs)(n8, {
+ children: /* @__PURE__ */ (0, H.jsxs)(Z6, {
data: f,
nameKey: "slice",
- config: nVe(s.map((e) => e.name)),
- max: Nye(s.map((e) => e.value)),
+ config: sVe(s.map((e) => e.name)),
+ max: Pye(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, H.jsx)(n8.RadialBar, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Z6.RadialBar, {
dataKey: "value",
- barSize: Pye(s.length),
+ barSize: Fye(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, H.jsx)(yK, {
+ shape: (e) => /* @__PURE__ */ (0, H.jsx)(hK, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -71929,7 +71929,7 @@ function r8({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, H.jsx)(z6, {
+ }), /* @__PURE__ */ (0, H.jsx)(P6, {
nameKey: "slice",
hideLabel: !0
})]
@@ -71945,13 +71945,13 @@ function r8({ 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 ${xVe[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 ${EVe[t % 6]}`,
children: [
/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, H.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${bVe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${TVe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, H.jsx)("b", {
@@ -71970,8 +71970,8 @@ function r8({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var SVe = 10, i8 = N6[5], CVe = N6[4], wVe = `${kT()} flex flex-col gap-4`, TVe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EVe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", DVe = "开始播放后,这里会显示最近的真实观看证据。", OVe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", kVe = "添加媒体文件夹后,这里会显示存储空间。";
-function a8({ term: e, value: t }) {
+var DVe = 10, $6 = O6[5], OVe = O6[4], kVe = `${NT()} flex flex-col gap-4`, AVe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", jVe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", MVe = "开始播放后,这里会显示最近的真实观看证据。", NVe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", PVe = "添加媒体文件夹后,这里会显示存储空间。";
+function e8({ term: e, value: t }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, H.jsx)("span", {
@@ -71983,7 +71983,7 @@ function a8({ term: e, value: t }) {
})]
});
}
-function o8({ term: e, value: t, total: n }) {
+function t8({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, H.jsxs)("p", {
@@ -71992,17 +71992,17 @@ function o8({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, H.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [yR(t, n), "%"]
+ children: [vR(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, H.jsx)(QA, {
+ }), /* @__PURE__ */ (0, H.jsx)(Sk, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function s8({ term: e, figure: t, unit: n }) {
+function n8({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -72021,28 +72021,28 @@ function s8({ term: e, figure: t, unit: n }) {
]
});
}
-function c8({ headline: e, children: t }) {
+function r8({ headline: e, children: t }) {
return /* @__PURE__ */ (0, H.jsxs)("div", {
- className: `${wVe} md:flex-row md:gap-6`,
+ className: `${kVe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function AVe({ data: t, configurable: n, openMediaSettings: r }) {
+function FVe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, H.jsx)(r8, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Q6, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: s(t.bytes)
}))
- }), /* @__PURE__ */ (0, H.jsx)(r8, {
+ }), /* @__PURE__ */ (0, H.jsx)(Q6, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -72053,49 +72053,49 @@ function AVe({ data: t, configurable: n, openMediaSettings: r }) {
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, H.jsx)(H6, {
+ /* @__PURE__ */ (0, H.jsx)(L6, {
title: "时长",
unit: "个视频",
series: "视频",
- color: i8,
- rows: Rye(t.by_length)
+ color: $6,
+ rows: zye(t.by_length)
}),
- /* @__PURE__ */ (0, H.jsx)(H6, {
+ /* @__PURE__ */ (0, H.jsx)(L6, {
title: "画质",
unit: "个视频",
series: "视频",
- color: i8,
- rows: SR(t.by_quality)
+ color: $6,
+ rows: xR(t.by_quality)
}),
- /* @__PURE__ */ (0, H.jsx)(H6, {
+ /* @__PURE__ */ (0, H.jsx)(L6, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: i8,
+ color: $6,
layout: "horizontal",
- rows: Iye(t.by_medium)
+ rows: Lye(t.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: Zoe,
+ icon: qoe,
title: "还没有视频",
actions: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [n ? /* @__PURE__ */ (0, H.jsx)(J, {
size: "small",
onClick: r,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, H.jsx)(wE, {
+ }) : null, /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: TVe
+ children: AVe
});
}
-function jVe({ data: e }) {
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Y6, {
+function IVe({ data: e }) {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(W6, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -72105,40 +72105,40 @@ function jVe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, H.jsx)(H6, {
+ }), /* @__PURE__ */ (0, H.jsx)(L6, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: CVe,
- rows: Bye(e.replays)
+ color: OVe,
+ rows: Vye(e.replays)
})] });
}
-function MVe({ attribution: e }) {
+function LVe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, H.jsx)(o8, {
+ /* @__PURE__ */ (0, H.jsx)(t8, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, H.jsx)(o8, {
+ /* @__PURE__ */ (0, H.jsx)(t8, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, H.jsx)(o8, {
+ /* @__PURE__ */ (0, H.jsx)(t8, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, H.jsx)(o8, {
+ /* @__PURE__ */ (0, H.jsx)(t8, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, H.jsx)(o8, {
+ /* @__PURE__ */ (0, H.jsx)(t8, {
term: "已探测时长",
value: e.duration,
total: t
@@ -72146,7 +72146,7 @@ function MVe({ attribution: e }) {
]
});
}
-function NVe({ volume: e }) {
+function RVe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, H.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -72163,11 +72163,11 @@ function NVe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [s(n), /* @__PURE__ */ (0, H.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [yR(n, t), "%"]
+ children: [vR(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, H.jsx)(QA, {
+ t == null ? null : /* @__PURE__ */ (0, H.jsx)(Sk, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -72185,25 +72185,25 @@ function NVe({ volume: e }) {
]
});
}
-function PVe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function zVe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(NVe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ children: e.map((e) => /* @__PURE__ */ (0, H.jsx)(RVe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: pE,
+ icon: _E,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, H.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: kVe
+ children: PVe
});
}
-function FVe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, H.jsx)(X6, {
- previewCount: SVe,
+function BVe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, H.jsx)(G6, {
+ previewCount: DVe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, H.jsx)("li", {
className: "min-w-0",
@@ -72227,24 +72227,24 @@ function FVe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: hE,
+ icon: yE,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, H.jsx)(wE, {
+ actions: /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: EVe
+ children: jVe
});
}
-function IVe({ rows: e }) {
+function VVe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = bR(e);
+ let t = yR(e);
return /* @__PURE__ */ (0, H.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -72252,41 +72252,41 @@ function IVe({ rows: e }) {
children: [/* @__PURE__ */ (0, H.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, H.jsx)("a", {
- href: Mye(e),
+ href: Nye(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, H.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, H.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, H.jsx)("span", { children: jye(e) })]
+ children: [/* @__PURE__ */ (0, H.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, H.jsx)("span", { children: Mye(e) })]
})]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, H.jsx)(QA, {
+ children: [/* @__PURE__ */ (0, H.jsx)(Sk, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, H.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${xR(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${bR(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: mE,
+ icon: vE,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, H.jsx)(wE, {
+ actions: /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: DVe
+ children: MVe
});
}
-function LVe({ sources: e, videos: t }) {
+function HVe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)("article", {
@@ -72305,7 +72305,7 @@ function LVe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, H.jsx)(QA, {
+ /* @__PURE__ */ (0, H.jsx)(Sk, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -72316,27 +72316,27 @@ function LVe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: hE,
+ icon: yE,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, H.jsx)(wE, {
+ actions: /* @__PURE__ */ (0, H.jsx)(OE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: OVe
+ children: NVe
});
}
-function l8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, H.jsx)(fy, {
+function i8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, H.jsx)(yy, {
id: e,
- className: ZF({
+ className: GF({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, H.jsx)(tI, {
+ children: /* @__PURE__ */ (0, H.jsx)(YF, {
label: t,
icon: i,
accent: a,
@@ -72345,76 +72345,76 @@ function l8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function RVe(e) {
+function UVe(e) {
let t = Cn({
- queryKey: _R,
- queryFn: ({ signal: e }) => vR(e)
+ queryKey: gR,
+ queryFn: ({ signal: e }) => _R(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? R(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = yR(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = vR(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, H.jsxs)(uy, {
+ /* @__PURE__ */ (0, H.jsxs)(_y, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, H.jsxs)(dy, {
+ /* @__PURE__ */ (0, H.jsxs)(vy, {
"aria-label": "统计视图",
- className: QF,
+ className: KF,
children: [
- /* @__PURE__ */ (0, H.jsx)(l8, {
+ /* @__PURE__ */ (0, H.jsx)(i8, {
id: "inventory",
label: "馆藏视频",
- icon: lE,
+ icon: pE,
accent: 0,
figure: a.toLocaleString(),
detail: s(o)
}),
- /* @__PURE__ */ (0, H.jsx)(l8, {
+ /* @__PURE__ */ (0, H.jsx)(i8, {
id: "viewing",
label: "看过",
- icon: fE,
+ icon: gE,
accent: 1,
figure: r.played.toLocaleString(),
- detail: Aye(r.play_seconds)
+ detail: jye(r.play_seconds)
}),
- /* @__PURE__ */ (0, H.jsx)(l8, {
+ /* @__PURE__ */ (0, H.jsx)(i8, {
id: "coverage",
label: "内容标签",
- icon: hE,
+ icon: yE,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, H.jsx)(l8, {
+ /* @__PURE__ */ (0, H.jsx)(i8, {
id: "storage",
label: "使用空间",
- icon: pE,
+ icon: _E,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${s(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "inventory",
- children: /* @__PURE__ */ (0, H.jsx)(AVe, {
+ children: /* @__PURE__ */ (0, H.jsx)(FVe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, H.jsxs)(py, {
+ /* @__PURE__ */ (0, H.jsxs)(by, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, H.jsx)(c8, {
- headline: /* @__PURE__ */ (0, H.jsx)(s8, {
+ children: [/* @__PURE__ */ (0, H.jsx)(r8, {
+ headline: /* @__PURE__ */ (0, H.jsx)(n8, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -72422,62 +72422,62 @@ function RVe(e) {
children: /* @__PURE__ */ (0, H.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, H.jsx)(a8, {
+ /* @__PURE__ */ (0, H.jsx)(e8, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, H.jsx)(jVe, { data: n })]
+ }), /* @__PURE__ */ (0, H.jsx)(IVe, { data: n })]
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "coverage",
- children: /* @__PURE__ */ (0, H.jsx)(c8, {
- headline: /* @__PURE__ */ (0, H.jsx)(s8, {
+ children: /* @__PURE__ */ (0, H.jsx)(r8, {
+ headline: /* @__PURE__ */ (0, H.jsx)(n8, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, H.jsx)(MVe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, H.jsx)(LVe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "storage",
- children: /* @__PURE__ */ (0, H.jsx)(c8, {
- headline: /* @__PURE__ */ (0, H.jsx)(s8, {
+ children: /* @__PURE__ */ (0, H.jsx)(r8, {
+ headline: /* @__PURE__ */ (0, H.jsx)(n8, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, H.jsx)(PVe, {
+ children: /* @__PURE__ */ (0, H.jsx)(zVe, {
volumes: n.storage_volumes,
...e
})
@@ -72485,51 +72485,51 @@ function RVe(e) {
})
]
}),
- /* @__PURE__ */ (0, H.jsxs)(uy, {
+ /* @__PURE__ */ (0, H.jsxs)(_y, {
defaultSelectedKey: "tags",
- className: `${kT({ padding: "none" })} flex flex-col`,
+ className: `${NT({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, H.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, H.jsxs)(Kw, {
+ children: /* @__PURE__ */ (0, H.jsxs)(Xw, {
"aria-label": "统计维度",
- className: Jw,
+ className: Qw,
children: [
- /* @__PURE__ */ (0, H.jsx)(fy, {
+ /* @__PURE__ */ (0, H.jsx)(yy, {
id: "tags",
- className: Yw,
+ className: $w,
children: "内容标签"
}),
- /* @__PURE__ */ (0, H.jsx)(fy, {
+ /* @__PURE__ */ (0, H.jsx)(yy, {
id: "recent",
- className: Yw,
+ className: $w,
children: "最近看过"
}),
- /* @__PURE__ */ (0, H.jsx)(fy, {
+ /* @__PURE__ */ (0, H.jsx)(yy, {
id: "sources",
- className: Yw,
+ className: $w,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, H.jsx)(FVe, {
+ children: /* @__PURE__ */ (0, H.jsx)(BVe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, H.jsx)(IVe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, H.jsx)(VVe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, H.jsx)(py, {
+ /* @__PURE__ */ (0, H.jsx)(by, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, H.jsx)(LVe, {
+ children: /* @__PURE__ */ (0, H.jsx)(HVe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -72540,66 +72540,66 @@ function RVe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function zVe(e, t) {
+function WVe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function u8(e) {
+function a8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function d8(e, t) {
- return p8(e.source, t.source) || e.index - t.index;
+function o8(e, t) {
+ return c8(e.source, t.source) || e.index - t.index;
}
-function f8(e, t) {
- return p8(e.target, t.target) || e.index - t.index;
+function s8(e, t) {
+ return c8(e.target, t.target) || e.index - t.index;
}
-function p8(e, t) {
+function c8(e, t) {
return e.y0 - t.y0;
}
-function m8(e) {
+function l8(e) {
return e.value;
}
-function BVe(e) {
+function GVe(e) {
return e.index;
}
-function VVe(e) {
+function KVe(e) {
return e.nodes;
}
-function HVe(e) {
+function qVe(e) {
return e.links;
}
-function h8(e, t) {
+function u8(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function g8({ nodes: e }) {
+function d8({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function UVe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = BVe, c = zVe, l, u, d = VVe, f = HVe, p = 6;
+function JVe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = GVe, c = WVe, l, u, d = KVe, f = qVe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), g8(e), e;
+ return h(e), g(e), _(e), v(e), x(e), d8(e), e;
}
m.update = function(e) {
- return g8(e), e;
+ return d8(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : u8(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : a8(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : u8(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : a8(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -72607,9 +72607,9 @@ function UVe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : u8(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : a8(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : u8(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : a8(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -72625,12 +72625,12 @@ function UVe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = h8(n, t)), typeof i != "object" && (i = r.target = h8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = u8(n, t)), typeof i != "object" && (i = r.target = u8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Bq(t.sourceLinks, m8), Bq(t.targetLinks, m8)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Iq(t.sourceLinks, l8), Iq(t.targetLinks, l8)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -72655,7 +72655,7 @@ function UVe() {
}
}
function y({ nodes: t }) {
- let r = Iq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Mq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -72664,7 +72664,7 @@ function UVe() {
return o;
}
function b(e) {
- let n = Lq(e, (e) => (r - t - (e.length - 1) * o) / Bq(e, m8));
+ let n = Nq(e, (e) => (r - t - (e.length - 1) * o) / Iq(e, l8));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -72681,7 +72681,7 @@ function UVe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Iq(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Mq(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -72700,7 +72700,7 @@ function UVe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(p8), w(i, n);
+ l === void 0 && i.sort(c8), w(i, n);
}
}
function C(e, t, n) {
@@ -72716,7 +72716,7 @@ function UVe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(p8), w(i, n);
+ l === void 0 && i.sort(c8), w(i, n);
}
}
function w(e, n) {
@@ -72737,12 +72737,12 @@ function UVe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(f8);
- for (let { target: { targetLinks: t } } of e) t.sort(d8);
+ for (let { source: { sourceLinks: e } } of t) e.sort(s8);
+ for (let { target: { targetLinks: t } } of e) t.sort(o8);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(f8), n.sort(d8);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(s8), n.sort(o8);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -72772,15 +72772,15 @@ function UVe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var _8 = Math.PI, v8 = 2 * _8, y8 = 1e-6, WVe = v8 - y8;
-function b8() {
+var f8 = Math.PI, p8 = 2 * f8, m8 = 1e-6, YVe = p8 - m8;
+function h8() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function x8() {
- return new b8();
+function g8() {
+ return new h8();
}
-b8.prototype = x8.prototype = {
- constructor: b8,
+h8.prototype = g8.prototype = {
+ constructor: h8,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -72801,11 +72801,11 @@ b8.prototype = x8.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > y8) {
- if (!(Math.abs(u * s - c * l) > y8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > m8) {
+ if (!(Math.abs(u * s - c * l) > m8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((_8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > y8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((f8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > m8 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -72813,7 +72813,7 @@ b8.prototype = x8.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) > y8 || Math.abs(this._y1 - l) > y8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % v8 + v8), d > WVe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > y8 && (this._ += "A" + n + "," + n + ",0," + +(d >= _8) + "," + 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) > m8 || Math.abs(this._y1 - l) > m8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % p8 + p8), d > YVe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > m8 && (this._ += "A" + n + "," + n + ",0," + +(d >= f8) + "," + 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";
@@ -72824,90 +72824,90 @@ b8.prototype = x8.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function S8(e) {
+function _8(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function GVe(e) {
+function XVe(e) {
return e[0];
}
-function KVe(e) {
+function ZVe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var qVe = Array.prototype.slice;
+var QVe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function JVe(e) {
+function $Ve(e) {
return e.source;
}
-function YVe(e) {
+function eHe(e) {
return e.target;
}
-function XVe(e) {
- var t = JVe, n = YVe, r = GVe, i = KVe, a = null;
+function tHe(e) {
+ var t = $Ve, n = eHe, r = XVe, i = ZVe, a = null;
function o() {
- var o, s = qVe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = x8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = QVe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = g8(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : S8(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : _8(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : S8(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : _8(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function ZVe(e, t, n, r, i) {
+function nHe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function QVe() {
- return XVe(ZVe);
+function rHe() {
+ return tHe(nHe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function $Ve(e) {
+function iHe(e) {
return [e.source.x1, e.y0];
}
-function eHe(e) {
+function aHe(e) {
return [e.target.x0, e.y1];
}
-function tHe() {
- return QVe().source($Ve).target(eHe);
+function oHe() {
+ return rHe().source(iHe).target(aHe);
}
//#endregion
//#region src/react/taste/taste.ts
-var nHe = "/api/taste", C8 = "/api/taste/refresh", rHe = "/api/taste/import", iHe = "/api/taste/source", w8 = (e) => ["taste", e], aHe = ["taste", "refresh"], oHe = [
+var sHe = "/api/taste", v8 = "/api/taste/refresh", cHe = "/api/taste/import", lHe = "/api/taste/source", y8 = (e) => ["taste", e], uHe = ["taste", "refresh"], dHe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], T8 = (e, t) => z(`${nHe}?window=${e}`, t), sHe = (e) => z(C8, e);
-async function cHe(e, t) {
+], b8 = (e, t) => z(`${sHe}?window=${e}`, t), fHe = (e) => z(v8, e);
+async function pHe(e, t) {
await _.fetchQuery({
- queryKey: w8(e),
- queryFn: () => T8(e, t)
+ queryKey: y8(e),
+ queryFn: () => b8(e, t)
});
}
-var lHe = (e) => B(C8, {
+var mHe = (e) => B(v8, {
window: e,
background: !0
-}), uHe = (e, t) => B(iHe, {
+}), hHe = (e, t) => B(lHe, {
operation: "remove",
source_key: e,
window: t
});
-async function dHe(e) {
- let t = await fetch(rHe, {
+async function gHe(e) {
+ let t = await fetch(cHe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -72925,35 +72925,35 @@ async function dHe(e) {
}
return n;
}
-var fHe = 1e4, E8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", pHe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mHe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function hHe(e) {
+var _He = 1e4, x8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", vHe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, yHe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function bHe(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 gHe(e) {
- let t = e.map(mHe), n = Math.max(1, ...t);
+function xHe(e) {
+ let t = e.map(yHe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var D8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var S8 = (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 _He(e) {
- let t = D8(e, 6);
+function SHe(e) {
+ let t = S8(e, 6);
return t.length < 3 ? [] : t;
}
-var O8 = {
+var C8 = {
width: 720,
height: 435
-}, k8 = {
+}, w8 = {
source: 145,
target: 545
};
-function vHe(e = []) {
+function CHe(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 = UVe().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 = JVe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -72968,7 +72968,7 @@ function vHe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = tHe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = oHe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -72998,11 +72998,11 @@ function vHe(e = []) {
total: a
};
}
-var yHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, A8 = V.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var wHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, T8 = V.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = V.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, H.jsx)(M8, {
+ case "border": return /* @__PURE__ */ (0, H.jsx)(D8, {
cx: e,
cy: t,
dotId: c,
@@ -73011,7 +73011,7 @@ var yHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, A8 = V.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, H.jsx)(N8, {
+ case "colored-border": return /* @__PURE__ */ (0, H.jsx)(O8, {
cx: e,
cy: t,
dotId: c,
@@ -73020,7 +73020,7 @@ var yHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, A8 = V.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, H.jsx)(j8, {
+ default: return /* @__PURE__ */ (0, H.jsx)(E8, {
cx: e,
cy: t,
dotId: c,
@@ -73030,7 +73030,7 @@ var yHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, A8 = V.memo(functio
maskId: s
});
}
-}), j8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
+}), E8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)("clipPath", {
@@ -73050,9 +73050,9 @@ var yHe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, A8 = V.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-j8.displayName = "DefaultDot";
-var M8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
- className: c6(a, "text-background"),
+E8.displayName = "DefaultDot";
+var D8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
+ className: r6(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)("clipPath", {
@@ -73088,9 +73088,9 @@ var M8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-M8.displayName = "PrimaryBorderDot";
-var N8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
- className: c6(a, "text-background"),
+D8.displayName = "PrimaryBorderDot";
+var O8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, H.jsxs)("g", {
+ className: r6(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, H.jsx)("defs", { children: /* @__PURE__ */ (0, H.jsx)("clipPath", {
@@ -73118,17 +73118,17 @@ var N8 = V.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-N8.displayName = "ColoredBorderDot";
+O8.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var bHe = 1, xHe = .3, SHe = 6, P8 = 1500, F8 = "value", I8 = (0, V.createContext)(null);
-function L8() {
- let e = (0, V.use)(I8);
+var THe = 1, EHe = .3, DHe = 6, k8 = 1500, A8 = "value", j8 = (0, V.createContext)(null);
+function M8() {
+ let e = (0, V.use)(j8);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function R8({ 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, V.useId)().replace(/:/g, ""), [d, f] = (0, V.useState)(o), p = FHe(c, l), m = (0, V.useCallback)((e) => {
+function N8({ 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, V.useId)().replace(/:/g, ""), [d, f] = (0, V.useState)(o), p = BHe(c, l), m = (0, V.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, V.useMemo)(() => ({
config: e,
@@ -73141,37 +73141,37 @@ function R8({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, H.jsx)(I8, {
+ return /* @__PURE__ */ (0, H.jsx)(j8, {
value: h,
- children: /* @__PURE__ */ (0, H.jsxs)(p6, {
+ children: /* @__PURE__ */ (0, H.jsxs)(c6, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, H.jsx)(m6, { isLoading: c }), /* @__PURE__ */ (0, H.jsxs)(oBe, {
+ children: [/* @__PURE__ */ (0, H.jsx)(l6, { isLoading: c }), /* @__PURE__ */ (0, H.jsxs)(dBe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, H.jsx)(T6, { variant: a }),
+ a && /* @__PURE__ */ (0, H.jsx)(b6, { variant: a }),
n,
- c && /* @__PURE__ */ (0, H.jsx)(IHe, {})
+ c && /* @__PURE__ */ (0, H.jsx)(VHe, {})
]
})]
})
});
}
-function CHe({ dataKey: e, variant: t = "filled", fillOpacity: n = xHe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = L8(), d = (0, V.useId)().replace(/:/g, "");
+function OHe({ dataKey: e, variant: t = "filled", fillOpacity: n = EHe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = M8(), d = (0, V.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 } = kHe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Q0, {
+ }, m = t === "filled", { dot: h, activeDot: g } = PHe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(q0, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: bHe,
+ strokeWidth: THe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -73184,30 +73184,30 @@ function CHe({ dataKey: e, variant: t = "filled", fillOpacity: n = xHe, isGlowin
},
...o
}), /* @__PURE__ */ (0, H.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, H.jsx)(AHe, {
+ /* @__PURE__ */ (0, H.jsx)(FHe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, H.jsx)(jHe, {
+ /* @__PURE__ */ (0, H.jsx)(IHe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, H.jsx)(MHe, {
+ m && /* @__PURE__ */ (0, H.jsx)(LHe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, H.jsx)(NHe, {
+ r && /* @__PURE__ */ (0, H.jsx)(RHe, {
id: d,
dataKey: e
})
] })] });
}
-var z8 = () => null, B8 = () => null;
-function wHe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, H.jsx)(G1, {
+var P8 = () => null, F8 = () => null;
+function kHe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, H.jsx)(B1, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -73215,47 +73215,47 @@ function wHe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function THe({ tick: e = {
+function AHe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = L8();
- return r ? null : /* @__PURE__ */ (0, H.jsx)(a0, {
+ let { isLoading: r } = M8();
+ return r ? null : /* @__PURE__ */ (0, H.jsx)(e0, {
tick: e,
tickLine: t,
...n
});
}
-function EHe({ tick: e = {
+function jHe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = L8();
- return i ? null : /* @__PURE__ */ (0, H.jsx)($1, {
+ let { isLoading: i } = M8();
+ return i ? null : /* @__PURE__ */ (0, H.jsx)(J1, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function DHe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = L8();
- return r ? null : /* @__PURE__ */ (0, H.jsx)(y6, {
+function MHe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = M8();
+ return r ? null : /* @__PURE__ */ (0, H.jsx)(m6, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, H.jsx)(v6, {
+ content: /* @__PURE__ */ (0, H.jsx)(p6, {
selected: i,
roundness: t,
variant: e
})
});
}
-function OHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = L8();
- return i ? null : /* @__PURE__ */ (0, H.jsx)(x6, {
+function NHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = M8();
+ return i ? null : /* @__PURE__ */ (0, H.jsx)(g6, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, H.jsx)(b6, {
+ content: /* @__PURE__ */ (0, H.jsx)(h6, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -73263,22 +73263,22 @@ function OHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var kHe = (e, t, n, r) => {
+var PHe = (e, t, n, r) => {
let i = !1, a = !1;
return V.Children.forEach(e, (e) => {
if ((0, V.isValidElement)(e)) {
- if (e.type === z8) {
+ if (e.type === P8) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, H.jsx)(A8, {
+ i = /* @__PURE__ */ (0, H.jsx)(T8, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === B8) {
+ if (e.type === F8) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, H.jsx)(A8, {
+ a = /* @__PURE__ */ (0, H.jsx)(T8, {
type: i,
dataKey: n,
chartId: t,
@@ -73290,7 +73290,7 @@ var kHe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, V8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("stop", {
+}, I8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -73305,46 +73305,46 @@ var kHe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), AHe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {});
+}) }), FHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {});
return /* @__PURE__ */ (0, H.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, H.jsx)(V8, {
+ children: /* @__PURE__ */ (0, H.jsx)(I8, {
dataKey: t,
colorsCount: r
})
});
-}, jHe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {});
+}, IHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {});
return /* @__PURE__ */ (0, H.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, H.jsx)(V8, {
+ children: /* @__PURE__ */ (0, H.jsx)(I8, {
dataKey: t,
colorsCount: r
})
});
-}, MHe = ({ id: e, dataKey: t, config: n }) => {
- let r = _6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, LHe = ({ id: e, dataKey: t, config: n }) => {
+ let r = f6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, H.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, H.jsx)(V8, {
+ children: /* @__PURE__ */ (0, H.jsx)(I8, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, NHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)("filter", {
+}, RHe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, H.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -73364,7 +73364,7 @@ var kHe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, H.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, H.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, H.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), PHe = (e) => [
+}), zHe = (e) => [
"A",
"B",
"C",
@@ -73373,20 +73373,20 @@ var kHe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [F8]: 30 + Math.random() * 70
+ [A8]: 30 + Math.random() * 70
}));
-function FHe(e, t = SHe) {
+function BHe(e, t = DHe) {
let [n, r] = (0, V.useState)(0);
return (0, V.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, P8);
+ }, k8);
return () => clearInterval(t);
- }, [e]), (0, V.useMemo)(() => PHe(t), [t, n]);
+ }, [e]), (0, V.useMemo)(() => zHe(t), [t, n]);
}
-var IHe = () => /* @__PURE__ */ (0, H.jsx)(Q0, {
- dataKey: F8,
+var VHe = () => /* @__PURE__ */ (0, H.jsx)(q0, {
+ dataKey: A8,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -73394,30 +73394,30 @@ var IHe = () => /* @__PURE__ */ (0, H.jsx)(Q0, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: P8,
+ animationDuration: k8,
animationEasing: "ease-in-out"
});
-R8.Radar = CHe, R8.Dot = z8, R8.ActiveDot = B8, R8.PolarGrid = wHe, R8.PolarAngleAxis = THe, R8.PolarRadiusAxis = EHe, R8.Tooltip = DHe, R8.Legend = OHe;
+N8.Radar = OHe, N8.Dot = P8, N8.ActiveDot = F8, N8.PolarGrid = kHe, N8.PolarAngleAxis = AHe, N8.PolarRadiusAxis = jHe, N8.Tooltip = MHe, N8.Legend = NHe;
//#endregion
//#region src/react/taste/charts.tsx
-var LHe = [
+var HHe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], RHe = [
+], UHe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], H8 = { value: {
+], L8 = { value: {
label: "标签命中",
- colors: P6(N6[3])
-} }, zHe = [
+ colors: k6(O6[3])
+} }, WHe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -73427,78 +73427,78 @@ var LHe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], BHe = 26, VHe = { radius: H8.value }, HHe = (e, t) => Math.sqrt(e / t);
-function UHe({ rows: e, label: t }) {
- let n = _He(e);
+], GHe = 26, KHe = { radius: L8.value }, qHe = (e, t) => Math.sqrt(e / t);
+function JHe({ rows: e, label: t }) {
+ let n = SHe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: HHe(e.value, r)
+ radius: qHe(e.value, r)
}));
return /* @__PURE__ */ (0, H.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, H.jsxs)(R8, {
+ children: /* @__PURE__ */ (0, H.jsxs)(N8, {
data: i,
- config: VHe,
+ config: KHe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, H.jsx)(R8.PolarGrid, {}),
- /* @__PURE__ */ (0, H.jsx)(R8.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, H.jsx)(R8.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, H.jsx)(N8.PolarGrid, {}),
+ /* @__PURE__ */ (0, H.jsx)(N8.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, H.jsx)(N8.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, H.jsx)(R8.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, H.jsx)(z6, { valueKey: "value" })
+ /* @__PURE__ */ (0, H.jsx)(N8.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, H.jsx)(P6, { valueKey: "value" })
]
})
});
}
-function WHe({ rows: e, label: t }) {
- let n = D8(e, 8);
+function YHe({ rows: e, label: t }) {
+ let n = S8(e, 8);
return n.length ? /* @__PURE__ */ (0, H.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${zHe[n.length]}`,
- children: /* @__PURE__ */ (0, H.jsxs)(k6, {
+ className: `flex grow flex-col ${WHe[n.length]}`,
+ children: /* @__PURE__ */ (0, H.jsxs)(w6, {
data: n,
- config: H8,
+ config: L8,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: BHe },
+ chartProps: { maxBarSize: GHe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, H.jsx)(k6.YAxis, {
+ /* @__PURE__ */ (0, H.jsx)(w6.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, H.jsx)(k6.XAxis, {
+ /* @__PURE__ */ (0, H.jsx)(w6.XAxis, {
hide: !0,
- domain: B6
+ domain: F6
}),
- /* @__PURE__ */ (0, H.jsx)(k6.Bar, {
+ /* @__PURE__ */ (0, H.jsx)(w6.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: V6("right")
+ label: I6("right")
}
}),
- /* @__PURE__ */ (0, H.jsx)(z6, {})
+ /* @__PURE__ */ (0, H.jsx)(P6, {})
]
})
}) : null;
}
-function GHe({ flows: e }) {
- let [t, n] = (0, V.useState)(null), r = vHe(e);
+function XHe({ flows: e }) {
+ let [t, n] = (0, V.useState)(null), r = CHe(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, H.jsxs)("section", {
- className: j6,
+ className: E6,
children: [
- /* @__PURE__ */ (0, H.jsx)(M6, {
+ /* @__PURE__ */ (0, H.jsx)(D6, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -73506,7 +73506,7 @@ function GHe({ flows: e }) {
/* @__PURE__ */ (0, H.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, H.jsxs)("svg", {
- viewBox: `0 0 ${O8.width} ${O8.height}`,
+ viewBox: `0 0 ${C8.width} ${C8.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -73520,7 +73520,7 @@ function GHe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${LHe[e.color]}`,
+ className: `outline-none transition-opacity ${HHe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -73554,15 +73554,15 @@ function GHe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? RHe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? UHe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, H.jsxs)("text", {
- x: k8[e.side],
+ x: w8[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: [yHe(e.name), /* @__PURE__ */ (0, H.jsx)("tspan", {
- x: k8[e.side],
+ children: [wHe(e.name), /* @__PURE__ */ (0, H.jsx)("tspan", {
+ x: w8[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -73579,11 +73579,11 @@ function GHe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var KHe = 10, U8 = ra(oD, sD, "text-body-2-medium"), W8 = `${kT()} flex flex-col gap-4`, G8 = "rounded-xl bg-background-primary-default p-3", qHe = "读取运行 Peach 的这台电脑上的浏览记录", JHe = "导入或读取浏览记录后,这里会列出已采集设备。", YHe = "馆藏里暂时没有对得上浏览信号的标签。", XHe = "采集浏览记录后,这里会显示聚合后的口味证据。", ZHe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", QHe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", $He = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", eUe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", tUe = "这个数据源将不再用于口味分析。原始导出文件保留。", K8 = "peach-taste-guide-dismissed";
-function q8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var ZHe = 10, R8 = ra(uD, dD, "text-body-2-medium"), z8 = `${NT()} flex flex-col gap-4`, B8 = "rounded-xl bg-background-primary-default p-3", QHe = "读取运行 Peach 的这台电脑上的浏览记录", $He = "导入或读取浏览记录后,这里会列出已采集设备。", eUe = "馆藏里暂时没有对得上浏览信号的标签。", tUe = "采集浏览记录后,这里会显示聚合后的口味证据。", nUe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", rUe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", iUe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", aUe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", oUe = "这个数据源将不再用于口味分析。原始导出文件保留。", V8 = "peach-taste-guide-dismissed";
+function H8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, H.jsx)("div", {
- className: ZF(),
- children: /* @__PURE__ */ (0, H.jsx)(tI, {
+ className: GF(),
+ children: /* @__PURE__ */ (0, H.jsx)(YF, {
label: t,
icon: e,
accent: i,
@@ -73592,7 +73592,7 @@ function q8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function J8({ name: e, domain: t }) {
+function U8({ name: e, domain: t }) {
return /* @__PURE__ */ (0, H.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, H.jsx)("img", {
@@ -73606,22 +73606,22 @@ function J8({ name: e, domain: t }) {
})]
});
}
-function nUe({ html: e }) {
+function sUe({ html: e }) {
return /* @__PURE__ */ (0, H.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 ${TL}`,
+ 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 ${SL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function rUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, H.jsx)(UO, {
+function cUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+ if (!e.length) return /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: vE,
+ icon: SE,
title: "暂无足够证据",
children: r
});
- let a = gHe(e);
- return /* @__PURE__ */ (0, H.jsx)(X6, {
- previewCount: KHe,
+ let a = xHe(e);
+ return /* @__PURE__ */ (0, H.jsx)(G6, {
+ previewCount: ZHe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
@@ -73640,15 +73640,15 @@ function rUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, H.jsx)(J8, {
+ n === "domain" ? /* @__PURE__ */ (0, H.jsx)(U8, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, H.jsx)(J8, {
+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, H.jsx)(U8, {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, H.jsx)(nUe, { html: D(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, H.jsx)(sUe, { html: D(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -73661,10 +73661,10 @@ function rUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, H.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: hHe(e)
+ children: bHe(e)
})]
}),
- o ? /* @__PURE__ */ (0, H.jsx)(iE, {
+ o ? /* @__PURE__ */ (0, H.jsx)(cE, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -73684,31 +73684,31 @@ function rUe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
})
});
}
-function Y8({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, H.jsxs)(uy, {
- className: `${kT({ padding: "none" })} flex flex-col`,
+function W8({ label: e, panels: t, onSignal: n }) {
+ return /* @__PURE__ */ (0, H.jsxs)(_y, {
+ className: `${NT({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, H.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, H.jsx)(Kw, {
+ children: /* @__PURE__ */ (0, H.jsx)(Xw, {
"aria-label": e,
- className: Jw,
- children: t.map((e) => /* @__PURE__ */ (0, H.jsx)(fy, {
+ className: Qw,
+ children: t.map((e) => /* @__PURE__ */ (0, H.jsx)(yy, {
id: e.id,
- className: Yw,
+ className: $w,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(py, {
+ }), t.map((e) => /* @__PURE__ */ (0, H.jsx)(by, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, H.jsx)(rUe, {
+ children: /* @__PURE__ */ (0, H.jsx)(cUe, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function iUe({ data: e, onSignal: t, navigate: n }) {
+function lUe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -73723,7 +73723,7 @@ function iUe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, H.jsxs)("section", {
- className: W8,
+ className: z8,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, H.jsxs)("header", {
@@ -73749,7 +73749,7 @@ function iUe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, H.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${G8}`,
+ className: `flex min-w-0 flex-col gap-1 ${B8}`,
children: [/* @__PURE__ */ (0, H.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -73764,7 +73764,7 @@ function iUe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${G8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${B8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, H.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, H.jsx)("b", {
@@ -73774,44 +73774,44 @@ function iUe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, H.jsx)(iE, {
+ }), /* @__PURE__ */ (0, H.jsx)(cE, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: vE,
+ icon: SE,
title: "还没有可探索的入口",
- children: YHe
+ children: eUe
})
]
});
}
-function aUe({ onboarding: e, done: t }) {
+function uUe({ onboarding: e, done: t }) {
let [n, r] = (0, V.useState)(() => {
try {
- return localStorage.getItem(K8) === "1";
+ return localStorage.getItem(V8) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, H.jsx)("div", {
- className: kT({
+ className: NT({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, H.jsxs)(pj, {
+ children: /* @__PURE__ */ (0, H.jsxs)(Lk, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: QHe
+ children: rUe
}),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $He
+ children: iUe
}),
/* @__PURE__ */ (0, H.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -73841,7 +73841,7 @@ function aUe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, H.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: eUe
+ children: aUe
}),
/* @__PURE__ */ (0, H.jsx)("span", {
className: "self-start",
@@ -73850,7 +73850,7 @@ function aUe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(K8, "1");
+ localStorage.setItem(V8, "1");
} catch {}
r(!0);
},
@@ -73861,7 +73861,7 @@ function aUe({ onboarding: e, done: t }) {
})
});
}
-function oUe({ busy: e, onRefresh: t, onImport: n }) {
+function dUe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, V.useRef)(null), [i, a] = (0, V.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -73870,15 +73870,15 @@ function oUe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, H.jsx)(J, {
- leadingIcon: cE,
- title: qHe,
+ leadingIcon: fE,
+ title: QHe,
onClick: t,
...X(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, H.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: nE,
+ leadingIcon: oE,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -73893,23 +73893,23 @@ function oUe({ busy: e, onRefresh: t, onImport: n }) {
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: aD,
- children: /* @__PURE__ */ (0, H.jsxs)(HA, {
+ className: lD,
+ children: /* @__PURE__ */ (0, H.jsxs)(uk, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
- className: U8,
+ className: R8,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, H.jsx)(cE, {
+ children: [/* @__PURE__ */ (0, H.jsx)(fE, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
- className: U8,
+ className: R8,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, H.jsx)(yE, {
+ children: [/* @__PURE__ */ (0, H.jsx)(CE, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -73917,15 +73917,15 @@ function oUe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function sUe({ sources: e, window: t, toast: n }) {
+function fUe({ sources: e, window: t, toast: n }) {
let r = Fn({
- mutationFn: (e) => uHe(e, t),
+ mutationFn: (e) => hHe(e, t),
onSuccess: (e) => {
- _.setQueryData(w8(t), e.dashboard), n("已移除口味数据源");
+ _.setQueryData(y8(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, H.jsxs)("section", {
- className: W8,
+ className: z8,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, H.jsx)("h3", {
@@ -73939,14 +73939,14 @@ function sUe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, H.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${G8}`,
+ className: `flex min-w-0 items-center gap-3 ${B8}`,
children: [
/* @__PURE__ */ (0, H.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, H.jsx)(yE, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, H.jsx)(CE, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, H.jsx)(lE, {
+ }) : /* @__PURE__ */ (0, H.jsx)(pE, {
"aria-hidden": !0,
className: "size-4"
})
@@ -73966,12 +73966,12 @@ function sUe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: uE,
+ leadingIcon: mE,
...X(r.isPending),
onClick: () => {
r.isPending || fe({
title: "移除口味数据源",
- body: tUe,
+ body: oUe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -73979,32 +73979,32 @@ function sUe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: lE,
+ icon: pE,
title: "还没有数据源",
- children: JHe
+ children: $He
})
]
});
}
-function cUe(e) {
+function pUe(e) {
let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, V.useState)("all"), [c, l] = (0, V.useState)("browser"), u = (0, V.useRef)(null), d = Cn({
- queryKey: w8(a),
- queryFn: ({ signal: e }) => T8(a, e),
+ queryKey: y8(a),
+ queryFn: ({ signal: e }) => b8(a, e),
placeholderData: Rn.keepPreviousData
- }), { job: f, running: p, outcome: m, start: h } = rI({
- queryKey: aHe,
- queryFn: ({ signal: e }) => sHe(e),
- start: () => lHe(a),
- idlePollMs: fHe,
+ }), { job: f, running: p, outcome: m, start: h } = ZF({
+ queryKey: uHe,
+ queryFn: ({ signal: e }) => fHe(e),
+ start: () => mHe(a),
+ idlePollMs: _He,
onFinish: (e) => {
e.status !== "failed" && (_.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), g = Fn({
- mutationFn: (e) => dHe(e),
+ mutationFn: (e) => gHe(e),
onSuccess: (e) => {
- _.setQueryData(w8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ _.setQueryData(y8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -74012,47 +74012,47 @@ function cUe(e) {
}, y = () => {
p || h.isPending || (h.reset(), h.mutate());
}, b = d.data;
- if (!b) return /* @__PURE__ */ (0, H.jsx)(dP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ if (!b) return /* @__PURE__ */ (0, H.jsx)(aP, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: d.error ? R(d.error) : "读取口味分析失败"
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = h.error ? R(h.error) : g.error ? R(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, H.jsxs)(dP, { children: [
- /* @__PURE__ */ (0, H.jsxs)(uy, {
+ return /* @__PURE__ */ (0, H.jsxs)(aP, { children: [
+ /* @__PURE__ */ (0, H.jsxs)(_y, {
selectedKey: c,
onSelectionChange: (e) => l(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, H.jsxs)(Kw, {
+ children: [/* @__PURE__ */ (0, H.jsxs)(Xw, {
"aria-label": "口味证据来源",
- className: Jw,
- children: [/* @__PURE__ */ (0, H.jsx)(fy, {
+ className: Qw,
+ children: [/* @__PURE__ */ (0, H.jsx)(yy, {
id: "browser",
- className: Yw,
+ className: $w,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, H.jsx)(fy, {
+ }), /* @__PURE__ */ (0, H.jsx)(yy, {
id: "peach",
- className: Yw,
+ className: $w,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, H.jsx)(pP, {
+ /* @__PURE__ */ (0, H.jsx)(sP, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: oHe.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(mP, {
+ children: dHe.map(([e, t]) => /* @__PURE__ */ (0, H.jsx)(cP, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, H.jsx)(oUe, {
+ /* @__PURE__ */ (0, H.jsx)(dUe, {
busy: p || h.isPending || g.isPending,
onRefresh: y,
onImport: () => u.current?.click()
@@ -74068,7 +74068,7 @@ function cUe(e) {
]
})]
}),
- /* @__PURE__ */ (0, H.jsx)(aUe, {
+ /* @__PURE__ */ (0, H.jsx)(uUe, {
onboarding: i,
done: !!(x.history_sources || b.updated_at)
}),
@@ -74076,48 +74076,48 @@ function cUe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- p ? /* @__PURE__ */ (0, H.jsx)($A, {
+ p ? /* @__PURE__ */ (0, H.jsx)(Ck, {
label: f?.message || "正在读取浏览记录并更新口味分析",
value: f?.checked,
total: f?.total
}) : null,
- g.isPending ? /* @__PURE__ */ (0, H.jsx)($A, { label: "正在导入历史文件" }) : null,
+ g.isPending ? /* @__PURE__ */ (0, H.jsx)(Ck, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsxs)(py, {
+ /* @__PURE__ */ (0, H.jsxs)(by, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
- className: QF,
+ className: KF,
children: [
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 0,
- icon: mE,
+ icon: vE,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${E8(x.range_start)}—${E8(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${x8(x.range_start)}—${x8(x.range_end)}`
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 1,
- icon: hE,
+ icon: yE,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 2,
- icon: vE,
+ icon: SE,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 3,
- icon: lE,
+ icon: pE,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: s(w.bytes || 0)
@@ -74125,7 +74125,7 @@ function cUe(e) {
]
}),
/* @__PURE__ */ (0, H.jsxs)("section", {
- className: `${W8} md:flex-row md:gap-6`,
+ className: `${z8} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -74134,29 +74134,29 @@ function cUe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, H.jsx)(UHe, {
+ /* @__PURE__ */ (0, H.jsx)(JHe, {
rows: T,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, H.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${E8(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${x8(b.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, H.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, H.jsx)(WHe, {
+ children: T.length ? /* @__PURE__ */ (0, H.jsx)(YHe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, H.jsx)(UO, {
+ }) : /* @__PURE__ */ (0, H.jsx)(KO, {
shell: "plain",
- icon: vE,
+ icon: SE,
title: "暂无口味维度",
- children: XHe
+ children: tUe
})
})]
}),
- /* @__PURE__ */ (0, H.jsx)(Y6, {
+ /* @__PURE__ */ (0, H.jsx)(W6, {
activity: b.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -74168,8 +74168,8 @@ function cUe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, H.jsx)(GHe, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, H.jsx)(Y8, {
+ /* @__PURE__ */ (0, H.jsx)(XHe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, H.jsx)(W8, {
label: "浏览器口味维度",
onSignal: t,
panels: [
@@ -74210,49 +74210,49 @@ function cUe(e) {
rows: E,
kind: "",
visual: "none",
- empty: ZHe
+ empty: nUe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, H.jsxs)(py, {
+ /* @__PURE__ */ (0, H.jsxs)(by, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
- className: QF,
+ className: KF,
children: [
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 0,
- icon: fE,
+ icon: gE,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: pHe(x.peach_seconds || 0)
+ detail: vHe(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 1,
- icon: Xoe,
+ icon: Koe,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 2,
- icon: Yoe,
+ icon: Goe,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, H.jsx)(q8, {
+ /* @__PURE__ */ (0, H.jsx)(H8, {
accent: 3,
- icon: hE,
+ icon: yE,
term: "有标签",
figure: D.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, H.jsxs)("section", {
- className: `${W8} md:flex-row md:gap-6`,
+ className: `${z8} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -74272,18 +74272,18 @@ function cUe(e) {
]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, H.jsx)(X8, {
+ children: [/* @__PURE__ */ (0, H.jsx)(G8, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, H.jsx)(X8, {
+ }), /* @__PURE__ */ (0, H.jsx)(G8, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, H.jsx)(Y8, {
+ /* @__PURE__ */ (0, H.jsx)(W8, {
label: "Peach 口味维度",
onSignal: t,
panels: [
@@ -74323,19 +74323,19 @@ function cUe(e) {
})
]
}),
- /* @__PURE__ */ (0, H.jsx)(iUe, {
+ /* @__PURE__ */ (0, H.jsx)(lUe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, H.jsx)(sUe, {
+ /* @__PURE__ */ (0, H.jsx)(fUe, {
sources: b.sources || [],
window: a,
toast: r
})
] });
}
-function X8({ term: e, value: t, rest: n }) {
+function G8({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -74348,7 +74348,7 @@ function X8({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, H.jsx)(QA, {
+ }), /* @__PURE__ */ (0, H.jsx)(Sk, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -74357,18 +74357,18 @@ function X8({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function lUe(e, t, n) {
+function mUe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- Q8(r) ? n(r) : t.openManage(e);
+ q8(r) ? n(r) : t.openManage(e);
}
-var Z8 = {
+var K8 = {
"/stats": {
- prefetch: (e, t) => kye(t),
- page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(RVe, {
+ prefetch: (e, t) => Aye(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(UVe, {
tagLabel: Xe,
onTag: t.openTag,
configurable: e.configurable,
@@ -74378,8 +74378,8 @@ var Z8 = {
})
},
"/taste": {
- prefetch: (e, t) => cHe("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(cUe, {
+ prefetch: (e, t) => pHe("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(pUe, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -74387,8 +74387,8 @@ var Z8 = {
})
},
"/review": {
- prefetch: (e, t) => zme(t),
- page: (e, t) => /* @__PURE__ */ (0, H.jsx)(vve, {
+ prefetch: (e, t) => Tme(t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)(yve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -74398,24 +74398,24 @@ var Z8 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => Ehe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(gge, {
+ prefetch: (e, t) => fhe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(nge, {
failure: t.failure,
- open: (e) => lUe(e, t, n),
+ open: (e) => mUe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => cme(t),
- page: (e, t) => /* @__PURE__ */ (0, H.jsx)(Sge, {
+ prefetch: (e, t) => Jpe(t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)(cge, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- prefetch: (e, t) => vme(t),
- page: (e, t) => /* @__PURE__ */ (0, H.jsx)(nve, {
+ prefetch: (e, t) => ime(t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)(rve, {
openItem: t.openItem,
javTitleHtml: Ye,
javDisplayName: Je,
@@ -74423,23 +74423,23 @@ var Z8 = {
})
},
"/scraping": {
- prefetch: (e, t) => Tve(t),
- page: (e, t) => /* @__PURE__ */ (0, H.jsx)(Mve, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => Eve(t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)(Nve, { toast: (e) => t.toast(e) })
},
"/configuration": {
- prefetch: (e, t) => aR(t),
- page: (e, t) => /* @__PURE__ */ (0, H.jsx)(Dye, {
+ prefetch: (e, t) => iR(t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)(Oye, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial
})
},
"/activity": {
- prefetch: (e, t) => Ipe(t),
- page: (e) => /* @__PURE__ */ (0, H.jsx)(rme, { ...e.prefill ? { prefill: e.prefill } : {} })
+ prefetch: (e, t) => Spe(t),
+ page: (e) => /* @__PURE__ */ (0, H.jsx)(Upe, { ...e.prefill ? { prefill: e.prefill } : {} })
},
"/follow-manage": {
- prefetch: (e, t) => Mce(t, e.tab),
- page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(eve, {
+ prefetch: (e, t) => Oce(t, e.tab),
+ page: (e, t, n) => /* @__PURE__ */ (0, H.jsx)(B_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -74450,25 +74450,49 @@ var Z8 = {
}
})
}
-}, Q8 = (e) => Object.hasOwn(Z8, e);
-function uUe(e, t, n) {
- return Q8(e) ? Z8[e].prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+}, q8 = (e) => Object.hasOwn(K8, e), J8 = {
+ prefetch: (e, t) => soe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, H.jsx)($_e, {
+ ...e,
+ route: t.routeIndex,
+ savePreference: t.savePeopleLayout,
+ exitSelectMode: t.exitSelectMode,
+ personAvatar: t.personAvatar,
+ authorAvatar: t.authorAvatar,
+ tagLabel: Xe,
+ openEntity: t.openEntity,
+ showTags: t.showIndexTags,
+ openFollowAuthor: t.openFollowAuthor,
+ openFollowTag: t.openFollowTag
+ })
+}, Y8 = {
+ "/performers": J8,
+ "/creators": J8,
+ "/studios": J8,
+ "/agencies": J8,
+ "/tags": J8
+}, hUe = [...Object.keys(K8), ...Object.keys(Y8)], X8 = (e) => q8(e) || Object.hasOwn(Y8, e);
+function Z8(e) {
+ return q8(e) ? K8[e] : Y8[e];
+}
+function gUe(e, t, n) {
+ return X8(e) ? Z8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function dUe(e, t, n, r) {
- return Z8[e].page(t, n, r);
+function _Ue(e, t, n, r) {
+ return Z8(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var fUe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, pUe = /^[\\/]{2}/;
-function mUe(e, t) {
+var vUe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, yUe = /^[\\/]{2}/;
+function bUe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
-function $8(e, t) {
+function Q8(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function e5(e, t) {
+function $8(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -74476,10 +74500,10 @@ function e5(e, t) {
} catch {}
}
}
-function hUe({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function xUe({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function t5(e) {
+function e5(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -74491,21 +74515,21 @@ function t5(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function gUe(e, t, n = "/") {
- return _Ue(e, t, n, !1);
+function SUe(e, t, n = "/") {
+ return CUe(e, t, n, !1);
}
-function _Ue(e, t, n, r, i) {
- let a = c5((typeof t == "string" ? t5(t) : t).pathname || "/", n);
+function CUe(e, t, n, r, i) {
+ let a = s5((typeof t == "string" ? e5(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? vUe(e), s = null, c = jUe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = AUe(o[e], c, r);
+ let o = i ?? wUe(e), s = null, c = LUe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = IUe(o[e], c, r);
return s;
}
-function vUe(e) {
- let t = n5(e);
- return yUe(t), t;
+function wUe(e) {
+ let t = t5(e);
+ return TUe(t), t;
}
-function n5(e, t = [], n = [], r = "", i = !1) {
+function t5(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -74515,14 +74539,14 @@ function n5(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- $8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ Q8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = f5([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && ($8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), n5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
+ let l = d5([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (Q8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), t5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
- score: OUe(l, e.index),
+ score: PUe(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = s5(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = o5(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -74533,68 +74557,68 @@ function n5(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of r5(e.path)) a(e, t, !0, n);
+ else for (let n of n5(e.path)) a(e, t, !0, n);
}), t;
}
-function r5(e) {
+function n5(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = r5(r.join("/")), s = [];
+ let o = n5(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function yUe(e) {
- e.sort((e, t) => e.score === t.score ? kUe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function TUe(e) {
+ e.sort((e, t) => e.score === t.score ? FUe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var bUe = /^:[\w-]+$/, xUe = /^:[\w-]+/, SUe = 3.5, CUe = 3, wUe = 2, TUe = 1, EUe = 10, DUe = -2, i5 = (e) => e === "*";
-function OUe(e, t) {
+var EUe = /^:[\w-]+$/, DUe = /^:[\w-]+/, OUe = 3.5, kUe = 3, AUe = 2, jUe = 1, MUe = 10, NUe = -2, r5 = (e) => e === "*";
+function PUe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(i5) && (r += DUe), t && (r += wUe), n.filter((e) => !i5(e)).reduce((e, t) => e + (bUe.test(t) ? CUe : xUe.test(t) ? SUe : t === "" ? TUe : EUe), r);
+ return n.some(r5) && (r += NUe), t && (r += AUe), n.filter((e) => !r5(e)).reduce((e, t) => e + (EUe.test(t) ? kUe : DUe.test(t) ? OUe : t === "" ? jUe : MUe), r);
}
-function kUe(e, t) {
+function FUe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function AUe(e, t, n = !1) {
+function IUe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? o5(u, l, s.matcher, s.compiledParams) : a5(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = a5({
+ }, d = s.matcher && s.compiledParams ? a5(u, l, s.matcher, s.compiledParams) : i5(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = i5({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: f5([a, d.pathname]),
- pathnameBase: IUe(f5([a, d.pathnameBase])),
+ pathname: d5([a, d.pathname]),
+ pathnameBase: HUe(d5([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = f5([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = d5([a, d.pathnameBase]));
}
return o;
}
-function a5(e, t) {
+function i5(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = s5(e.path, e.caseSensitive, e.end);
- return o5(e, t, n, r);
+ let [n, r] = o5(e.path, e.caseSensitive, e.end);
+ return a5(e, t, n, r);
}
-function o5(e, t, n, r) {
+function a5(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = p5(a, 1), s = i.slice(1);
+ let a = i[0], o = f5(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = p5(a.slice(0, a.length - e.length), 1);
+ o = f5(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -74604,8 +74628,8 @@ function o5(e, t, n, r) {
pattern: e
};
}
-function s5(e, t = !1, n = !0) {
- e5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function o5(e, t = !1, n = !0) {
+ $8(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -74618,46 +74642,46 @@ function s5(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function jUe(e) {
+function LUe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return e5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return $8(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function c5(e, t) {
+function s5(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function MUe(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? t5(e) : e, a;
- return n ? (n = d5(n), a = n.startsWith("/") || n.startsWith("\\") ? l5(n.substring(1), "/") : l5(n, t)) : a = t, {
+function RUe(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? e5(e) : e, a;
+ return n ? (n = u5(n), a = n.startsWith("/") || n.startsWith("\\") ? c5(n.substring(1), "/") : c5(n, t)) : a = t, {
pathname: a,
- search: LUe(r),
- hash: RUe(i)
+ search: UUe(r),
+ hash: WUe(i)
};
}
-function l5(e, t) {
- let n = p5(t).split("/");
+function c5(e, t) {
+ let n = f5(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function u5(e, t, n, r) {
+function l5(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function NUe(e) {
+function zUe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function PUe(e) {
- let t = NUe(e);
+function BUe(e) {
+ let t = zUe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function FUe(e, t, n, r = !1) {
+function VUe(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = t5(e) : (i = { ...e }, $8(!i.pathname || !i.pathname.includes("?"), u5("?", "pathname", "search", i)), $8(!i.pathname || !i.pathname.includes("#"), u5("#", "pathname", "hash", i)), $8(!i.search || !i.search.includes("#"), u5("#", "search", "hash", i)));
+ typeof e == "string" ? i = e5(e) : (i = { ...e }, Q8(!i.pathname || !i.pathname.includes("?"), l5("?", "pathname", "search", i)), Q8(!i.pathname || !i.pathname.includes("#"), l5("#", "pathname", "hash", i)), Q8(!i.search || !i.search.includes("#"), l5("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -74669,16 +74693,16 @@ function FUe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = MUe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = RUe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var d5 = (e) => e.replace(/[\\/]{2,}/g, "/"), f5 = (e) => d5(e.join("/"));
-function p5(e, t = 0) {
+var u5 = (e) => e.replace(/[\\/]{2,}/g, "/"), d5 = (e) => u5(e.join("/"));
+function f5(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var IUe = (e) => p5(e).replace(/^\/*/, "/"), LUe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, RUe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, zUe = class {
+var HUe = (e) => f5(e).replace(/^\/*/, "/"), UUe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, WUe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, GUe = class {
status;
statusText;
data;
@@ -74688,26 +74712,26 @@ var IUe = (e) => p5(e).replace(/^\/*/, "/"), LUe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function BUe(e) {
+function KUe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function VUe(e) {
- return f5(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function qUe(e) {
+ return d5(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var m5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function HUe(e, t) {
+var p5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function JUe(e, t) {
let n = e;
- if (typeof n != "string" || !fUe.test(n)) return {
+ if (typeof n != "string" || !vUe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (m5) try {
- let e = new URL(window.location.href), r = pUe.test(n) ? new URL(mUe(n, e.protocol)) : new URL(n), a = c5(r.pathname, t);
+ if (p5) try {
+ let e = new URL(window.location.href), r = yUe.test(n) ? new URL(bUe(n, e.protocol)) : new URL(n), a = s5(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- e5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ $8(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -74717,45 +74741,45 @@ function HUe(e, t) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
-var h5 = new URL("http://localhost");
-function g5(e) {
+var m5 = new URL("http://localhost");
+function h5(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), h5);
+ return new URL(e.createHref("/"), m5);
} catch {
- return h5;
+ return m5;
}
}
-function _5(e, t) {
+function g5(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function UUe(e, t) {
+function YUe(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function v5(e, t, n, r) {
+function _5(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !_5(i, n), s = !_5(a, n);
+ let a = new URL(t, n), o = i != null && !g5(i, n), s = !g5(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !UUe(e, i) || !_5(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !YUe(e, i) || !g5(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
-var y5 = [
+var v5 = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(y5);
-var WUe = ["GET", ...y5];
-new Set(WUe);
-var GUe = [
+new Set(v5);
+var XUe = ["GET", ...v5];
+new Set(XUe);
+var ZUe = [
"about:",
"blob:",
"chrome:",
@@ -74767,85 +74791,85 @@ var GUe = [
"filesystem:",
"javascript:"
];
-function KUe(e) {
+function QUe(e) {
try {
- return GUe.includes(new URL(e).protocol);
+ return ZUe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
+var y5 = V.createContext(null);
+y5.displayName = "DataRouter";
+var $Ue = V.createContext(null);
+$Ue.displayName = "DataRouterState";
var b5 = V.createContext(null);
-b5.displayName = "DataRouter";
-var qUe = V.createContext(null);
-qUe.displayName = "DataRouterState";
+b5.displayName = "DataRouterData";
+var eWe = V.createContext(null);
+eWe.displayName = "DataRouterNavigation";
+var tWe = V.createContext(!1), nWe = V.createContext({ isTransitioning: !1 });
+nWe.displayName = "ViewTransition";
+var rWe = V.createContext(null);
+rWe.displayName = "Fetchers";
+var iWe = V.createContext(null);
+iWe.displayName = "Await";
var x5 = V.createContext(null);
-x5.displayName = "DataRouterData";
-var JUe = V.createContext(null);
-JUe.displayName = "DataRouterNavigation";
-var YUe = V.createContext(!1), XUe = V.createContext({ isTransitioning: !1 });
-XUe.displayName = "ViewTransition";
-var ZUe = V.createContext(null);
-ZUe.displayName = "Fetchers";
-var QUe = V.createContext(null);
-QUe.displayName = "Await";
+x5.displayName = "Navigation";
var S5 = V.createContext(null);
-S5.displayName = "Navigation";
-var C5 = V.createContext(null);
-C5.displayName = "Location";
-var w5 = V.createContext({
+S5.displayName = "Location";
+var C5 = V.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-w5.displayName = "Route";
-var T5 = V.createContext(!1);
-T5.displayName = "IsDataRoute";
-var E5 = V.createContext(void 0);
-E5.displayName = "RouteId";
-var D5 = V.createContext(null);
-D5.displayName = "RouteError";
+C5.displayName = "Route";
+var w5 = V.createContext(!1);
+w5.displayName = "IsDataRoute";
+var T5 = V.createContext(void 0);
+T5.displayName = "RouteId";
+var E5 = V.createContext(null);
+E5.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var O5 = "REACT_ROUTER_ERROR", $Ue = "REDIRECT", eWe = "ROUTE_ERROR_RESPONSE";
-function tWe(e) {
- if (e.startsWith(`${O5}:${$Ue}:{`)) try {
+var D5 = "REACT_ROUTER_ERROR", aWe = "REDIRECT", oWe = "ROUTE_ERROR_RESPONSE";
+function sWe(e) {
+ if (e.startsWith(`${D5}:${aWe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function nWe(e) {
- if (e.startsWith(`${O5}:${eWe}:{`)) try {
+function cWe(e) {
+ if (e.startsWith(`${D5}:${oWe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new zUe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new GUe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
-function k5() {
- return V.useContext(C5) != null;
+function O5() {
+ return V.useContext(S5) != null;
}
-function A5() {
- return $8(k5(), "useLocation() may be used only in the context of a <Router> component."), V.useContext(C5).location;
+function k5() {
+ return Q8(O5(), "useLocation() may be used only in the context of a <Router> component."), V.useContext(S5).location;
}
-var j5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function rWe() {
- return V.useContext(T5) ? hWe() : iWe();
+var A5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function lWe() {
+ return V.useContext(w5) ? bWe() : uWe();
}
-function iWe() {
- $8(k5(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = V.useContext(b5), { basename: t, navigator: n } = V.useContext(S5), { matches: r } = V.useContext(w5), { pathname: i } = A5(), a = JSON.stringify(PUe(r)), o = V.useRef(!1);
+function uWe() {
+ Q8(O5(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = V.useContext(y5), { basename: t, navigator: n } = V.useContext(x5), { matches: r } = V.useContext(C5), { pathname: i } = k5(), a = JSON.stringify(BUe(r)), o = V.useRef(!1);
return V.useLayoutEffect(() => {
o.current = !0;
}), V.useCallback((r, s = {}) => {
- if (e5(o.current, j5), !o.current) return;
+ if ($8(o.current, A5), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = FUe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : f5([t, c.pathname])), v5(typeof r == "string" ? r : hUe(r), n.createHref(c), g5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = VUe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : d5([t, c.pathname])), _5(typeof r == "string" ? r : xUe(r), n.createHref(c), h5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -74855,19 +74879,19 @@ function iWe() {
]);
}
V.createContext(null);
-function aWe(e, t) {
- return M5(e, t);
+function dWe(e, t) {
+ return j5(e, t);
}
-function M5(e, t, n) {
- $8(k5(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = V.useContext(S5), { matches: i } = V.useContext(w5), a = i[i.length - 1], o = a ? a.params : {};
+function j5(e, t, n) {
+ Q8(O5(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = V.useContext(x5), { matches: i } = V.useContext(C5), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = A5(), l;
+ let c = k5(), l;
if (t) {
- let e = typeof t == "string" ? t5(t) : t;
- $8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? e5(t) : t;
+ Q8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -74875,13 +74899,13 @@ function M5(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : gUe(e, { pathname: d });
- let p = dWe(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : SUe(e, { pathname: d });
+ let p = gWe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: f5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : f5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: d5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : d5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ V.createElement(C5.Provider, { value: {
+ return t && p ? /* @__PURE__ */ V.createElement(S5.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -74894,14 +74918,14 @@ function M5(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function oWe() {
- let e = mWe(), t = BUe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function fWe() {
+ let e = yWe(), t = KUe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ V.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ V.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var sWe = /* @__PURE__ */ V.createElement(oWe, null), cWe = class extends V.Component {
+var M5 = /* @__PURE__ */ V.createElement(fWe, null), pWe = class extends V.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -74909,7 +74933,7 @@ var sWe = /* @__PURE__ */ V.createElement(oWe, null), cWe = class extends V.Comp
error: e.error
};
}
- static contextType = YUe;
+ static contextType = tWe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -74930,26 +74954,26 @@ var sWe = /* @__PURE__ */ V.createElement(oWe, null), cWe = class extends V.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = nWe(e.digest);
+ let t = cWe(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ V.createElement(w5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ V.createElement(T5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ V.createElement(E5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ V.createElement(D5.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ V.createElement(C5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ V.createElement(w5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ V.createElement(T5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ V.createElement(E5.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ V.createElement(lWe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ V.createElement(mWe, { error: e }, t) : t;
}
}, N5 = /* @__PURE__ */ new WeakMap();
-function lWe({ children: e, error: t }) {
- let { basename: n, navigator: r } = V.useContext(S5);
+function mWe({ children: e, error: t }) {
+ let { basename: n, navigator: r } = V.useContext(x5);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = tWe(t.digest);
+ let e = sWe(t.digest);
if (e) {
let i = N5.get(t);
if (i) throw i;
- let a = HUe(e.location, n), o = a.absoluteURL || a.to;
- if (v5(e.location, o, g5(r), "allow-explicit"), KUe(o)) throw Error("Invalid redirect location");
- if (m5 && !N5.get(t)) {
+ let a = JUe(e.location, n), o = a.absoluteURL || a.to;
+ if (_5(e.location, o, h5(r), "allow-explicit"), QUe(o)) throw Error("Invalid redirect location");
+ if (p5 && !N5.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
@@ -74964,11 +74988,11 @@ function lWe({ children: e, error: t }) {
}
return e;
}
-function uWe({ routeContext: e, match: t, children: n }) {
- let r = V.useContext(b5);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ V.createElement(w5.Provider, { value: e }, /* @__PURE__ */ V.createElement(T5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ V.createElement(E5.Provider, { value: t.route.id }, n)));
+function hWe({ routeContext: e, match: t, children: n }) {
+ let r = V.useContext(y5);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ V.createElement(C5.Provider, { value: e }, /* @__PURE__ */ V.createElement(w5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ V.createElement(T5.Provider, { value: t.route.id }, n)));
}
-function dWe(e, t = [], n) {
+function gWe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -74979,7 +75003,7 @@ function dWe(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- $8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ Q8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -74999,16 +75023,16 @@ function dWe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: VUe(r.matches),
+ pattern: qUe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || sWe, o && (s < 0 && c === 0 ? (gWe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || M5, o && (s < 0 && c === 0 ? (xWe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ V.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ V.createElement(uWe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ V.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ V.createElement(hWe, {
match: n,
routeContext: {
outlet: e,
@@ -75018,7 +75042,7 @@ function dWe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ V.createElement(cWe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ V.createElement(pWe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -75036,41 +75060,41 @@ function dWe(e, t = [], n) {
function P5(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function fWe(e) {
- let t = V.useContext(b5);
- return $8(t, P5(e)), t;
+function _We(e) {
+ let t = V.useContext(y5);
+ return Q8(t, P5(e)), t;
}
-function pWe(e) {
- let t = V.useContext(x5);
- return $8(t, P5(e)), t;
+function vWe(e) {
+ let t = V.useContext(b5);
+ return Q8(t, P5(e)), t;
}
function F5(e) {
- let t = V.useContext(E5);
- return $8(t, `${e} can only be used on routes that contain a unique "id"`), t;
+ let t = V.useContext(T5);
+ return Q8(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function mWe() {
- let e = V.useContext(D5), t = pWe("useRouteError"), n = F5("useRouteError");
+function yWe() {
+ let e = V.useContext(E5), t = vWe("useRouteError"), n = F5("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function hWe() {
- let { router: e } = fWe("useNavigate"), t = F5("useNavigate"), n = V.useRef(!1);
+function bWe() {
+ let { router: e } = _We("useNavigate"), t = F5("useNavigate"), n = V.useRef(!1);
return V.useLayoutEffect(() => {
n.current = !0;
}), V.useCallback(async (r, i = {}) => {
- e5(n.current, j5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ $8(n.current, A5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
var I5 = {};
-function gWe(e, t, n) {
- !t && !I5[e] && (I5[e] = !0, e5(!1, n));
+function xWe(e, t, n) {
+ !t && !I5[e] && (I5[e] = !0, $8(!1, n));
}
-V.memo(_We);
-function _We({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = V.useContext(b5);
- return $8(a, "You must render this element inside a <DataRouterContext.Provider> element"), M5(e, void 0, {
+V.memo(SWe);
+function SWe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = V.useContext(y5);
+ return Q8(a, "You must render this element inside a <DataRouterContext.Provider> element"), j5(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -75079,10 +75103,10 @@ function _We({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
});
}
function L5(e) {
- $8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+ Q8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function vWe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- $8(!k5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function CWe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ Q8(!O5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = V.useMemo(() => ({
basename: s,
navigator: i,
@@ -75095,9 +75119,9 @@ function vWe({ basename: e = "/", children: t = null, location: n, navigationTyp
a,
o
]);
- typeof n == "string" && (n = t5(n));
+ typeof n == "string" && (n = e5(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = V.useMemo(() => {
- let e = c5(l, s);
+ let e = s5(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -75119,13 +75143,13 @@ function vWe({ basename: e = "/", children: t = null, location: n, navigationTyp
r,
m
]);
- return e5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ V.createElement(S5.Provider, { value: c }, /* @__PURE__ */ V.createElement(C5.Provider, {
+ return $8(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ V.createElement(x5.Provider, { value: c }, /* @__PURE__ */ V.createElement(S5.Provider, {
children: t,
value: h
}));
}
-function yWe({ children: e, location: t }) {
- return aWe(R5(e), t);
+function wWe({ children: e, location: t }) {
+ return dWe(R5(e), t);
}
V.Component;
function R5(e, t = []) {
@@ -75137,9 +75161,9 @@ function R5(e, t = []) {
n.push.apply(n, R5(e.props.children, i));
return;
}
- $8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ Q8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- $8(!a.index || !a.children, "An index route cannot have child routes.");
+ Q8(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -75164,11 +75188,11 @@ function R5(e, t = []) {
//#endregion
//#region src/react/router/router.tsx
var z5 = (0, V.createContext)(0), B5 = (0, V.createContext)(null);
-function bWe({ children: e }) {
+function TWe({ children: e }) {
let [t, n] = (0, V.useState)(() => $e.navigation);
return (0, V.useLayoutEffect)(() => (n($e.navigation), $e.listen(n)), []), /* @__PURE__ */ (0, H.jsx)(z5.Provider, {
value: t.seq,
- children: /* @__PURE__ */ (0, H.jsx)(vWe, {
+ children: /* @__PURE__ */ (0, H.jsx)(CWe, {
location: t.location,
navigationType: t.action,
navigator: $e,
@@ -75176,51 +75200,51 @@ function bWe({ children: e }) {
})
});
}
-function xWe() {
+function EWe() {
let e = (0, V.useContext)(z5);
return (0, V.useLayoutEffect)(() => {
queueMicrotask(() => et(e));
}, [e]), null;
}
-function SWe({ target: e }) {
- let t = rWe();
+function DWe({ target: e }) {
+ let t = lWe();
return (0, V.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function CWe(e, t, n) {
+function OWe(e, t, n) {
let r = new URL(e, window.location.href);
- if (!Q8(r.pathname)) {
+ if (!q8(r.pathname)) {
t.navigate(e);
return;
}
n(`${r.pathname}${r.search}${r.hash}`);
}
-function wWe() {
+function kWe() {
let e = (0, V.useContext)(B5), [t, n] = (0, V.useState)(Qe), r = (0, V.useRef)(null);
- (0, V.useLayoutEffect)(() => (n(Qe()), Ze((e) => {
- (0, kt.flushSync)(() => n(e));
+ (0, V.useLayoutEffect)(() => (n(Qe()), Ze((e, t) => {
+ t ? (0, kt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, V.useMemo)(() => (t) => {
- e && r.current && CWe(t, e, r.current);
+ e && r.current && OWe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(SWe, { target: r }), t && e ? /* @__PURE__ */ (0, H.jsx)(TWe, {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(DWe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, H.jsx)(AWe, {
entry: t,
actions: e,
go: i
- }) : null] });
+ }, t.revision)) : null] });
}
-var TWe = (0, V.memo)(function({ entry: e, actions: t, go: n }) {
- return Q8(e.path) ? (0, kt.createPortal)(dUe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+var AWe = (0, V.memo)(function({ entry: e, actions: t, go: n }) {
+ return X8(e.path) ? (0, kt.createPortal)(_Ue(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function EWe({ children: e, actions: t = null }) {
+function jWe({ children: e, actions: t = null }) {
return /* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(B5.Provider, {
value: t,
- children: /* @__PURE__ */ (0, H.jsxs)(bWe, { children: [
- /* @__PURE__ */ (0, H.jsx)(xWe, {}),
- /* @__PURE__ */ (0, H.jsx)(wWe, {}),
- /* @__PURE__ */ (0, H.jsxs)(yWe, { children: [
- Object.keys(Z8).map((e) => /* @__PURE__ */ (0, H.jsx)(L5, {
+ children: /* @__PURE__ */ (0, H.jsxs)(TWe, { children: [
+ /* @__PURE__ */ (0, H.jsx)(EWe, {}),
+ /* @__PURE__ */ (0, H.jsx)(kWe, {}),
+ /* @__PURE__ */ (0, H.jsxs)(wWe, { children: [
+ hUe.map((e) => /* @__PURE__ */ (0, H.jsx)(L5, {
path: e,
element: null
}, e)),
@@ -75237,11 +75261,11 @@ function EWe({ children: e, actions: t = null }) {
}) });
}
var V5 = null;
-function DWe(e) {
+function MWe(e) {
if (V5) return;
V5 = (0, At.createRoot)(document.createElement("div"));
let t = V5;
- (0, kt.flushSync)(() => t.render(/* @__PURE__ */ (0, H.jsx)(EWe, { actions: e })));
+ (0, kt.flushSync)(() => t.render(/* @__PURE__ */ (0, H.jsx)(jWe, { actions: e })));
}
//#endregion
//#region src/number-setting.ts
@@ -75250,35 +75274,35 @@ function H5(e, t, n, r) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var OWe = (e) => {
+var NWe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function kWe({ openConfiguration: e }) {
+function PWe({ openConfiguration: e }) {
let t = Cn({
- queryKey: rR,
- queryFn: ({ signal: e }) => iR(e)
+ queryKey: nR,
+ queryFn: ({ signal: e }) => rR(e)
}), n = t.data;
return /* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, H.jsxs)(dj, { children: [
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ children: [n ? /* @__PURE__ */ (0, H.jsxs)(Fk, { children: [
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, H.jsx)(fj, {
+ /* @__PURE__ */ (0, H.jsx)(Ik, {
term: "更新",
- children: OWe(n)
+ children: NWe(n)
})
- ] }) : /* @__PURE__ */ (0, H.jsx)(aj, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, H.jsx)(kk, { children: /* @__PURE__ */ (0, H.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? R(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, H.jsx)(oj, {
+ }) }), /* @__PURE__ */ (0, H.jsx)(Ak, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, H.jsx)(J, {
onClick: e,
@@ -75335,7 +75359,7 @@ function G5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function AWe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function FWe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, V.useRef)(null), c = (0, V.useRef)(null), l = (0, V.useRef)({
onStep: a,
onSettle: o
@@ -75370,7 +75394,7 @@ function AWe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var jWe = [
+var IWe = [
[
"strength",
"强度",
@@ -75397,7 +75421,7 @@ var jWe = [
100
]
];
-function MWe({ host: e, spot: t, index: n, glow: r }) {
+function LWe({ host: e, spot: t, index: n, glow: r }) {
let i = tt[n], a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useRef)(null), [c, l] = (0, V.useState)("all");
(0, V.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -75436,7 +75460,7 @@ function MWe({ host: e, spot: t, index: n, glow: r }) {
children: u
})]
}),
- /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-down" })
+ /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, H.jsxs)("div", {
className: "popmenu",
@@ -75475,7 +75499,7 @@ function MWe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function NWe({ host: e }) {
+function RWe({ host: e }) {
let t = e.store.value.homeGlow, n = st(t.preset);
return /* @__PURE__ */ (0, H.jsxs)("section", {
"data-glow-setting": "",
@@ -75494,7 +75518,7 @@ function NWe({ host: e }) {
children: ot(t.preset)
})]
}),
- /* @__PURE__ */ (0, H.jsx)(Fj, {
+ /* @__PURE__ */ (0, H.jsx)(Lj, {
store: e.store,
label: "光晕配色"
}),
@@ -75505,7 +75529,7 @@ function NWe({ host: e }) {
}),
/* @__PURE__ */ (0, H.jsx)("div", {
"data-glow-fields": "",
- children: jWe.map(([r, i, a]) => /* @__PURE__ */ (0, H.jsx)(AWe, {
+ children: IWe.map(([r, i, a]) => /* @__PURE__ */ (0, H.jsx)(FWe, {
field: r,
label: i,
max: a,
@@ -75527,7 +75551,7 @@ function NWe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, H.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, H.jsx)("div", {
"data-glow-stops": "",
- children: it.map((n, r) => /* @__PURE__ */ (0, H.jsx)(MWe, {
+ children: it.map((n, r) => /* @__PURE__ */ (0, H.jsx)(LWe, {
host: e,
spot: n,
index: r,
@@ -75552,7 +75576,7 @@ function NWe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var PWe = {
+var zWe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -75595,7 +75619,7 @@ var PWe = {
}
}, K5 = (e) => `peach.number.${e}`;
function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = PWe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, V.useRef)(0);
+ let a = zWe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, V.useRef)(0);
d.current ||= H5(Number(localStorage.getItem(K5(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, V.useState)(n ?? 0), [m, h] = (0, V.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, V.useState)(""), v = (0, V.useRef)(null), y = (0, V.useRef)(i);
y.current = i, (0, V.useLayoutEffect)(() => {
@@ -75674,7 +75698,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#endregion
//#region src/react/sidebar/sidebar-order.ts
function J5(e) {
- let { mutate: t } = TF();
+ let { mutate: t } = yF();
return (0, V.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -75689,8 +75713,8 @@ function Y5(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var FWe = "__home__", X5 = (e) => e === "" ? FWe : e;
-function IWe({ host: e }) {
+var BWe = "__home__", X5 = (e) => e === "" ? BWe : e;
+function VWe({ host: e }) {
let t = J5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, V.useState)(null), [c, l] = (0, V.useState)(!1), [u, d] = (0, V.useState)(null), [f, p] = (0, V.useState)(null), m = (0, V.useRef)(null), h = (0, V.useRef)(null), g = (e, r, i) => {
let a = Y5(n, e, r, i);
a && t(a);
@@ -75752,9 +75776,9 @@ function IWe({ host: e }) {
/* @__PURE__ */ (0, H.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, H.jsx)(aP, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, H.jsx)($N, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, H.jsx)(aP, { name: a ?? "" }),
+ /* @__PURE__ */ (0, H.jsx)($N, { name: a ?? "" }),
/* @__PURE__ */ (0, H.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, H.jsxs)("span", {
@@ -75768,7 +75792,7 @@ function IWe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
@@ -75778,7 +75802,7 @@ function IWe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
@@ -75790,7 +75814,7 @@ function IWe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, H.jsx)(aP, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, H.jsx)($N, { name: "eye-off" })
})
]
})]
@@ -75810,13 +75834,13 @@ function IWe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
- /* @__PURE__ */ (0, H.jsx)(aP, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, H.jsx)($N, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, H.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(aP, { name: "check" }), /* @__PURE__ */ (0, H.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)($N, { name: "check" }), /* @__PURE__ */ (0, H.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, H.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -75834,7 +75858,7 @@ function IWe({ host: e }) {
onClick: () => {
s(X5(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, H.jsx)(aP, { name: n ?? "" }), /* @__PURE__ */ (0, H.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, H.jsx)($N, { name: n ?? "" }), /* @__PURE__ */ (0, H.jsx)("span", { children: t })]
}, X5(e)))
}) : null]
}), /* @__PURE__ */ (0, H.jsx)("button", {
@@ -75860,7 +75884,7 @@ var Z5 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], LWe = [
+], HWe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -75869,16 +75893,16 @@ var Z5 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], RWe = [["desc", "降序"], ["asc", "升序"]], zWe = [
+], UWe = [["desc", "降序"], ["asc", "升序"]], WWe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], BWe = [
+], GWe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], VWe = [[
+], KWe = [[
"cover",
"官方封面",
""
@@ -75886,7 +75910,7 @@ var Z5 = [
"thumbnail",
"预览图",
""
-]], HWe = [
+]], qWe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -75911,19 +75935,19 @@ var Z5 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], UWe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", Q5 = null, $5 = null, e7 = null, t7 = {
+], JWe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", Q5 = null, $5 = null, e7 = null, t7 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
}, n7 = 0, r7 = null;
-function WWe() {
+function YWe() {
return (!$5 || !e7?.isConnected) && ($5?.unmount(), e7 = document.createElement("div"), e7.dataset.settingsHost = "", document.body.append(e7), $5 = (0, At.createRoot)(e7)), $5;
}
function i7() {
let e = Q5;
- e && (0, kt.flushSync)(() => WWe().render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(ZWe, {
+ e && (0, kt.flushSync)(() => YWe().render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(nGe, {
host: e,
view: t7
}) })));
@@ -75934,7 +75958,7 @@ function a7(e) {
...e
}, i7();
}
-async function GWe(e) {
+async function XWe(e) {
if (t7.machine === "summary") return;
let t = await e.configurable();
if (t7.open) {
@@ -75943,16 +75967,16 @@ async function GWe(e) {
return;
}
try {
- await aR(new AbortController().signal);
+ await iR(new AbortController().signal);
} catch {}
t7.open && a7({ machine: "summary" });
}
}
-function KWe(e = "") {
+function ZWe(e = "") {
let t = Q5;
if (!t) return;
de(), n7 += 1, r7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = Z5.findIndex(([t]) => t === e), r = Jme();
+ let n = Z5.findIndex(([t]) => t === e), r = Pme();
a7({
open: !0,
closing: !1,
@@ -75960,7 +75984,7 @@ function KWe(e = "") {
tab: n >= 0 ? n : t7.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), GWe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), XWe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function o7() {
if (!t7.open || t7.closing) return;
@@ -75978,24 +76002,24 @@ function o7() {
}
e7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var qWe = {
- open: KWe,
+var QWe = {
+ open: ZWe,
close: o7,
isOpen: () => t7.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function JWe(e) {
- return Q5 = e, i7(), qWe;
+function $We(e) {
+ return Q5 = e, i7(), QWe;
}
-function YWe(e) {
+function eGe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(UWe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(JWe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var s7 = (e) => `settings-tab-${e}`, c7 = (e) => e === Z5.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function XWe({ tab: e, epoch: t, onSelect: n }) {
+function tGe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(e), s = (0, V.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -76067,7 +76091,7 @@ function XWe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, H.jsx)(ype, { name: r }), t]
+ children: [/* @__PURE__ */ (0, H.jsx)(ape, { name: r }), t]
}, t))
]
});
@@ -76111,7 +76135,7 @@ var f7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, H.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), p7 = () => `${Ne("保存中")}<span>正在保存…</span>`, m7 = (e, t) => e instanceof Error && e.message || t;
-function ZWe({ host: e, view: t }) {
+function nGe({ host: e, view: t }) {
(0, V.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useRef)(null), c = (0, V.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -76143,7 +76167,7 @@ function ZWe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: YWe,
+ onKeyDown: eGe,
onClick: (e) => {
e.target === e.currentTarget && o7();
},
@@ -76168,7 +76192,7 @@ function ZWe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, H.jsx)(XWe, {
+ /* @__PURE__ */ (0, H.jsx)(tGe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -76230,23 +76254,23 @@ function ZWe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, H.jsx)(NWe, { host: e }),
+ /* @__PURE__ */ (0, H.jsx)(RWe, { host: e }),
/* @__PURE__ */ (0, H.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, H.jsxs)("span", { children: [/* @__PURE__ */ (0, H.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, H.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, H.jsx)(IWe, { host: e })]
+ }), /* @__PURE__ */ (0, H.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, H.jsx)(VWe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, H.jsx)($We, {
+ /* @__PURE__ */ (0, H.jsx)(iGe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, H.jsx)(tGe, {
+ /* @__PURE__ */ (0, H.jsx)(oGe, {
host: e,
tab: t.tab,
epoch: d
@@ -76254,12 +76278,12 @@ function ZWe({ host: e, view: t }) {
/* @__PURE__ */ (0, H.jsx)(l7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, H.jsx)(rGe, {
+ children: /* @__PURE__ */ (0, H.jsx)(cGe, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, H.jsx)(iGe, {
+ /* @__PURE__ */ (0, H.jsx)(lGe, {
host: e,
tab: t.tab,
epoch: d
@@ -76279,7 +76303,7 @@ function ZWe({ host: e, view: t }) {
/* @__PURE__ */ (0, H.jsx)(l7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, H.jsx)(oGe, {
+ children: /* @__PURE__ */ (0, H.jsx)(dGe, {
host: e,
machine: t.machine
})
@@ -76290,7 +76314,7 @@ function ZWe({ host: e, view: t }) {
})
});
}
-function QWe(e, t) {
+function rGe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = ve("arrow-up", "arrow-down", "a", {
@@ -76300,7 +76324,7 @@ function QWe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function $We({ host: e, tab: t, epoch: n }) {
+function iGe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, H.jsxs)(l7, {
index: 1,
@@ -76333,7 +76357,7 @@ function $We({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, H.jsx)(G5, {
id: "defaultSortSetting",
label: "默认排序",
- options: LWe,
+ options: HWe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -76342,7 +76366,7 @@ function $We({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, H.jsx)(G5, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: RWe,
+ options: UWe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -76351,7 +76375,7 @@ function $We({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => QWe(e, o)
+ decorate: (e) => rGe(e, o)
})]
})
}),
@@ -76375,7 +76399,7 @@ function $We({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: VWe,
+ options: KWe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -76412,7 +76436,7 @@ function $We({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- HWe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, H.jsx)(eGe, {
+ qWe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, H.jsx)(aGe, {
host: e,
id: t,
settingKey: n,
@@ -76424,8 +76448,8 @@ function $We({ host: e, tab: t, epoch: n }) {
]
});
}
-function eGe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = TF(), [c, l] = (0, V.useState)(null), u = (0, V.useRef)(null), d = e.store.value, f = (t) => {
+function aGe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = yF(), [c, l] = (0, V.useState)(null), u = (0, V.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ae(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -76453,7 +76477,7 @@ function eGe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function tGe({ host: e, tab: t, epoch: n }) {
+function oGe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, H.jsxs)(l7, {
index: 2,
@@ -76507,7 +76531,7 @@ function tGe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, H.jsx)(nGe, { epoch: n }),
+ /* @__PURE__ */ (0, H.jsx)(sGe, { epoch: n }),
/* @__PURE__ */ (0, H.jsx)(d7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
@@ -76526,15 +76550,15 @@ function tGe({ host: e, tab: t, epoch: n }) {
]
});
}
-function nGe({ epoch: e }) {
+function sGe({ epoch: e }) {
let t = Cn({
- queryKey: SF,
- queryFn: ({ signal: e }) => wF(e)
- }), n = Xme(), r = n.reset;
+ queryKey: gF,
+ queryFn: ({ signal: e }) => vF(e)
+ }), n = Ime(), r = n.reset;
(0, V.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? xe("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(Qme(t.data)) : "读取运行状态…";
+ let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? xe("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(Rme(t.data)) : "读取运行状态…";
return /* @__PURE__ */ (0, H.jsx)(d7, {
title: "视频缩略图采集",
description: /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, H.jsx)(f7, {
@@ -76545,7 +76569,7 @@ function nGe({ epoch: e }) {
children: /* @__PURE__ */ (0, H.jsx)(G5, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: zWe,
+ options: WWe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -76553,8 +76577,8 @@ function nGe({ epoch: e }) {
})
});
}
-function rGe({ host: e, epoch: t }) {
- let n = e.store.value, r = TF();
+function cGe({ host: e, epoch: t }) {
+ let n = e.store.value, r = yF();
return /* @__PURE__ */ (0, H.jsx)(d7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
@@ -76571,8 +76595,8 @@ function rGe({ host: e, epoch: t }) {
})
});
}
-function iGe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = TF(), a = TF(), [o, s] = (0, V.useState)("");
+function lGe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = yF(), a = yF(), [o, s] = (0, V.useState)("");
(0, V.useEffect)(() => {
s("");
}, [n]);
@@ -76607,14 +76631,14 @@ function iGe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, H.jsx)(aGe, { epoch: n }),
+ /* @__PURE__ */ (0, H.jsx)(uGe, { epoch: n }),
/* @__PURE__ */ (0, H.jsx)(d7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
children: /* @__PURE__ */ (0, H.jsx)(G5, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: BWe,
+ options: GWe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -76626,15 +76650,15 @@ function iGe({ host: e, tab: t, epoch: n }) {
]
});
}
-function aGe({ epoch: e }) {
+function uGe({ epoch: e }) {
let t = Cn({
- queryKey: xF,
- queryFn: ({ signal: e }) => CF(e)
- }), n = Yme(), r = n.reset;
+ queryKey: hF,
+ queryFn: ({ signal: e }) => _F(e)
+ }), n = Fme(), r = n.reset;
(0, V.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? p7() : t.isFetching ? xe("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(Zme(i)) : "读取运行状态…";
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? p7() : t.isFetching ? xe("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(Lme(i)) : "读取运行状态…";
return /* @__PURE__ */ (0, H.jsx)(d7, {
title: "关注自动更新",
description: /* @__PURE__ */ (0, H.jsx)(f7, {
@@ -76654,12 +76678,12 @@ function aGe({ epoch: e }) {
})
});
}
-function oGe({ host: e, machine: t }) {
+function dGe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, H.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, H.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, H.jsx)(kWe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, H.jsx)(PWe, { openConfiguration: () => {
o7(), e.openConfiguration();
} })
})
@@ -76673,7 +76697,7 @@ function h7(e) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var g7 = "__home__", sGe = {
+var g7 = "__home__", fGe = {
creator: 26,
tag: 30,
tech: 16
@@ -76686,13 +76710,13 @@ function S7() {
let e = v7;
if (!e || !y7) return;
let t = b7, n = x7;
- (0, kt.flushSync)(() => y7.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(uGe, {
+ (0, kt.flushSync)(() => y7.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(hGe, {
host: e,
props: t,
epoch: n
}) })));
}
-var cGe = {
+var pGe = {
render(e) {
b7 = e, S7();
},
@@ -76700,23 +76724,23 @@ var cGe = {
x7 += 1, S7();
}
};
-function lGe(e) {
+function mGe(e) {
return v7 = e, b7 = {
content: null,
filters: {},
latest: null
- }, e.scroll.replaceChildren(), y7 = (0, At.createRoot)(e.scroll), S7(), e.attached(), cGe;
+ }, e.scroll.replaceChildren(), y7 = (0, At.createRoot)(e.scroll), S7(), e.attached(), pGe;
}
-function uGe({ host: e, props: t, epoch: n }) {
+function hGe({ host: e, props: t, epoch: n }) {
let r = (0, V.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, H.jsx)(dGe, {
+ /* @__PURE__ */ (0, H.jsx)(gGe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, H.jsx)(pGe, {
+ t.content ? /* @__PURE__ */ (0, H.jsx)(vGe, {
host: e,
content: t.content,
filters: t.filters,
@@ -76724,7 +76748,7 @@ function uGe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function dGe({ host: e, epoch: t, version: n }) {
+function gGe({ host: e, epoch: t, version: n }) {
let r = J5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, V.useRef)(null), l = (0, V.useRef)(null), u = pa(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || g7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, V.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
@@ -76781,7 +76805,7 @@ function dGe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, H.jsx)(aP, { name: r }), /* @__PURE__ */ (0, H.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, H.jsx)($N, { name: r }), /* @__PURE__ */ (0, H.jsx)("span", { children: n })]
}, t || g7))
}), v ? (0, kt.createPortal)(/* @__PURE__ */ (0, H.jsx)("span", {
"data-sidebar-glide": "",
@@ -76790,7 +76814,7 @@ function dGe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var C7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function fGe(e) {
+function _Ge(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -76803,7 +76827,7 @@ function fGe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function pGe({ host: e, content: t, filters: n, latest: r }) {
+function vGe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;
(0, V.useLayoutEffect)(() => {
t.kind === "catalog" && we(e.scroll, "drawer");
@@ -76812,8 +76836,8 @@ function pGe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? mGe(e, t.facets, n, r, i) : [hGe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, H.jsx)(gGe, {
+ let a = t.kind === "catalog" ? yGe(e, t.facets, n, r, i) : [bGe(e, t.tags, new Set(t.selected))], o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, H.jsx)(xGe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -76822,8 +76846,8 @@ function pGe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function mGe(e, t, n, r, i) {
- let a = fGe(r), o = (t, r, i) => {
+function yGe(e, t, n, r, i) {
+ let a = _Ge(r), o = (t, r, i) => {
if (!t.length) return null;
let o = C7(n, r);
return /* @__PURE__ */ (0, H.jsx)(E7, {
@@ -76848,12 +76872,12 @@ function mGe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, H.jsx)(vGe, {
+ body: /* @__PURE__ */ (0, H.jsx)(CGe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: sGe[d],
+ limit: fGe[d],
filterKey: l,
selected: f,
counts: a,
@@ -76868,7 +76892,7 @@ function mGe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, H.jsx)(yGe, {
+ body: /* @__PURE__ */ (0, H.jsx)(wGe, {
host: e,
filters: n
})
@@ -76891,7 +76915,7 @@ function mGe(e, t, n, r, i) {
} : null
];
}
-function hGe(e, t, n) {
+function bGe(e, t, n) {
return t.length ? {
title: "内容标签",
kind: "online",
@@ -76911,7 +76935,7 @@ function w7(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function gGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function xGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, V.useRef)(null), s = (0, V.useRef)(null), [c, l] = (0, V.useState)(() => w7(e, n)), u = (0, V.useRef)(!1);
(0, V.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -76937,7 +76961,7 @@ function gGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-right" }), /* @__PURE__ */ (0, H.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-right" }), /* @__PURE__ */ (0, H.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, H.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -76958,8 +76982,8 @@ function gGe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var T7 = (0, V.createContext)(() => {});
-function _Ge({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, H.jsx)(aP, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, H.jsx)("img", {
+function SGe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, H.jsx)($N, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, H.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -76982,7 +77006,7 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
title: e.offline,
onClick: () => a.toggleChip(t, e.value, n),
children: [
- /* @__PURE__ */ (0, H.jsx)(_Ge, { dot: e.dot }),
+ /* @__PURE__ */ (0, H.jsx)(SGe, { dot: e.dot }),
/* @__PURE__ */ (0, H.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -76997,7 +77021,7 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
})
});
}
-function vGe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function CGe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, V.useContext)(T7), [d, f] = (0, V.useState)(null), [p, m] = (0, V.useState)(e);
p !== e && (m(e), f(null));
let h = (0, V.useRef)(null), g = (0, V.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -77038,7 +77062,7 @@ function vGe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, H.jsx)(aP, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, H.jsx)($N, { name: "chevron-down" })
}) : null] });
}
function D7({ rows: e, host: t, selected: n, badges: r }) {
@@ -77063,7 +77087,7 @@ function D7({ rows: e, host: t, selected: n, badges: r }) {
});
}
var O7 = (e, t) => e ? Math.min(_7, Number(e) / 60) : t;
-function yGe({ host: e, filters: t }) {
+function wGe({ host: e, filters: t }) {
let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, V.useState)(n), [a, o] = (0, V.useState)(() => [O7(t.dur_min, 0), O7(t.dur_max, _7)]), [s, c] = (0, V.useState)("max");
r !== n && (i(n), o([O7(t.dur_min, 0), O7(t.dur_max, _7)]));
let [l, u] = a, d = (0, V.useRef)(null), f = (0, V.useRef)(null), p = (0, V.useRef)(null), m = (0, V.useRef)(a);
@@ -77133,17 +77157,17 @@ function yGe({ host: e, filters: t }) {
}
//#endregion
//#region src/board-skeleton.ts
-var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, bGe = () => `${k7("80%")}${k7("48%")}`, xGe = (e, t) => e.repeat(t);
-function SGe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${k7("85%")}${k7("65%")}${xGe(bGe(), 4)}</div></aside></div>`;
+var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, TGe = () => `${k7("80%")}${k7("48%")}`, EGe = (e, t) => e.repeat(t);
+function DGe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${k7("85%")}${k7("65%")}${EGe(TGe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var A7 = (e) => ["follow-item", e], CGe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, wGe = "/api/follow/save", TGe = "/api/follow/media/hide";
+var A7 = (e) => ["follow-item", e], OGe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, kGe = "/api/follow/save", AGe = "/api/follow/media/hide";
async function j7(e, t) {
- let n = await z(CGe(e), t);
+ let n = await z(OGe(e), t);
for (let t of n.groups || []) {
- let r = _O(t).find((t) => t.id === e);
+ let r = xO(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -77153,10 +77177,10 @@ async function j7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function EGe(e, t) {
- let n = A7(e.id), r = Vce(e.id), i = _.getQueryData(pO) ? null : _.fetchQuery({
- queryKey: pO,
- queryFn: () => mO(t)
+async function jGe(e, t) {
+ let n = A7(e.id), r = Lce(e.id), i = _.getQueryData(_O) ? null : _.fetchQuery({
+ queryKey: _O,
+ queryFn: () => vO(t)
});
r ? _.setQueryData(n, {
...r,
@@ -77166,8 +77190,8 @@ async function EGe(e, t) {
queryFn: () => j7(e.id, t)
}), await i;
}
-function DGe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && SO(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+function MGe(e, t, n, r) {
+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && EO(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
selected: s,
@@ -77181,32 +77205,32 @@ function DGe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var OGe = (e) => _O(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), kGe = {
+var NGe = (e) => xO(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), PGe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, AGe = {
+}, FGe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function jGe(e) {
+function IGe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return kGe[t] || t;
+ return PGe[t] || t;
} catch {
return "外部文件页";
}
}
function M7(e, t) {
- return AGe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return FGe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function MGe(e, t, n = "") {
+function LGe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -77215,16 +77239,16 @@ function MGe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var NGe = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", PGe = /* @__PURE__ */ new Set([
+var RGe = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", zGe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function FGe(e, t) {
+function BGe(e, t) {
let n = N7(e, t);
- return `r34-${PGe.has(n) ? n : "general"}`;
+ return `r34-${zGe.has(n) ? n : "general"}`;
}
var P7 = [
"copyright",
@@ -77233,23 +77257,23 @@ var P7 = [
"general",
"metadata"
];
-function IGe(e, t) {
+function VGe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = P7.indexOf(N7(e, t));
return n < 0 ? P7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function LGe(e, t) {
+function HGe(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var RGe = (e, t) => ({
+var UGe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), F7 = (e) => e?.size ? { size: e.size } : {};
-function zGe(e, t) {
+function WGe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -77276,7 +77300,7 @@ function zGe(e, t) {
total: 1
}] : [];
}
-var BGe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var GGe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
@@ -77330,29 +77354,29 @@ function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var VGe = ({ label: e, count: t }) => /* @__PURE__ */ (0, H.jsxs)("h3", {
+var KGe = ({ label: e, count: t }) => /* @__PURE__ */ (0, H.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, H.jsx)("span", { children: t })
]
-}), R7 = (e) => Number(e) > 0, HGe = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("span", {
+}), R7 = (e) => Number(e) > 0, qGe = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
}), z7 = l("external-link", "externalmark");
-function UGe(e) {
+function JGe(e) {
let { id: t, actions: n } = e, r = Cn({
queryKey: A7(t),
queryFn: ({ signal: e }) => j7(t, e)
}), i = Cn({
- queryKey: pO,
- queryFn: ({ signal: e }) => mO(e)
+ queryKey: _O,
+ queryFn: ({ signal: e }) => vO(e)
}), a = (0, V.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, V.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, H.jsx)(WGe, {
+ return r.data ? /* @__PURE__ */ (0, H.jsx)(YGe, {
...e,
data: r.data,
- context: RGe(r.data, a),
+ context: UGe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, H.jsx)("div", {
@@ -77380,8 +77404,8 @@ var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, H.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = DGe(s, c, n, i), u = JGe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, V.useState)({
+function YGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = MGe(s, c, n, i), u = $Ge(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, V.useState)({
key: "",
kind: ""
}), m = {
@@ -77401,7 +77425,7 @@ function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? OGe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, H.jsx)(W7, {
+ let h = !l.embedded.length && l.collection ? NGe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, H.jsx)(W7, {
item: s,
current: l.selected.index,
helpers: a,
@@ -77414,7 +77438,7 @@ function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, H.jsx)(KGe, {
+ }) : /* @__PURE__ */ (0, H.jsx)(ZGe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -77425,7 +77449,7 @@ function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(GGe, {
+ /* @__PURE__ */ (0, H.jsx)(XGe, {
item: s,
media: l,
helpers: a,
@@ -77434,7 +77458,7 @@ function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, H.jsx)(qGe, {
+ /* @__PURE__ */ (0, H.jsx)(QGe, {
item: s,
data: e,
context: t,
@@ -77447,8 +77471,8 @@ function WGe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function GGe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: u, carousel: d, frameRatio: f } = t, p = (0, V.useRef)(null), [m, h] = (0, V.useState)(null), g = zGe(e, t), _ = o?.thumb_url || e.thumb_url || "", v = e.playable && a === "video", y = e.playable && a === "image" ? s : e.thumb_url || "", b = e.playable && a === "image" && _ && _ !== s ? _ : "", [x, S] = (0, V.useState)(y), C = (0, V.useRef)({
+function XGe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: u, carousel: d, frameRatio: f } = t, p = (0, V.useRef)(null), [m, h] = (0, V.useState)(null), g = WGe(e, t), _ = o?.thumb_url || e.thumb_url || "", v = e.playable && a === "video", y = e.playable && a === "image" ? s : e.thumb_url || "", b = e.playable && a === "image" && _ && _ !== s ? _ : "", [x, S] = (0, V.useState)(y), C = (0, V.useRef)({
item: e,
selected: o
}), w = (0, V.useRef)(i.failed);
@@ -77485,7 +77509,7 @@ function GGe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: x,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: g.length ? () => void XT(Math.max(0, u), g) : void 0,
+ onClick: g.length ? () => void eE(Math.max(0, u), g) : void 0,
onError: () => {
if (b && x !== b) {
S(b), i.thumbFallback();
@@ -77497,7 +77521,7 @@ function GGe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, H.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: OO(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: MO(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, H.jsx)("span", { children: "没有可用预览" })]
}),
d ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
@@ -77555,8 +77579,8 @@ function U7(e) {
t && e.wireDrag(t);
}, [e]);
}
-function KGe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = SO(e), a = U7(n);
+function ZGe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = EO(e), a = U7(n);
return /* @__PURE__ */ (0, H.jsx)(I7, {
kind: "collection",
"data-follow-queue": "",
@@ -77565,7 +77589,7 @@ function KGe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = MGe(e, n, i ? n.provider_label : ""), s = i ? OO(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = LGe(e, n, i ? n.provider_label : ""), s = i ? MO(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, H.jsxs)(L7, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -77588,7 +77612,7 @@ function KGe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, H.jsx)("time", {
dateTime: n.published_at || "",
- children: FO(n)
+ children: zO(n)
})]
})]
}, n.id);
@@ -77613,7 +77637,7 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, H.jsx)(VGe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, H.jsx)(KGe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, H.jsxs)(L7, {
@@ -77625,7 +77649,7 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, H.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, H.jsx)(V7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, H.jsx)("b", {
"data-middle-truncate": "",
- children: NGe(n)
+ children: RGe(n)
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -77633,13 +77657,13 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
+function QGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
let { kind: f, selected: p, src: m } = r, h = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, g = NO(h, e), _ = jO(e, LGe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = PO(e, n), b = IGe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
+ }, g = LO(h, e), _ = FO(e, HGe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = RO(e, n), b = VGe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -77655,7 +77679,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: MO(h, e) + i(e.title) }
+ dangerouslySetInnerHTML: { __html: IO(h, e) + i(e.title) }
}), e.url ? /* @__PURE__ */ (0, H.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -77682,7 +77706,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, H.jsx)("span", { children: FO(e) }),
+ /* @__PURE__ */ (0, H.jsx)("span", { children: zO(e) }),
R7(e.duration) ? /* @__PURE__ */ (0, H.jsx)("span", { children: o(e.duration) }) : null,
g ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-follow-badges": "",
@@ -77716,7 +77740,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [jGe(e), /* @__PURE__ */ (0, H.jsx)("span", {
+ children: [IGe(e), /* @__PURE__ */ (0, H.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z7 }
})]
@@ -77825,7 +77849,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, H.jsx)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, H.jsx)(HGe, { name: "image-off" }), /* @__PURE__ */ (0, H.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, H.jsx)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, H.jsx)(qGe, { name: "image-off" }), /* @__PURE__ */ (0, H.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -77839,7 +77863,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-follow-detail-tags": "",
children: b.map((t) => /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
- "data-tag-cat": FGe(e, t),
+ "data-tag-cat": BGe(e, t),
"data-follow-tag": t,
onClick: () => d.openTag(t),
children: u.tagLabel(t)
@@ -77849,7 +77873,7 @@ function qGe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
})
});
}
-function JGe(e, t, n) {
+function $Ge(e, t, n) {
let r = e.id, i = A7(r), [a, o] = (0, V.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, V.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -77860,17 +77884,17 @@ function JGe(e, t, n) {
...t.item,
status: e
}
- }), Uce(r, e);
+ }), zce(r, e);
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = Fn({
- mutationFn: ({ to: e }) => B(DD, {
+ mutationFn: ({ to: e }) => B(jD, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && FL(), t.toast(BGe(n), { undo: i === "saved" ? void 0 : async () => {
- await B(DD, {
+ u(n), c(""), n === "ignored" && ML(), t.toast(GGe(n), { undo: i === "saved" ? void 0 : async () => {
+ await B(jD, {
item: r,
to: i
}), u(i);
@@ -77879,7 +77903,7 @@ function JGe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Fn({
- mutationFn: () => B(wGe, { item: r }),
+ mutationFn: () => B(kGe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -77887,7 +77911,7 @@ function JGe(e, t, n) {
onSettled: () => l("save", !1)
}), h = Fn({
mutationFn: async ({ index: e, hidden: t }) => {
- await B(TGe, {
+ await B(AGe, {
item: r,
media: e,
hidden: t
@@ -77898,17 +77922,17 @@ function JGe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = _.getQueryData(i);
- o && Hce(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && Rce(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), g = Cn({
- queryKey: W_e(r),
- queryFn: ({ signal: e }) => q_e(r, e)
+ queryKey: A_e(r),
+ queryFn: ({ signal: e }) => N_e(r, e)
}).data?.want ?? null, v = Fn({
- mutationFn: async (e) => (e ? await PL([e.id]) : await NL({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await jL([e.id]) : await AL({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), FL();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), ML();
},
onError: d,
onSettled: () => l("want", !1)
@@ -77948,19 +77972,19 @@ function JGe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function YGe(e) {
+function eKe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function XGe(e) {
+function tKe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return YGe(n ?? t.body);
+ return eKe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var ZGe = "/api/cover-crop", QGe = (e, t) => B(ZGe, {
+var nKe = "/api/cover-crop", rKe = (e, t) => B(nKe, {
code: e,
box: t
});
@@ -77979,7 +78003,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, H.jsx)("use", { href: "#i-crop" })
});
}
-function $Ge({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function iKe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, V.useState)(!1), o = (0, V.useRef)(null);
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("button", {
ref: o,
@@ -77992,13 +78016,13 @@ function $Ge({ code: e, coverUrl: t, box: n, onSaved: r }) {
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, H.jsx)(G7, { className: "size-3.75" })
}), /* @__PURE__ */ (0, H.jsx)(Ih, {
- getContainer: () => XGe(o.current),
- children: /* @__PURE__ */ (0, H.jsx)(BE, {
+ getContainer: () => tKe(o.current),
+ children: /* @__PURE__ */ (0, H.jsx)(WE, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, H.jsx)(eKe, {
+ children: /* @__PURE__ */ (0, H.jsx)(aKe, {
code: e,
coverUrl: t,
box: n,
@@ -78008,9 +78032,9 @@ function $Ge({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function eKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, V.useState)(null), [s, c] = (0, V.useState)(null), [l, u] = (0, V.useState)(!0), d = HE(), f = Fn({
- mutationFn: (t) => QGe(e, t),
+function aKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, V.useState)(null), [s, c] = (0, V.useState)(null), [l, u] = (0, V.useState)(!0), d = KE(), f = Fn({
+ mutationFn: (t) => rKe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -78022,15 +78046,15 @@ function eKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : tse(e, Ft);
- c(IE(t, e, null));
+ } : Zoe(e, Ft);
+ c(BE(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, H.jsx)(VE, { children: /* @__PURE__ */ (0, H.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, H.jsx)(GE, { children: /* @__PURE__ */ (0, H.jsx)(G7, { className: "size-6" }) }),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
@@ -78049,8 +78073,8 @@ function eKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsx)(EE, {
- icon: sE,
+ /* @__PURE__ */ (0, H.jsx)(AE, {
+ icon: dE,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -78060,24 +78084,24 @@ function eKe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, H.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, H.jsx)(WE, {
+ children: /* @__PURE__ */ (0, H.jsx)(JE, {
src: t,
aspect: l ? Ft : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- PE(e) && p(e);
+ RE(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, H.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, H.jsx)(wL, {
+ children: [/* @__PURE__ */ (0, H.jsx)(xL, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(IE(s, a, Ft));
+ u(e), e && s && a && c(BE(s, a, Ft));
},
children: /* @__PURE__ */ (0, H.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -78113,14 +78137,14 @@ var K7 = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function tKe(e) {
+function oKe(e) {
let { queue: t, actions: n } = e, r = Cn({
- queryKey: t ? MM(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => VM(t, e.helpers, n),
+ queryKey: t ? PM(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => UM(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? WM(i, e.id) : t ? null : e.id, o = Cn({
- queryKey: jM(a ?? 0),
- queryFn: ({ signal: e }) => BM(a, e),
+ }), i = t && r.data || null, a = i ? KM(i, e.id) : t ? null : e.id, o = Cn({
+ queryKey: NM(a ?? 0),
+ queryFn: ({ signal: e }) => HM(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -78143,9 +78167,9 @@ function tKe(e) {
})
});
}
- return /* @__PURE__ */ (0, H.jsx)(nKe, {
+ return /* @__PURE__ */ (0, H.jsx)(sKe, {
...e,
- item: Ofe(o.data, i),
+ item: ofe(o.data, i),
queue: i
}, o.data.id);
}
@@ -78158,36 +78182,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, H.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function nKe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = vKe(t, r, i.tagLabel), o = (0, V.useRef)(t);
+function sKe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = CKe(t, r, i.tagLabel), o = (0, V.useRef)(t);
(0, V.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, V.useEffect)(() => {
- n?.kind === "playlist" && B(NM, {
+ n?.kind === "playlist" && B(FM, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = Hfe(t, i.sourceOffline(t.location || ""));
+ let s = bfe(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(rKe, {
+ /* @__PURE__ */ (0, H.jsx)(cKe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, H.jsx)(aKe, {
+ n ? /* @__PURE__ */ (0, H.jsx)(uKe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, H.jsx)(cKe, {
+ /* @__PURE__ */ (0, H.jsx)(pKe, {
item: t,
queue: n,
write: a,
@@ -78195,9 +78219,9 @@ function nKe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, H.jsx)(_Ke, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, H.jsx)(SKe, { ...e }) : null] });
}
-function rKe({ item: e, gate: t, helpers: n, actions: r }) {
+function cKe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, V.useState)(t ? "" : "auto"), o = (0, V.useRef)(null), c = (0, V.useRef)(e);
(0, V.useLayoutEffect)(() => {
let e = o.current;
@@ -78208,7 +78232,7 @@ function rKe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, H.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, H.jsx)(iKe, {
+ children: [/* @__PURE__ */ (0, H.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, H.jsx)(lKe, {
item: e,
badge: l,
helpers: n,
@@ -78237,7 +78261,7 @@ function rKe({ item: e, gate: t, helpers: n, actions: r }) {
}) : null]
});
}
-function iKe({ item: e, badge: t, helpers: n, actions: r }) {
+function lKe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, V.useState)(!1), [o, s] = (0, V.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -78262,8 +78286,8 @@ function iKe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function aKe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Rfe(e), a = (0, V.useRef)(null), s = sKe(e, t, r), c = (0, V.useRef)(s);
+function uKe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = gfe(e), a = (0, V.useRef)(null), s = fKe(e, t, r), c = (0, V.useRef)(s);
c.current = s;
let u = (0, V.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -78271,7 +78295,7 @@ function aKe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = oKe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, H.jsx)("button", {
+ }, [n, e.kind]), d = dKe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, H.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -78299,10 +78323,10 @@ function aKe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: u,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, H.jsx)("i", {
- className: `javedition ${Ife[i.edition_label] || "censored"}`,
+ className: `javedition ${mfe[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, c = e.kind === "playlist" && UM(i);
+ }) : null, c = e.kind === "playlist" && GM(i);
return /* @__PURE__ */ (0, H.jsxs)(L7, {
current: i.id === t,
"data-queue-item": i.id,
@@ -78342,14 +78366,14 @@ function aKe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-truncate-end": "",
- children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? QM(i.part_label) : I(i, n.tagLabel)
+ children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? eN(i.part_label) : I(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function oKe(e, t) {
- let n = Fn({ mutationFn: (t) => B(NM, {
+function dKe(e, t) {
+ let n = Fn({ mutationFn: (t) => B(FM, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -78362,11 +78386,11 @@ function oKe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function sKe(e, t, n) {
- let r = MM({
+function fKe(e, t, n) {
+ let r = PM({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (_.setQueryData(r, HM(e)), e), a = (t) => B(NM, {
+ }), i = (e) => (_.setQueryData(r, WM(e)), e), a = (t) => B(FM, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Fn({
@@ -78382,8 +78406,8 @@ function sKe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Bfe(s, t, r, c);
- if (Vfe(l, s)) return;
+ let l = vfe(s, t, r, c);
+ if (yfe(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -78429,7 +78453,7 @@ function sKe(e, t, n) {
}
};
}
-function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function pKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, V.useState)(!1);
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-stage-side": "",
@@ -78437,7 +78461,7 @@ function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, H.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, H.jsx)(lKe, {
+ /* @__PURE__ */ (0, H.jsx)(mKe, {
item: e,
queue: t,
helpers: r,
@@ -78449,7 +78473,7 @@ function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, H.jsx)(dKe, {
+ /* @__PURE__ */ (0, H.jsx)(gKe, {
item: e,
write: n
}),
@@ -78484,18 +78508,18 @@ function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, H.jsx)(fKe, {
+ /* @__PURE__ */ (0, H.jsx)(_Ke, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, H.jsx)(pKe, {
+ /* @__PURE__ */ (0, H.jsx)(vKe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, H.jsx)(hKe, { item: e }),
+ /* @__PURE__ */ (0, H.jsx)(bKe, { item: e }),
/* @__PURE__ */ (0, H.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -78597,7 +78621,7 @@ function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, H.jsx)(gKe, {
+ /* @__PURE__ */ (0, H.jsx)(xKe, {
item: e,
open: c,
write: n
@@ -78621,7 +78645,7 @@ function cKe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function lKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function mKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, V.useRef)(null), [o, s] = (0, V.useState)(!1), [c, l] = (0, V.useState)(!1);
(0, V.useLayoutEffect)(() => {
let e = a.current;
@@ -78631,7 +78655,7 @@ function lKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + zfe(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + _fe(e, t);
return /* @__PURE__ */ (0, H.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, H.jsxs)("div", {
@@ -78662,19 +78686,19 @@ function lKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, H.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, H.jsx)($Ge, {
+ children: /* @__PURE__ */ (0, H.jsx)(iKe, {
code: e.code,
coverUrl: A(e),
box: e.poster_box || null,
onSaved: (t) => {
_.invalidateQueries({
- queryKey: jM(e.id),
+ queryKey: NM(e.id),
exact: !0
}), $t((t) => t.code === e.code, { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, H.jsx)(uKe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, H.jsx)(hKe, {
id: e.id,
actions: r,
onStatus: i
@@ -78684,7 +78708,7 @@ function lKe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function uKe({ id: e, actions: t, onStatus: n }) {
+function hKe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, V.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -78717,14 +78741,14 @@ function uKe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, H.jsx)(K7, { name: "folder-sync" })
})] });
}
-function dKe({ item: e, write: t }) {
- let n = KM(e.rating);
+function gKe({ item: e, write: t }) {
+ let n = JM(e.rating);
return /* @__PURE__ */ (0, H.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": GM(e.rating),
+ "data-value": qM(e.rating),
children: [/* @__PURE__ */ (0, H.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -78746,12 +78770,12 @@ function dKe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, H.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: jfe(e.rating)
+ children: lfe(e.rating)
})]
});
}
-function fKe({ item: e, actions: t }) {
- let n = (0, V.useMemo)(() => Afe(e), [e]), [r, i] = (0, V.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function _Ke({ item: e, actions: t }) {
+ let n = (0, V.useMemo)(() => cfe(e), [e]), [r, i] = (0, V.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)("span", { children: n.name.slice(0, 1) }), /* @__PURE__ */ (0, H.jsx)(q7, { html: N({
id: n.id,
hasImage: n.has_image,
@@ -78865,8 +78889,8 @@ function fKe({ item: e, actions: t }) {
]
});
}
-function pKe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Nfe(e, n);
+function vKe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = dfe(e, n);
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -78887,14 +78911,14 @@ function pKe({ item: e, write: t, helpers: n, actions: r }) {
onClick: () => t.removeTag(e),
children: /* @__PURE__ */ (0, H.jsx)(K7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, H.jsx)(mKe, {
+ }, e.k)), /* @__PURE__ */ (0, H.jsx)(yKe, {
item: e,
write: t,
helpers: n
})]
});
}
-function mKe({ item: e, write: t, helpers: n }) {
+function yKe({ item: e, write: t, helpers: n }) {
let r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(!1), [s, c] = (0, V.useState)(!1), [l, u] = (0, V.useState)(""), [d, f] = (0, V.useState)(""), [p, m] = (0, V.useState)(-1), h = (0, V.useCallback)(() => {
i.current && me(i.current), c(!1);
}, []);
@@ -78908,7 +78932,7 @@ function mKe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Ffe(d, n.tagCandidates(), ZM()) : {
+ let g = s ? pfe(d, n.tagCandidates(), $M()) : {
recent: [],
results: [],
create: ""
@@ -78936,12 +78960,12 @@ function mKe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && qM(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && YM(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = qM(e, t.k);
+ let r = b, i = YM(e, t.k);
return /* @__PURE__ */ (0, H.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -79038,8 +79062,8 @@ function mKe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function hKe({ item: e }) {
- let t = Ufe(e);
+function bKe({ item: e }) {
+ let t = xfe(e);
return /* @__PURE__ */ (0, H.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, H.jsxs)("div", {
@@ -79073,7 +79097,7 @@ function hKe({ item: e }) {
})]
});
}
-function gKe({ item: e, open: t, write: n }) {
+function xKe({ item: e, open: t, write: n }) {
let [r, i] = (0, V.useState)(e.like_reason || ""), a = (0, V.useRef)(null);
(0, V.useEffect)(() => {
t && a.current?.focus();
@@ -79112,10 +79136,10 @@ function gKe({ item: e, open: t, write: n }) {
})]
});
}
-function _Ke(e) {
+function SKe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Cn({
- queryKey: Tfe(t.id, n),
- queryFn: async ({ signal: e }) => (await z(Dfe(t.id, n), e)).items || []
+ queryKey: rfe(t.id, n),
+ queryFn: async ({ signal: e }) => (await z(afe(t.id, n), e)).items || []
}), [o] = (0, V.useState)(() => r.relatedSkeletonHtml()), s = (0, V.useCallback)((e) => {
e && (ge(e), r.wireDrag(e));
}, [r]);
@@ -79145,8 +79169,8 @@ function _Ke(e) {
})]
});
}
-function vKe(e, t, n) {
- let r = e.id, i = jM(r), [a, o] = (0, V.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), d = (e, t) => o((n) => {
+function CKe(e, t, n) {
+ let r = e.id, i = NM(r), [a, o] = (0, V.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, V.useState)(""), [l, u] = (0, V.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => _.getQueryData(i) || e, p = (e) => {
@@ -79177,7 +79201,7 @@ function vKe(e, t, n) {
run: n
}));
}, v = async (e, t) => {
- let n = await m(PM, t === void 0 ? { kind: e } : {
+ let n = await m(IM, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -79197,21 +79221,21 @@ function vKe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Mfe(n, e);
- await v("rate", r), t.toast(r ? `已评 ${KM(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = ufe(n, e);
+ await v("rate", r), t.toast(r ? `已评 ${JM(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await v(e);
- t.toast($M(e, r), { undo: async () => {
+ t.toast(tN(e, r), { undo: async () => {
e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(IM, {});
+ let e = await m(RM, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(IM, {})).watch_later });
+ p({ watch_later: (await m(RM, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -79221,9 +79245,9 @@ function vKe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(LM, { wanted: !e.wanted });
+ }), r = await m(zM, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(LM, e));
+ n(await m(zM, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -79237,7 +79261,7 @@ function vKe(e, t, n) {
});
u("保存中…");
try {
- o(await m(RM, {
+ o(await m(BM, {
liked: a,
reason: i
}));
@@ -79247,7 +79271,7 @@ function vKe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(RM, r));
+ o(await m(BM, r));
} });
});
},
@@ -79256,11 +79280,11 @@ function vKe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => JM(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(FM, {
+ p((t) => XM(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(LM, {
operation: "add",
tag: e.k
- }), p((t) => YM(t, e));
+ }), p((t) => ZM(t, e));
} });
}),
addTag: (e) => {
@@ -79269,14 +79293,14 @@ function vKe(e, t, n) {
(await m("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (p((e) => YM(e, {
+ })).ok && (p((e) => ZM(e, {
k: r,
cat: "general"
- })), Pfe(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await m(FM, {
+ })), ffe(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await m(LM, {
operation: "remove",
tag: r
- }), p((e) => JM(e, r));
+ }), p((e) => XM(e, r));
} }));
});
}
@@ -79285,16 +79309,16 @@ function vKe(e, t, n) {
//#endregion
//#region src/react/stage/stage-player.ts
var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function yKe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Xde({
+function wKe(e, t) {
+ Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), Ode({
...e.player,
stage: () => document.getElementById("stage")
- }), Zde({
+ }), kde({
inMiniplayer: (e) => X7?.player === e,
kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
expand: () => S9(),
toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => hM()));
+ }), a9 || (a9 = !0, addEventListener("pagehide", () => _M()));
}
var a9 = !1;
function o9() {
@@ -79304,10 +79328,10 @@ function o9() {
function s9(e) {
Q7 = e;
}
-var bKe = () => Q7;
+var TKe = () => Q7;
function c9(e, t) {
let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return xKe(e, X7);
+ if (X7 && X7.key === a) return EKe(e, X7);
X7 && x9();
let o = {
player: null,
@@ -79319,7 +79343,7 @@ function c9(e, t) {
Z7 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = kM(s, {
+ let c = jM(s, {
kind: n,
item: r,
media: i,
@@ -79332,12 +79356,12 @@ function c9(e, t) {
});
return () => {
let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), hM());
+ Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), _M());
};
}
-function xKe(e, t) {
+function EKe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), DM(e), e.append(n.el()), Wj(n);
+ y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), kM(e), e.append(n.el()), Kj(n);
let r = {
player: n,
kind: t.kind,
@@ -79346,22 +79370,22 @@ function xKe(e, t) {
key: t.key
};
Z7 = r;
- let i = OM(n, e);
- return Gj(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (Uj() === n && Wj(null), sM(n), hM());
+ let i = AM(n, e);
+ return qj(n), () => {
+ Z7 === r && (Z7 = null), i(), X7?.player !== n && (Gj() === n && Kj(null), lM(n), _M());
};
}
var l9 = () => {
let e = Z7?.player;
return e && !e.isDisposed() ? e : null;
};
-function SKe(e) {
+function DKe(e) {
let t = e9;
e9 = !1, X7?.pending && x9();
let n = Z7, r = n?.player, i = Q7;
if (!n || !r || r.isDisposed() || !i || !$7) return;
let a = o9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && DKe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && MKe({
player: r,
kind: n.kind,
item: n.item,
@@ -79369,7 +79393,7 @@ function SKe(e) {
key: n.key
}, i);
}
-function CKe(e, t) {
+function OKe(e, t) {
if (e9 = !1, X7) {
if (X7.kind === e && X7.item.id === t) {
X7.pending = !0, b9();
@@ -79382,11 +79406,11 @@ function u9(e) {
$7 = e, $7 && _9();
}
var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function wKe() {
+function kKe() {
return d9() ? $7?.frame.querySelector("video") ?? null : null;
}
-function TKe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : wKe();
+function AKe() {
+ return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : kKe();
}
function f9(e) {
$7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -79435,7 +79459,7 @@ function v9(e) {
function y9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function EKe() {
+function jKe() {
let e = $7?.root;
if (!e) return;
let t = e.hidden;
@@ -79456,7 +79480,7 @@ function b9() {
e.style.transform = "";
}
}
-function DKe(e, t) {
+function MKe(e, t) {
if (!$7) return;
let n = {
...e,
@@ -79464,13 +79488,13 @@ function DKe(e, t) {
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), EKe(), Gj(e.player);
+ X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), jKe(), qj(e.player);
}
function x9() {
let e = X7;
e && y9(e), X7 = null, t9++;
let t = e?.player ?? null;
- t && Uj() === t && Wj(null), sM(t), t && hM(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), Vj(), b9();
+ t && Gj() === t && Kj(null), lM(t), t && _M(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), Uj(), b9();
}
function S9() {
if (!d9() || !X7) return;
@@ -79484,7 +79508,7 @@ function C9() {
}
r9() && l9() && n9 && (e9 = !0, n9());
}
-function OKe() {
+function NKe() {
let e = X7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -79497,7 +79521,7 @@ function w9(e) {
function T9(e) {
return !(!d9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || o9().sourceOffline(String(e.location ?? "")));
}
-async function kKe(e) {
+async function PKe(e) {
if (!d9() || !X7 || !$7) return;
let n = ++t9, r = await t(`/api/item?id=${e}`).catch(() => null);
if (n !== t9 || !d9() || !X7 || !$7 || !r || r.error) return;
@@ -79506,7 +79530,7 @@ async function kKe(e) {
return;
}
let i = X7;
- y9(i), Uj() === i.player && Wj(null), sM(i.player), hM(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ y9(i), Gj() === i.player && Kj(null), lM(i.player), _M(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let a = document.createElement("video");
a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", $7.frame.prepend(a);
let o = {
@@ -79515,14 +79539,14 @@ async function kKe(e) {
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- f9(o), kM(a, {
+ f9(o), jM(a, {
kind: "item",
item: r,
autoplay: !0,
chrome: !1,
onPlayer: (t) => {
if (n !== t9) {
- t && Uj() === t && Wj(null), sM(t);
+ t && Gj() === t && Kj(null), lM(t);
return;
}
if (!t) {
@@ -79550,9 +79574,9 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, H.jsx)("use", { href: `#i-${e}` })
-}), AKe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), FKe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
t.stopPropagation(), e();
-}, jKe = (0, V.memo)(function() {
+}, IKe = (0, V.memo)(function() {
let e = (0, V.useRef)(null), t = (0, V.useRef)(null), n = (0, V.useRef)(null), r = (0, V.useRef)(null), i = (0, V.useRef)(null), a = (0, V.useRef)(null), o = (0, V.useRef)(null), s = (0, V.useRef)(null), c = (0, V.useRef)(null), l = (0, V.useRef)(null);
return (0, V.useLayoutEffect)(() => (u9({
root: e.current,
@@ -79564,7 +79588,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, V.useEffect)(() => NKe(e.current, t.current), []), /* @__PURE__ */ (0, H.jsx)("aside", {
+ }), () => u9(null)), []), (0, V.useEffect)(() => RKe(e.current, t.current), []), /* @__PURE__ */ (0, H.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -79614,8 +79638,8 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(OKe),
- dangerouslySetInnerHTML: AKe
+ onClick: D9(NKe),
+ dangerouslySetInnerHTML: FKe
}),
/* @__PURE__ */ (0, H.jsx)("button", {
ref: o,
@@ -79654,7 +79678,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, H.jsx)("svg", {
})
});
});
-function MKe(e, t, n) {
+function LKe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -79676,7 +79700,7 @@ function MKe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function NKe(e, t) {
+function RKe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -79702,7 +79726,7 @@ function NKe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), MKe(e, i.dx, i.dy));
+ }, 0), LKe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -79722,21 +79746,21 @@ function L9() {
if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
return O9;
}
-function PKe() {
+function zKe() {
return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, At.createRoot)(A9)), k9;
}
function R9() {
- let e = PKe();
- (0, kt.flushSync)(() => e.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(FKe, { view: j9 }) })));
+ let e = zKe();
+ (0, kt.flushSync)(() => e.render(/* @__PURE__ */ (0, H.jsx)(kj, { children: /* @__PURE__ */ (0, H.jsx)(BKe, { view: j9 }) })));
}
-function FKe({ view: e }) {
- return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [e ? /* @__PURE__ */ (0, H.jsx)(IKe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, H.jsx)(jKe, {})] });
+function BKe({ view: e }) {
+ return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [e ? /* @__PURE__ */ (0, H.jsx)(VKe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, H.jsx)(IKe, {})] });
}
var z9 = () => /* @__PURE__ */ (0, H.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: SGe() }
+ dangerouslySetInnerHTML: { __html: DGe() }
});
function B9(e) {
let t = e.currentTarget;
@@ -79744,7 +79768,7 @@ function B9(e) {
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function IKe({ view: e }) {
+function VKe({ view: e }) {
let t = (0, V.useRef)(null);
(0, V.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
@@ -79752,7 +79776,7 @@ function IKe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, H.jsx)(tKe, { ...r.props }) : /* @__PURE__ */ (0, H.jsx)(UGe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, H.jsx)(oKe, { ...r.props }) : /* @__PURE__ */ (0, H.jsx)(JGe, { ...r.props });
return /* @__PURE__ */ (0, H.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -79791,7 +79815,7 @@ function H9(e, t) {
let n = I9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function LKe(e) {
+function HKe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
@@ -79853,7 +79877,7 @@ function LKe(e) {
}
};
}
-function RKe(e, t) {
+function UKe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -79866,13 +79890,13 @@ function RKe(e, t) {
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function zKe(e) {
+async function WKe(e) {
j9 && U9({ miniplayer: !1 });
let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, CKe(e.kind, e.id ?? NaN), j9 = {
+ N9 = n, P9 = !1, F9 = !1, OKe(e.kind, e.id ?? NaN), j9 = {
generation: t,
request: e,
- content: LKe(e),
+ content: HKe(e),
phase: "skeleton"
}, R9();
let r = I9();
@@ -79880,7 +79904,7 @@ async function zKe(e) {
ge(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
let i = j9.content;
try {
- i.kind === "item" ? await kfe(i.props, n.signal) : await EGe(i.props, n.signal);
+ i.kind === "item" ? await sfe(i.props, n.signal) : await jGe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
@@ -79889,11 +79913,11 @@ async function zKe(e) {
j9 = {
...j9,
phase: a ? "content" : "reveal"
- }, R9(), a || RKe(r, t), De(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, R9(), a || UKe(r, t), De(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function BKe() {
+function GKe() {
let e = I9();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
@@ -79905,11 +79929,11 @@ function BKe() {
}));
}
function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, SKe(e), !j9) return;
+ if (M9++, N9?.abort(), N9 = null, DKe(e), !j9) return;
let t = I9();
- t && se(t), Vj(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+ t && se(t), Uj(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
}
-function VKe(e) {
+function KKe(e) {
!j9 || j9.content.kind !== "item" || (j9 = {
...j9,
content: {
@@ -79921,60 +79945,60 @@ function VKe(e) {
}
}, R9());
}
-function HKe() {
- let e = bKe(), t = e?.kind === "item" ? e.item : null, n = t ? j(t, L9().player.settings().javImage) : "";
+function qKe() {
+ let e = TKe(), t = e?.kind === "item" ? e.item : null, n = t ? j(t, L9().player.settings().javImage) : "";
if (!n) return;
let r = l9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var UKe = {
- open: zKe,
- update: VKe,
- exit: BKe,
+var JKe = {
+ open: WKe,
+ update: KKe,
+ exit: GKe,
dispose: U9,
requestClose: V9,
- repaintPoster: HKe,
+ repaintPoster: qKe,
isOpen: () => !!j9,
- activeVideo: () => TKe(),
+ activeVideo: () => AKe(),
toggleTheater: () => {
- j9 && oM(!L9().player.settings().theaterMode);
+ j9 && cM(!L9().player.settings().theaterMode);
},
toggleMiniplayer: () => C9(),
closeMiniplayer: () => x9(),
miniplayerActive: () => d9(),
miniplayerTakesCard: (e) => T9(e),
miniplayerPlay: (e) => {
- kKe(e);
+ PKe(e);
}
};
-function WKe(e) {
- return O9 = e, yKe(e, {
+function YKe(e) {
+ return O9 = e, wKe(e, {
isOpen: () => !!j9,
requestClose: V9
- }), R9(), UKe;
+ }), R9(), JKe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function GKe(e) {
+function XKe(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 KKe = (e) => {
+var ZKe = (e) => {
switch (e) {
- case "success": return YKe;
- case "info": return ZKe;
- case "warning": return XKe;
- case "error": return QKe;
+ case "success": return eqe;
+ case "info": return nqe;
+ case "warning": return tqe;
+ case "error": return rqe;
default: return null;
}
-}, qKe = Array(12).fill(0), JKe = ({ visible: e, className: t }) => /*#__PURE__*/ V.createElement("div", {
+}, QKe = Array(12).fill(0), $Ke = ({ visible: e, className: t }) => /*#__PURE__*/ V.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ V.createElement("div", { className: "sonner-spinner" }, qKe.map((e, t) => /*#__PURE__*/ V.createElement("div", {
+}, /*#__PURE__*/ V.createElement("div", { className: "sonner-spinner" }, QKe.map((e, t) => /*#__PURE__*/ V.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), YKe = /*#__PURE__*/ V.createElement("svg", {
+})))), eqe = /*#__PURE__*/ V.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -79985,7 +80009,7 @@ var KKe = (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"
-})), XKe = /*#__PURE__*/ V.createElement("svg", {
+})), tqe = /*#__PURE__*/ V.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -79996,7 +80020,7 @@ var KKe = (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"
-})), ZKe = /*#__PURE__*/ V.createElement("svg", {
+})), nqe = /*#__PURE__*/ V.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -80007,7 +80031,7 @@ var KKe = (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"
-})), QKe = /*#__PURE__*/ V.createElement("svg", {
+})), rqe = /*#__PURE__*/ V.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -80018,7 +80042,7 @@ var KKe = (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"
-})), $Ke = /*#__PURE__*/ V.createElement("svg", {
+})), iqe = /*#__PURE__*/ V.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -80039,7 +80063,7 @@ var KKe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), eqe = () => {
+})), aqe = () => {
let [e, t] = V.useState(document.hidden);
return V.useEffect(() => {
let e = () => {
@@ -80047,7 +80071,7 @@ var KKe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, tqe = 1, nqe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : tqe++, G9 = new class {
+}, oqe = 1, sqe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : oqe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -80057,7 +80081,7 @@ var KKe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - nqe;
+ let e = this.toasts.length - sqe;
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 = W9(e), i = this.pendingDismissals.get(r);
@@ -80135,7 +80159,7 @@ var KKe = (e) => {
type: "default",
message: e
});
- else if (iqe(e) && !e.ok) {
+ else if (lqe(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" && !V.isValidElement(r) ? r : { message: r };
this.create({
@@ -80188,7 +80212,7 @@ var KKe = (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();
}
-}(), rqe = (e, t) => G9.message(e, t), iqe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(rqe, {
+}(), cqe = (e, t) => G9.message(e, t), lqe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(cqe, {
success: G9.success,
info: G9.info,
warning: G9.warning,
@@ -80202,20 +80226,20 @@ var KKe = (e) => {
getHistory: () => G9.toasts,
getToasts: () => G9.getActiveToasts()
});
-GKe("[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%)}");
+XKe("[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 q9(e) {
return e.label !== void 0;
}
-var aqe = 3, oqe = "24px", sqe = "16px", J9 = 4e3, cqe = 356, lqe = 14, uqe = 45, dqe = 200;
+var uqe = 3, dqe = "24px", fqe = "16px", J9 = 4e3, pqe = 356, mqe = 14, hqe = 45, gqe = 200;
function Y9(...e) {
return e.filter(Boolean).join(" ");
}
-function fqe(e) {
+function _qe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var pqe = (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] = V.useState(null), [O, k] = V.useState(null), [A, j] = V.useState(!1), [M, N] = V.useState(!1), [P, ee] = V.useState(!1), [F, I] = V.useState(!1), [te, ne] = V.useState(!1), [re, ie] = V.useState(0), [ae, oe] = V.useState(0), se = V.useRef(n.duration || y || J9), ce = V.useRef(null), le = V.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = V.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = V.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = V.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = V.useRef(0), be = V.useRef(0), xe = V.useRef(0), Se = V.useRef(null), [Ce, we] = b.split("-"), Te = V.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = eqe(), De = V.useMemo(() => e.swipeDirections ?? fqe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
+var vqe = (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] = V.useState(null), [O, k] = V.useState(null), [A, j] = V.useState(!1), [M, N] = V.useState(!1), [P, ee] = V.useState(!1), [F, I] = V.useState(!1), [te, ne] = V.useState(!1), [re, ie] = V.useState(0), [ae, oe] = V.useState(0), se = V.useRef(n.duration || y || J9), ce = V.useRef(null), le = V.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = V.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = V.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = V.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = V.useRef(0), be = V.useRef(0), xe = V.useRef(0), Se = V.useRef(null), [Ce, we] = b.split("-"), Te = V.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = aqe(), De = V.useMemo(() => e.swipeDirections ?? _qe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
be.current = V.useMemo(() => ge * x + Te, [ge, Te]), V.useEffect(() => {
se.current = ve;
}, [ve]), V.useEffect(() => {
@@ -80256,7 +80280,7 @@ var pqe = (e) => {
let Ae = V.useCallback(() => {
N(!0), ie(be.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, dqe);
+ }, gqe);
}, [
n,
d,
@@ -80289,12 +80313,12 @@ var pqe = (e) => {
return w?.loading ? /*#__PURE__*/ V.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ V.createElement(JKe, {
+ }, w.loading) : /*#__PURE__*/ V.createElement($Ke, {
className: Y9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let Me = n.icon || w?.[de] || KKe(de);
+ let Me = n.icon || w?.[de] || ZKe(de);
return /*#__PURE__*/ V.createElement("li", {
tabIndex: 0,
ref: le,
@@ -80341,7 +80365,7 @@ var pqe = (e) => {
if (F || !pe) return;
Se.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= uqe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= hqe || a > .11)) {
ie(be.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), I(!0);
return;
}
@@ -80382,7 +80406,7 @@ var pqe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? $Ke) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ V.createElement("div", {
+ }, w?.close ?? iqe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ V.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || je() : n.promise ? je() : null, de === "loading" ? null : Me) : null, /*#__PURE__*/ V.createElement("div", {
@@ -80417,10 +80441,10 @@ function X9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function mqe(e, t) {
+function yqe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? sqe : oqe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? fqe : dqe;
function o(e) {
[
"top",
@@ -80441,8 +80465,8 @@ function mqe(e, t) {
}) : o(a);
}), n;
}
-var hqe = /*#__PURE__*/ V.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 = aqe, toastOptions: g, dir: _ = X9(), gap: v = lqe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = V.useState([]), w = V.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = V.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = V.useState([]), [O, k] = V.useState(!1), [A, j] = V.useState(!1), [M, N] = V.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = V.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = V.useRef(null), I = V.useRef(!1), te = V.useCallback((e) => {
+var bqe = /*#__PURE__*/ V.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 = uqe, toastOptions: g, dir: _ = X9(), gap: v = mqe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = V.useState([]), w = V.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = V.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = V.useState([]), [O, k] = V.useState(!1), [A, j] = V.useState(!1), [M, N] = V.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = V.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = V.useRef(null), I = V.useRef(!1), te = V.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return V.useEffect(() => G9.subscribe((e) => {
@@ -80528,10 +80552,10 @@ var hqe = /*#__PURE__*/ V.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${cqe}px`,
+ "--width": `${pqe}px`,
"--gap": `${v}px`,
...m,
- ...mqe(l, u)
+ ...yqe(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -80549,7 +80573,7 @@ var hqe = /*#__PURE__*/ V.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__*/ V.createElement(pqe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ V.createElement(vqe, {
key: n.id,
icons: y,
index: i,
@@ -80583,8 +80607,8 @@ var hqe = /*#__PURE__*/ V.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Q9 = !1, gqe = (e, t) => {
- Q9 || (Q9 = !0, (0, At.createRoot)(e).render(/* @__PURE__ */ (0, H.jsx)(hqe, {
+}), Q9 = !1, xqe = (e, t) => {
+ Q9 || (Q9 = !0, (0, At.createRoot)(e).render(/* @__PURE__ */ (0, H.jsx)(bqe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -80605,7 +80629,7 @@ var hqe = /*#__PURE__*/ V.forwardRef(function(e, t) {
error: Z9(t.error, !1)
}
})));
-}, _qe = (e, t) => {
+}, Sqe = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
n(/* @__PURE__ */ (0, H.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -80629,47 +80653,43 @@ function $9(e) {
};
};
}
-var vqe = {
+var Cqe = {
"catalog-grid": {
prefetch: Wt,
mount: $9(mr)
},
"catalog-filter": {
prefetch: async () => {},
- mount: $9(xae)
+ mount: $9(_ae)
},
"entity-page": {
- prefetch: (e) => qae(e),
- mount: $9(Zse)
+ prefetch: (e) => Uae(e),
+ mount: $9(qse)
},
"feed-new": {
- prefetch: Hae,
- mount: $9(tce)
+ prefetch: Rae,
+ mount: $9(Zse)
},
"follow-feed": {
- prefetch: Bce,
- mount: $9(lle)
- },
- index: {
- prefetch: (e, t) => doe(e, t),
- mount: $9(yA)
+ prefetch: Ice,
+ mount: $9(ole)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(Yue)
+ mount: $9(jle)
},
"library-processing": {
- prefetch: (e, t) => LA(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, H.jsx)(Ode, { ...e }) : /* @__PURE__ */ (0, H.jsx)(gj, { ...e }))
+ prefetch: (e, t) => ak(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, H.jsx)(Qk, { ...e }) : /* @__PURE__ */ (0, H.jsx)(Jk, { ...e }))
},
playlists: {
- prefetch: (e, t) => Ade(t),
- mount: $9(Hde)
+ prefetch: (e, t) => rA(t),
+ mount: $9(SA)
},
search: {
prefetch: async () => {},
- mount: $9(Pae)
+ mount: $9(Aae)
}
};
//#endregion
-export { Kde as configureBatchDock, Jde as configureGlowPicker, ppe as configureImmerse, Spe as configureManageHeader, DWe as configureRouter, JWe as configureSettingsPanel, lGe as configureSidebar, WKe as configureStage, gqe as mountToaster, vqe as pages, uUe as prefetchManagedRoute, _qe as showToast };
+export { wde as configureBatchDock, Ede as configureGlowPicker, $fe as configureImmerse, cpe as configureManageHeader, MWe as configureRouter, $We as configureSettingsPanel, mGe as configureSidebar, YKe as configureStage, xqe as mountToaster, Cqe as pages, gUe as prefetchManagedRoute, Sqe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 94019196a..2842af182 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -2460,112 +2460,139 @@ function ar(e, t, n = !1) {
}
//#endregion
//#region src/history/managed.ts
-var or = null, sr = null, L = null, cr = 0, lr = /* @__PURE__ */ new Set();
-function ur(e) {
+var or = null, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), sr = 0, cr = /* @__PURE__ */ new Set();
+function lr(e) {
or = e, e.catch(() => {});
}
-var dr = () => sr;
+function ur(e) {
+ return L.get(e) ?? null;
+}
+var dr = () => [...L.values()];
function fr(e) {
- return lr.add(e), () => {
- lr.delete(e);
+ return cr.add(e), () => {
+ cr.delete(e);
};
}
function pr(e) {
- sr = e;
- for (let t of [...lr]) t(e);
+ let t = dr();
+ for (let n of [...cr]) n(t, e);
}
async function mr(e, t, n) {
- if (hr(), !n.isCurrent()) return !1;
- if (!or) throw Error("客户端导航还没装载,管理区页面无从画起");
- cr += 1;
- let r = {
- revision: cr,
+ let { container: r } = n;
+ if (_r(r), !n.isCurrent()) return !1;
+ if (!or) throw Error("客户端导航还没装载,路由树的页面无从画起");
+ sr += 1;
+ let i = {
+ revision: sr,
controller: new AbortController()
};
- L = r;
- let i = await or;
+ R.set(r, i);
+ let a = await or;
try {
- await i(e, t, r.controller.signal);
+ await a(e, t, i.controller.signal);
} catch {
- if (r.controller.signal.aborted) return !1;
+ if (i.controller.signal.aborted) return !1;
}
- if (L !== r || (L = null, !n.isCurrent())) return !1;
- let a = n.container.ownerDocument.createElement("div");
- return a.className = "peach-react", n.container.textContent = "", n.container.append(a), pr({
+ if (R.get(r) !== i || (R.delete(r), !n.isCurrent())) return !1;
+ let o = n.place ? n.place(r) : hr(r);
+ return L.set(r, {
path: e,
props: t,
- revision: r.revision,
- host: a
- }), !0;
+ revision: i.revision,
+ container: r,
+ host: o
+ }), pr(!0), !0;
+}
+function hr(e) {
+ let t = e.ownerDocument.createElement("div");
+ return t.className = "peach-react", e.textContent = "", e.append(t), t;
+}
+function gr(e, t) {
+ let n = L.get(e);
+ n && (L.set(e, {
+ ...n,
+ props: {
+ ...n.props,
+ ...t
+ }
+ }), pr(!1));
}
-function hr() {
- L &&= (L.controller.abort(), null);
- let e = sr;
- e && (pr(null), e.host.remove());
+function _r(e) {
+ let t = e ? [e] : [.../* @__PURE__ */ new Set([...R.keys(), ...L.keys()])], n = [];
+ for (let e of t) {
+ let t = R.get(e);
+ t && (t.controller.abort(), R.delete(e));
+ let r = L.get(e);
+ r && (L.delete(e), n.push(r));
+ }
+ if (n.length) {
+ pr(!0);
+ for (let e of n) e.host.remove();
+ }
}
//#endregion
//#region src/history/index.ts
-var R = Zn({ v5Compat: !0 }), z = 0, gr = {
- action: R.action,
- location: R.location,
- seq: z
-}, _r = /* @__PURE__ */ new Set(), vr = 0, yr = !1, br = null;
-R.listen(({ action: e, location: t }) => {
- z += 1, yr && (vr = z), gr = {
+var z = Zn({ v5Compat: !0 }), B = 0, vr = {
+ action: z.action,
+ location: z.location,
+ seq: B
+}, yr = /* @__PURE__ */ new Set(), br = 0, xr = !1, Sr = null;
+z.listen(({ action: e, location: t }) => {
+ B += 1, xr && (br = B), vr = {
action: e,
location: t,
- seq: z
+ seq: B
};
- for (let e of [..._r]) e(gr);
+ for (let e of [...yr]) e(vr);
});
-var xr = {
+var Cr = {
get navigation() {
- return gr;
+ return vr;
},
listen(e) {
- return _r.add(e), () => {
- _r.delete(e);
+ return yr.add(e), () => {
+ yr.delete(e);
};
},
- createHref: (e) => R.createHref(e),
- createURL: (e) => R.createURL(e),
- encodeLocation: (e) => R.encodeLocation(e),
- go: (e) => R.go(e),
- push: (e, t) => R.push(e, t),
- replace: (e, t) => R.replace(e, t)
+ createHref: (e) => z.createHref(e),
+ createURL: (e) => z.createURL(e),
+ encodeLocation: (e) => z.encodeLocation(e),
+ go: (e) => z.go(e),
+ push: (e, t) => z.push(e, t),
+ replace: (e, t) => z.replace(e, t)
};
-function Sr(e, { replace: t = !1, state: n } = {}) {
+function wr(e, { replace: t = !1, state: n } = {}) {
let r = new URL(e, window.location.href), i = `${r.pathname}${r.search}${r.hash}`;
- yr = !0;
+ xr = !0;
try {
- t ? R.replace(i, n) : R.push(i, n);
+ t ? z.replace(i, n) : z.push(i, n);
} finally {
- yr = !1;
+ xr = !1;
}
}
-function Cr(e) {
- return br = e, vr = z, Promise.resolve(e());
+function Tr(e) {
+ return Sr = e, br = B, Promise.resolve(e());
}
-function wr(e) {
- !br || e <= vr || (vr = e, br());
+function Er(e) {
+ !Sr || e <= br || (br = e, Sr());
}
//#endregion
//#region src/board-controls.ts
-function Tr(e) {
+function Dr(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-function Er() {
+function Or() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(Tr), Ar(e), Or(e);
+ e.querySelectorAll("input[type=range]").forEach(Dr), Mr(e), Ar(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Tr(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Dr(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && Tr(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && Dr(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);
@@ -2588,8 +2615,8 @@ function Er() {
n && ne(e, n) && o();
}, !0), window.addEventListener("resize", o);
}
-var Dr = /* @__PURE__ */ new Map();
-function Or(e) {
+var kr = /* @__PURE__ */ new Map();
+function Ar(e) {
let t = ".board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -2603,8 +2630,8 @@ function Or(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), Dr.set(t, i);
- }, i = Dr.get(t);
+ n(i), kr.set(t, i);
+ }, i = kr.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -2624,15 +2651,15 @@ function Or(e) {
o.observe(e);
});
}
-var kr = /* @__PURE__ */ new Map();
-function Ar(e) {
+var jr = /* @__PURE__ */ new Map();
+function Mr(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = kr.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = jr.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -2641,7 +2668,7 @@ function Ar(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- ee(t, r, a, "x"), r = a, kr.set(n, a);
+ ee(t, r, a, "x"), r = a, jr.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -2662,15 +2689,15 @@ function Ar(e) {
}
//#endregion
//#region src/theme-transition.ts
-var jr = !1;
-async function Mr(e, t) {
- if (jr) return;
+var Nr = !1;
+async function Pr(e, t) {
+ if (Nr) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, jr = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Nr = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -2681,78 +2708,78 @@ async function Mr(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), jr = !1;
+ delete s.dataset.themeSnapshot, o.remove(), Nr = !1;
}
}
//#endregion
//#region src/sidebar-skeleton.ts
-var Nr = (e) => e.replace(/[&<>"']/g, (e) => ({
+var Fr = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Pr(e, t, n) {
+function Ir(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${Nr(r)}"/></svg>`;
- return `<button type="button" data-nav="${Nr(e)}" aria-pressed="${n(e)}" aria-label="${Nr(t)}">${i}<span>${Nr(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${Fr(r)}"/></svg>`;
+ return `<button type="button" data-nav="${Fr(e)}" aria-pressed="${n(e)}" aria-label="${Fr(t)}">${i}<span>${Fr(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/manage-header.ts
-var Fr = {
+var Lr = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Ir = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Lr = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function Rr(e) {
+}, Rr = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), zr = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function Br(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Fr[e.path] ?? "";
+ let n = Lr[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Ir.has(e.path) || e.section === "configuration",
+ compact: Rr.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Lr(e.trash),
+ text: zr(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var B = (e) => e.replace(/[&<>"']/g, (e) => ({
+var V = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), zr = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${B(e)}"/></svg>`, Br = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Vr(e) {
- let t = Rr(e);
+})[e]), Vr = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${V(e)}"/></svg>`, Hr = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function Ur(e) {
+ let t = Br(e);
if (!t) return "";
let n = e.menu.map(([t, n, r]) => {
let i = t === e.section;
- return `<button type="button" data-manage="${B(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${zr(r)}<span>${B(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${zr("chevron-right")}</li><li aria-current="true"><span>${B(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? Br : `<span data-lede-text="">${B(t.lede.text)}</span>${t.lede.total ? Hr : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}<span data-manage-indicator="" aria-hidden="true"></span></div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${B(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${V(t)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${Vr(r)}<span>${V(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${Vr("chevron-right")}</li><li aria-current="true"><span>${V(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? Hr : `<span data-lede-text="">${V(t.lede.text)}</span>${t.lede.total ? Wr : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}<span data-manage-indicator="" aria-hidden="true"></span></div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${V(t.title)}</h2>` + i;
}
-var Hr = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Wr = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/jobs.ts
-function Ur(e, n, r) {
+function Gr(e, n, r) {
if (!Number.isFinite(r) || r <= 0) return "";
let i = Math.max(0, Math.min(r, Number.isFinite(n) ? n : 0)), a = i / r * 100;
return `<div class="board-job-progress" role="progressbar" aria-label="${t(e)}" aria-valuemin="0" aria-valuemax="${r}" aria-valuenow="${i}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${a} ${100 - a}" transform="rotate(-90 18 18)"/></svg><span>${t(e)}<small>${Math.round(a)}%</small></span></div>`;
}
-function Wr(e, t = 0, n = 0) {
- return n > 0 ? Ur(e, t, n) : y(e);
+function Kr(e, t = 0, n = 0) {
+ return n > 0 ? Gr(e, t, n) : y(e);
}
-async function Gr(e) {
+async function qr(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -2767,14 +2794,14 @@ async function Gr(e) {
await t(2e3);
}
}
-function Kr(e) {
+function Jr(e) {
let t = e.note || ((e) => te(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || y, r = e.progress || ((e, t, n) => Wr(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || y, r = e.progress || ((e, t, n) => Kr(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- Gr({
+ qr({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -2800,11 +2827,11 @@ function Kr(e) {
}
//#endregion
//#region src/selection.ts
-function qr(e, t, n, r, i, a = i || !e.has(r)) {
+function Yr(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
-function Jr(e, t) {
+function Xr(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -2812,14 +2839,14 @@ function Jr(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Yr(e, t, n) {
+function Zr(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function Xr({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function Qr({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
-function Zr(e, t, n = 1) {
+function $r(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -2839,15 +2866,15 @@ function Zr(e, t, n = 1) {
t
];
}
-function Qr(e, t) {
+function ei(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function $r(e, t) {
+function ti(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function ei(e, t, n) {
+function ni(e, t, n) {
if (t <= 1) return "";
- let r = Zr(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = $r(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -2856,20 +2883,20 @@ function ei(e, t, n) {
}
//#endregion
//#region src/card-art/face-frame.ts
-var ti = .32, ni = 13, ri = .6;
-function ii(e) {
+var ri = .32, ii = 13, ai = .6;
+function oi(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function ai(e, t, n = 1, r = ti, i = ri) {
- if (!ii(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function si(e, t, n = 1, r = ri, i = ai) {
+ if (!oi(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function oi(e, t, n = 1, r = ti, i = ri) {
- let a = ai(e, t, n, r, i);
- if (a <= 1 || !ii(e) || !t) return null;
+function ci(e, t, n = 1, r = ri, i = ai) {
+ let a = si(e, t, n, r, i);
+ if (a <= 1 || !oi(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -2881,48 +2908,48 @@ function oi(e, t, n = 1, r = ti, i = ri) {
}
//#endregion
//#region src/card-art/image-fallback.ts
-var si = "|", ci = "closest:";
-function li(e) {
- return String(e ?? "").split(si).map((e) => e.trim()).filter(Boolean);
+var li = "|", ui = "closest:";
+function di(e) {
+ return String(e ?? "").split(li).map((e) => e.trim()).filter(Boolean);
}
-function ui({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
+function fi({ drop: e = "self", fallbacks: n = [], initial: r = "", dropClass: i = "", dropStyle: a = !1 } = {}) {
let o = (Array.isArray(n) ? n : [n]).filter(Boolean);
return [
`data-drop="${t(e)}"`,
- o.length ? `data-fallbacks="${t(o.join(si))}"` : "",
+ o.length ? `data-fallbacks="${t(o.join(li))}"` : "",
r ? `data-initial="${t(r)}"` : "",
i ? `data-drop-class="${t(i)}"` : "",
a ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function di(e) {
+function pi(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = li(e.dataset.fallbacks);
+ let t = di(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(si) : delete e.dataset.fallbacks, e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(li) : delete e.dataset.fallbacks, e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(ci)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(ui)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-function fi(e) {
+function mi(e) {
e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && di(e.target);
+ e.target instanceof HTMLImageElement && pi(e.target);
}, !0);
}
//#endregion
//#region src/card-art/native-image.ts
-function pi(e, t, n, r) {
+function hi(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function mi(e, t, n, r, i = 1) {
+function gi(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -2939,33 +2966,33 @@ function mi(e, t, n, r, i = 1) {
}
//#endregion
//#region src/card-art/representatives.ts
-var hi = /* @__PURE__ */ new Map();
-function gi(e) {
+var _i = /* @__PURE__ */ new Map();
+function vi(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && hi.set(e.k, e.rep);
+ e.rep && e.has_avatar && _i.set(e.k, e.rep);
});
}
-function _i(e) {
- return hi.get(e);
+function yi(e) {
+ return _i.get(e);
}
//#endregion
//#region src/card-art/markup.ts
-var vi = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, yi = (e, t = !1) => vi(`/cover?code=${encodeURIComponent(e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), bi = (e, t, n) => vi(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), xi = (e) => e && typeof e == "object" ? e : null;
-function Si(e) {
+var bi = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, xi = (e, t = !1) => bi(`/cover?code=${encodeURIComponent(e.code || "")}${t ? "&thumb=1" : ""}`, e.cover_version), Si = (e, t, n) => bi(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), Ci = (e) => e && typeof e == "object" ? e : null;
+function wi(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function Ci({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
- let h = !!(t && n), g = h ? vi(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? bi(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
+function Ti({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !1 } = {}) {
+ let h = !!(t && n), g = h ? bi(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", _ = i ? `/avatar?id=${i}` : "", v = !!o, y = v ? Si(o, c, s) : g || _ || (a ? `/link-mark?id=${a}` : "");
if (!y) return "";
- let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, ne = te ? Oi(p) : "", re = d || Di(p);
- return `<img src="${y}" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? re : ""} ${ne}${ui({
+ let ee = v ? [g, _].filter(Boolean) : h && _ ? [_] : [], te = h && !v, ne = te ? Ai(p) : "", re = d || ki(p);
+ return `<img src="${y}" alt="${l}"${u ? " loading=\"lazy\"" : ""} decoding="async"${te ? re : ""} ${ne}${fi({
dropStyle: (f || !!ne || !!re) && te,
fallbacks: ee
})}>`;
}
-function wi(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
+function Ei(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0, l = !1) {
let u = c === void 0 ? n && n.avatar_focus || null : c;
- return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + Ci({
+ return `<span class="ini">${t((e || "?").slice(0, 1))}</span>` + Ti({
kind: i,
id: n && n.id,
hasImage: !!(n && n.has_image),
@@ -2979,19 +3006,19 @@ function wi(e, n, r, i = "performer", a = null, o = "", s = "icon", c = void 0,
thumb: l
});
}
-function Ti(e, t, n) {
- return wi(e, t, n ? _i(e) : null, n || "performer");
+function Di(e, t, n) {
+ return Ei(e, t, n ? yi(e) : null, n || "performer");
}
-function Ei(e) {
- let t = xi(e);
+function Oi(e) {
+ let t = Ci(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function Di(e) {
- let t = Ei(e);
+function ki(e) {
+ let t = Oi(e);
return t ? ` style="object-position:${t}"` : "";
}
-function Oi(e) {
- let t = xi(e)?.box;
+function Ai(e) {
+ let t = Ci(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -3000,8 +3027,8 @@ function Oi(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function ki(e, t, n = !1) {
- let r = yi(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
+function ji(e, t, n = !1) {
+ let r = xi(e, !0), i = e.cover_frame || {}, a = [i.cx == null ? "" : ` data-cx="${i.cx}"`, i.cy == null ? "" : ` data-cy="${Math.min(.6, Math.max(.05, i.cy))}"`].join(""), o = e.poster_box, s = o ? ` data-posterbox="${[
o.x0,
(o.px || [])[0],
(o.px || [])[1],
@@ -3012,39 +3039,39 @@ function ki(e, t, n = !1) {
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
alt="" loading="${n ? "eager" : "lazy"}"${a}${s} data-drop="self">`;
}
-var Ai = {
+var Mi = {
kind: "",
html: ""
};
-function ji(e, n, r, i) {
+function Ni(e, n, r, i) {
let a = he(e, i);
- if (!a) return Ai;
- let o = e.has_cover && e.code ? yi(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = ki(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
+ if (!a) return Mi;
+ let o = e.has_cover && e.code ? xi(e, !0) : "", s = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", c = ji(e, n, r), l = (c.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), u = a === "cover" ? c : `<img class="poster" src="${s}" alt="" loading="${r ? "eager" : "lazy"}"${l}>`;
return {
kind: a === "cover" ? "cover" : "thumb",
html: u.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${t(o)}" data-jav-thumb="${t(s)}" data-jav-image-layout="${n}" `)
};
}
-function Mi(e, n, r, i) {
- return e.is_jav ? ji(e, n, r, i) : e.follow_thumb_url ? {
+function Pi(e, n, r, i) {
+ return e.is_jav ? Ni(e, n, r, i) : e.follow_thumb_url ? {
kind: "thumb",
html: `<img class="poster" src="${t(e.follow_thumb_url)}" alt="" loading="${r ? "eager" : "lazy"}" referrerpolicy="no-referrer">`
- } : Ni(e, n, r, i);
+ } : Fi(e, n, r, i);
}
-function Ni(e, t, n, r) {
- return e.is_jav ? ji(e, t, n, r) : !e.has_thumb && !e.has_local_poster ? Ai : {
+function Fi(e, t, n, r) {
+ return e.is_jav ? Ni(e, t, n, r) : !e.has_thumb && !e.has_local_poster ? Mi : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Pi(e, t) {
- return Ni(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+function Ii(e, t) {
+ return Fi(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
}
-function Fi(e, t) {
+function Li(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav && he(e, t) === "cover" ? yi(e) : n;
+ return e.is_jav && he(e, t) === "cover" ? xi(e) : n;
}
-function Ii(e) {
+function Ri(e) {
let t = e.performers || [], n = e.performer_entities || [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -3055,18 +3082,18 @@ function Ii(e) {
total: e.performer_total || t.length
};
}
-function Li(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Ii(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${wi(e, a[t], _i(e))}</span>`).join("")}</div>` : `<span class="mav">${wi(n, t === "performer" ? a[0] : e.creator_entity, t ? _i(n) : null, t || "performer")}</span>`;
+function zi(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Ri(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${Ei(e, a[t], yi(e))}</span>`).join("")}</div>` : `<span class="mav">${Ei(n, t === "performer" ? a[0] : e.creator_entity, t ? yi(n) : null, t || "performer")}</span>`;
}
-function Ri(e, t) {
+function Bi(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
//#endregion
//#region src/card-art/framing.ts
-var zi = () => window.devicePixelRatio || 1;
-function V(e) {
+var Vi = () => window.devicePixelRatio || 1;
+function H(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -3085,17 +3112,17 @@ function V(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), V(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), H(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = pi(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = hi(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = oi({
+ let l = ci({
cx: r,
cy: i,
faceW: a * c,
@@ -3104,27 +3131,27 @@ function V(e) {
}, {
w: n.width,
h: n.height
- }, zi());
+ }, Vi());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function Bi(e) {
+function Hi(e) {
let t = e.naturalWidth / e.naturalHeight;
if (!t) return;
let n = new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
e.dataset.frame = /^FC2(?:-PPV)?-/i.test(n) || t >= 1.65 ? "still" : t > 1.2 ? "sleeve" : "front";
- let r = Wi(e), i = (t, n, r) => {
+ let r = Ki(e), i = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- i("--cover-x", Gi(e, "cx"), r / t), i("--cover-y", Gi(e, "cy"), t / r), Vi(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && Hi(e);
+ i("--cover-x", qi(e, "cx"), r / t), i("--cover-y", qi(e, "cy"), t / r), Ui(e, r), (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(t / r - 1) > .02 && Wi(e);
}
-function Vi(e, t) {
+function Ui(e, t) {
if (e.dataset.frame === "front") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ge * i), a = 0, o = r, s = i), !pi(e.naturalWidth, e.naturalHeight, r, i)) return;
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - ge * i), a = 0, o = r, s = i), !hi(e.naturalWidth, e.naturalHeight, r, i)) return;
let c = _e({
x0: n,
y0: a,
@@ -3132,33 +3159,33 @@ function Vi(e, t) {
y1: s,
px: [r, i]
}, t);
- c && (e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), Hi(e));
+ c && (e.classList.add("panel"), e.style.setProperty("--panel-clip", `${c.clip.top}% ${c.clip.right}% ${c.clip.bottom}% ${c.clip.left}%`), e.style.setProperty("--panel-left", `${c.left}%`), e.style.setProperty("--panel-top", `${c.top}%`), e.style.setProperty("--panel-height", `${c.height}%`), Wi(e));
}
-function Hi(e) {
+function Wi(e) {
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${e.dataset.thumbSrc || e.currentSrc || e.src}")`);
}
-function Ui(e) {
+function Gi(e) {
if (!/[?&]thumb=1(&|$)/.test(e.src) || !e.naturalWidth) return;
let { width: t, height: n } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * zi() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(t / e.naturalWidth, n / e.naturalHeight) * Vi() > 1.01 && (e.dataset.thumbSrc = e.src, e.src = e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function Wi(e) {
+function Ki(e) {
let t = getComputedStyle(e).getPropertyValue("--card-ratio").trim().split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function Gi(e, t) {
+function qi(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var Ki = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", qi = /* @__PURE__ */ new WeakMap();
-function Ji(e) {
- let t = e.matches(Ki) ? [e] : e.querySelectorAll(Ki);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), qi.set(e.parentElement, performance.now()));
+var Ji = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", Yi = /* @__PURE__ */ new WeakMap();
+function Xi(e) {
+ let t = e.matches(Ji) ? [e] : e.querySelectorAll(Ji);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), Yi.set(e.parentElement, performance.now()));
}
-function Yi(e) {
+function Zi(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (performance.now() - (qi.get(t) ?? NaN) < g) {
+ if (performance.now() - (Yi.get(t) ?? NaN) < g) {
t.classList.remove("imgwait");
return;
}
@@ -3168,86 +3195,86 @@ function Yi(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function Xi(e) {
+function Qi(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? Bi(t) : (Zi(t), V(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? Hi(t) : ($i(t), H(t)));
}
}
-function Zi(e) {
+function $i(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let { small: n, width: r, height: i } = mi(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, zi());
+ let { small: n, width: r, height: i } = gi(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, Vi());
t.dataset.nativeSmall = String(n), t.style.setProperty("--markw", n ? r + "px" : "100%"), t.style.setProperty("--markh", n ? i + "px" : "100%");
let a = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", n ? `url("${a}")` : "none");
}
-function Qi(e) {
+function ea(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- Zi(e), e.dataset.facebox && V(e);
+ $i(e), e.dataset.facebox && H(e);
});
}
-function $i(e, t) {
- for (let n of ye(e, t)) Bi(n), Ui(n);
+function ta(e, t) {
+ for (let n of ye(e, t)) Hi(n), Gi(n);
}
-var ea = !1;
-function ta() {
- ea || (ea = !0, document.addEventListener("load", (e) => {
+var na = !1;
+function ra() {
+ na || (na = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (Yi(t), Zi(t), t.classList.contains("cover") ? (Bi(t), Ui(t)) : t.dataset.facebox && V(t));
+ t instanceof HTMLImageElement && (Zi(t), $i(t), t.classList.contains("cover") ? (Hi(t), Gi(t)) : t.dataset.facebox && H(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (Ji(e), Xi(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (Xi(e), Qi(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && Yi(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && Zi(t);
}, !0));
}
//#endregion
//#region src/card-art/hover.ts
-var na = ".card,[data-media-card],[data-mix-card]", H = {
+var ia = ".card,[data-media-card],[data-mix-card]", U = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function ra(e) {
- H = e;
+function aa(e) {
+ U = e;
}
-var ia = () => !!window.__scrolling;
-function aa(e = document, t = null) {
- !e || !e.querySelectorAll || (e.querySelectorAll(na).forEach((e) => {
+var oa = () => !!window.__scrolling;
+function sa(e = document, t = null) {
+ !e || !e.querySelectorAll || (e.querySelectorAll(ia).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(na) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(ia) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.hvframes").forEach((e) => {
- e.closest(na) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(ia) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function oa(e) {
- e._stopHover?.(), aa(e);
+function ca(e) {
+ e._stopHover?.(), sa(e);
}
-function U(e, t, n) {
+function la(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function sa(e, t) {
+function ua(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), H.delaySeconds() && (U(e, "previewing", !0), i = setTimeout(() => {
- H.delaySeconds() && U(e, "longhover", !0);
- }, H.delaySeconds() * 1e3));
+ clearTimeout(i), U.delaySeconds() && (la(e, "previewing", !0), i = setTimeout(() => {
+ U.delaySeconds() && la(e, "longhover", !0);
+ }, U.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), U(e, "previewing", !1), U(e, "longhover", !1);
+ clearTimeout(i), la(e, "previewing", !1), la(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
let i, s = 4, c = null, l = !1;
e.addEventListener("mouseenter", () => {
- H.selecting() || H.censored() || (a(), c || (c = document.createElement("img"), c.className = "hvframes", c.alt = "", c.src = `/poster?id=${t.id}&c=${s}`, r.appendChild(c)), clearInterval(i), i = setInterval(() => {
+ U.selecting() || U.censored() || (a(), c || (c = document.createElement("img"), c.className = "hvframes", c.alt = "", c.src = `/poster?id=${t.id}&c=${s}`, r.appendChild(c)), clearInterval(i), i = setInterval(() => {
if (!c || l) return;
let e = (s + 1) % 9, n = new Image();
l = !0, n.onload = () => {
@@ -3265,9 +3292,9 @@ function sa(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- H.selecting() || H.censored() || ia() || (s = setTimeout(() => {
- if (ia() || H.censored()) return;
- aa(document, e);
+ U.selecting() || U.censored() || oa() || (s = setTimeout(() => {
+ if (oa() || U.censored()) return;
+ sa(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -3297,7 +3324,7 @@ function sa(e, t) {
}
//#endregion
//#region src/entity-skeleton.ts
-function ca(e, t, n) {
+function da(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -3311,7 +3338,7 @@ function ca(e, t, n) {
}
//#endregion
//#region src/follow-sort.ts
-var la = [
+var fa = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -3319,7 +3346,7 @@ var la = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], ua = "checked", da = {
+], pa = "checked", ma = {
checked: "desc",
added: "desc",
name: "asc",
@@ -3327,38 +3354,38 @@ var la = [
source: "asc",
provider: "asc",
status: "asc"
-}, fa = (e) => la.some(([t]) => t === e);
-function pa(e, t) {
- let n = fa(e) ? e : ua;
+}, ha = (e) => fa.some(([t]) => t === e);
+function ga(e, t) {
+ let n = ha(e) ? e : pa;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : da[n]
+ dir: t === "asc" || t === "desc" ? t : ma[n]
};
}
//#endregion
//#region src/island-skeleton.ts
-var ma = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", ha = {
+var _a = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", va = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, ga = {
- medium: ha.medium,
+}, ya = {
+ medium: va.medium,
small: "size-8 rounded-lg p-0 text-body-medium"
-}, _a = {
+}, ba = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, va = {
+}, xa = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, ya = {
+}, Sa = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, ba = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+}, Ca = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
function W({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? ha[t] : ga[t], s = n ? ba(n, _a[t]) : "", c = r ? `<span class="${va[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${ma} ${o} ${ya[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+ let o = r ? va[t] : ya[t], s = n ? Ca(n, ba[t]) : "", c = r ? `<span class="${xa[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${_a} ${o} ${Sa[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var xa = {
+var wa = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -3370,32 +3397,32 @@ var xa = {
chevron: "size-3.5"
}
};
-function Sa(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
- let i = xa[t];
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${ba("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
+function Ta(e, { size: t = "md", className: n = "", attrs: r = "" } = {}) {
+ let i = wa[t];
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${i.box}"><span class="flex min-w-0 items-center truncate ${i.value}">${e}</span>${Ca("chevron-down", `shrink-0 text-text-secondary ${i.chevron}`)}</button></div>`;
}
-var Ca = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", wa = "flex min-w-0 flex-col gap-2", Ta = "text-body-regular text-text-secondary", Ea = "text-display-4-medium tabular-nums text-text-primary", Da = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function Oa(e) {
- return `<div data-collection-summary="" class="${Ca}"><div class="${wa}"><span class="${Ta}">${e}</span><strong class="${Ea}"><span data-skeleton="count" aria-hidden="true" class="${Da}"></span></strong></div></div>`;
+var Ea = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Da = "flex min-w-0 flex-col gap-2", Oa = "text-body-regular text-text-secondary", ka = "text-display-4-medium tabular-nums text-text-primary", Aa = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function ja(e) {
+ return `<div data-collection-summary="" class="${Ea}"><div class="${Da}"><span class="${Oa}">${e}</span><strong class="${ka}"><span data-skeleton="count" aria-hidden="true" class="${Aa}"></span></strong></div></div>`;
}
//#endregion
//#region src/configuration-copy.ts
-var ka = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Aa = "仅填域名;留空使用默认地址", ja = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${W({
+var Ma = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名,Peach 会保留人物页路径。 资料页只显示已有站点身份记录的入口;JavDB 和 MISSAV 还要求有 JAV 目录站记录。 缺少这些记录的 FC2 创作者不会显示这两个入口。", Na = "仅填域名;留空使用默认地址", Pa = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${W({
label: "保存配置",
attrs: "disabled data-skeleton-action"
-})}</div></div></section>`, Ma = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, Na = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Aa}</p></div>`;
-function Pa() {
+})}</div></div></section>`, Fa = (e, t = "") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton configuration-skeleton-toggle"></span></div>`, Ia = (e) => `<div class="flex w-full flex-col gap-1"><p class="text-body-medium text-text-primary">${e} 地址</p><span class="skeleton configuration-skeleton-input"></span><p class="pt-px text-caption-1-medium text-text-secondary">${Na}</p></div>`;
+function La() {
return `<div class="peach-react"><div class="configpage">${`<div class="board-local-nav" data-section-nav data-section-items>${[
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${ja("开机自启", `<div class="flex flex-col">${Ma("开机后启动 Peach")}${Ma("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${Ma("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${ja("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${ka}</p>${Na("JavDB")}${Na("MISSAV")}</div>`)}</div></div></div>`;
+ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${Pa("开机自启", `<div class="flex flex-col">${Fa("开机后启动 Peach")}${Fa("静默启动", "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。")}${Fa("在桌面创建快捷方式", "双击图标打开 Peach 网页;卸载时一并移除。")}</div>`)}${Pa("外部入口", `<div class="flex flex-col gap-4 py-4 pr-3"><p class="text-body-2-regular text-text-secondary">${Ma}</p>${Ia("JavDB")}${Ia("MISSAV")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
-var G = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", K = (e = "60%") => `<span class="${G} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, Fa = "disabled data-skeleton-action", Ia = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function La() {
+var G = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", K = (e = "60%") => `<span class="${G} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, Ra = "disabled data-skeleton-action", za = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function Ba() {
let e = [
"馆藏视频",
"看过",
@@ -3406,7 +3433,7 @@ function La() {
<span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${G} size-7 max-sm:size-6"></i>${e}</span>
<b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${K("4em")}</b>
<small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${K("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${Ia}" data-stats-chart>
+ </div>`).join(""), t = (e) => `<section class="${za}" data-stats-chart>
<header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${K("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
@@ -3423,7 +3450,7 @@ function La() {
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${Ia}"><h3 class="text-title-2-medium">${e}</h3><div class="${G} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${za}"><h3 class="text-title-2-medium">${e}</h3><div class="${G} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -3436,7 +3463,7 @@ function La() {
</section>
</div></div>`;
}
-function Ra() {
+function Va() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${G} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${K("70%")}</span>
@@ -3453,18 +3480,18 @@ function Ra() {
variant: "secondary",
size: "small",
label: e,
- attrs: Fa
+ attrs: Ra
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
<div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${K("4em")}</strong></div><p class="text-body-regular text-text-secondary">${K("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${Fa} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${Ra} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function za() {
+function Ha() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${G} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${K("80%")}</h3><p class="text-body-2-regular">${K("60%")}</p></div>
@@ -3473,31 +3500,31 @@ function za() {
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: Fa
+ attrs: Ra
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${Oa("待升级")}
+ ${ja("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
//#endregion
//#region src/board-skeleton.ts
-var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba = () => `${q("80%")}${q("48%")}`, J = (e, t) => e.repeat(t), Va = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${q("45%")}</b><small class="board-stat-footer">${q("60%")}</small></div>`).join("")}</div>`, Ha = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, Ua = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${J(Ba(), 3)}</div></section>`, Y = "disabled data-skeleton-action", X = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, Wa = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", Ga = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ua = () => `${q("80%")}${q("48%")}`, J = (e, t) => e.repeat(t), Wa = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${q("45%")}</b><small class="board-stat-footer">${q("60%")}</small></div>`).join("")}</div>`, Ga = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, Ka = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${J(Ua(), 3)}</div></section>`, Y = "disabled data-skeleton-action", X = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, qa = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", Ja = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${Wa}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X("3em")}</b></div>`).join("")}</div>`, Ka = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
+].map((e) => `<div class="${qa}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X("3em")}</b></div>`).join("")}</div>`, Ya = () => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${[
"关注列表",
"添加关注",
"JAV 订阅源",
"想要",
"来源和凭证"
-].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, qa = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, Ja = ({ table: e, sort: t, dir: n }) => {
- let r = la.find(([e]) => e === t)[1];
+].map((e, t) => `<span class="whitespace-nowrap" aria-selected="${t === 0}">${e}</span>`).join("")}</div>`, Xa = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, Za = ({ table: e, sort: t, dir: n }) => {
+ let r = fa.find(([e]) => e === t)[1];
return `<div class="flex flex-wrap items-center gap-2 follow-skeleton-toolbar"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${X("132px")}</span>${W({
glyph: "refresh-cw",
label: "检查全部",
@@ -3511,7 +3538,7 @@ var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba =
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span>${Sa(r)}${W({
+ })}</span>${Ta(r)}${W({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
})}${e ? "" : W({
@@ -3521,7 +3548,7 @@ var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba =
compact: !0,
attrs: Y
})}</div>`;
-}, Ya = () => `<span class="flex shrink-0 items-center gap-1">${W({
+}, Qa = () => `<span class="flex shrink-0 items-center gap-1">${W({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -3531,7 +3558,7 @@ var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba =
size: "small",
glyph: "trash",
attrs: Y
-})}</span>`, Xa = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${qa()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${X("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z(14, 14)}</span>${Z(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${X("113px")}</span>${Ya()}</div>`, Za = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${Z(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${X("92px")}</b>${W({
+})}</span>`, $a = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 follow-skeleton-source">${Xa()}<span class="flex min-w-0 grow flex-col gap-0.5"><span class="text-body-medium">${X("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z(14, 14)}</span>${Z(48, 24)}<span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary">${X("113px")}</span>${Qa()}</div>`, eo = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${Z(32, 32, !0)}<b class="min-w-0 grow text-body-medium break-words text-text-primary">${X("92px")}</b>${W({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -3548,13 +3575,13 @@ var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba =
glyph: "chevron-up",
label: "收起",
attrs: Y
-})}</div><div data-source-divider>${J(Xa(), e)}</div></section>`, Qa = () => {
+})}</div><div data-source-divider>${J($a(), e)}</div></section>`, to = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, $a = [
+}, no = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -3562,58 +3589,58 @@ var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ba =
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], eo = {
+], ro = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, to = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", no = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${$a.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${eo[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${to}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J(`<tr>${[
- qa(),
+}, io = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", ao = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${no.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${ro[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${io}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J(`<tr>${[
+ Xa(),
`<span class="flex min-w-0 items-center gap-2">${Z(32, 32, !0)}${X("5em")}</span>`,
X("10em"),
`<span class="flex items-center gap-1.5">${Z(14, 14)}${X("4em")}</span>`,
Z(48, 24),
X("113px"),
- Ya()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, ro = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${X("111px")}</span>${Sa(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z(204, 32)}</div>`, io = (e) => {
- let t = e.followLayout === "table", n = pa(e.followSort, e.followDir), r = e.followPageSize || Qa(), i = t ? no(r, n) : `${qa("全选本页")}<div class="flex flex-col gap-3">${Za(3)}${Za(4)}${Za(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Ga()}<div class="flex flex-col gap-6">${Ka()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${Ja({
+ Qa()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, oo = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${X("111px")}</span>${Ta(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z(204, 32)}</div>`, so = (e) => {
+ let t = e.followLayout === "table", n = ga(e.followSort, e.followDir), r = e.followPageSize || to(), i = t ? ao(r, n) : `${Xa("全选本页")}<div class="flex flex-col gap-3">${eo(3)}${eo(4)}${eo(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Ja()}<div class="flex flex-col gap-6">${Ya()}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 follow-skeleton-surface" data-layout="${t ? "table" : "default"}">${Za({
table: t,
...n
- })}${i}${ro(t, r)}</div></div></div></div></div>`;
+ })}${i}${oo(t, r)}</div></div></div></div></div>`;
};
-function ao() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${q("85%")}${q("65%")}${J(Ba(), 4)}</div></aside></div>`;
+function co() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${q("85%")}${q("65%")}${J(Ua(), 4)}</div></aside></div>`;
}
-function oo() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${ao()}</div>`;
+function lo() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情">${co()}</div>`;
}
-function so(e, t = {}) {
+function uo(e, t = {}) {
let n = "";
- if (e === "/stats") n = La();
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${Ha(["浏览器记录", "Peach 内部"], "insightswitch")}${q("24%")}</header><div class="tastestate"></div>${Va([
+ if (e === "/stats") n = Ba();
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${Ga(["浏览器记录", "Peach 内部"], "insightswitch")}${q("24%")}</header><div class="tastestate"></div>${Wa([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${J(Ba(), 4)}</div></section>${Ua("口味分析")}<div class="board-activity-charts">${Ua("浏览活动")}${Ua("时间分布")}</div>${Ua("标签")}</div>`;
- else if (e === "/follow-manage") n = io(t);
- else if (e === "/configuration") n = Pa();
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${J(Ua(), 4)}</div></section>${Ka("口味分析")}<div class="board-activity-charts">${Ka("浏览活动")}${Ka("时间分布")}</div>${Ka("标签")}</div>`;
+ else if (e === "/follow-manage") n = so(t);
+ else if (e === "/configuration") n = La();
else if (e === "/activity") n = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${q("35%")}${Ba()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = Ra();
- else if (e === "/quality-goals") n = za();
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${q("200px")}</div></header><div class="playlistcards">${J(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Ba()}</div></div></article>`, 6)}</div></section>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${q("35%")}${Ua()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") n = Va();
+ else if (e === "/quality-goals") n = Ha();
+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${q("200px")}</div></header><div class="playlistcards">${J(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Ua()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var co = [
+var fo = [
"loc",
"creator",
"performer",
@@ -3631,9 +3658,9 @@ var co = [
"jav",
"thumb"
];
-async function lo(e, t) {
+async function po(e, t) {
let n = new URLSearchParams();
- for (let t of co) e[t] && n.set(t, e[t]);
+ for (let t of fo) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -3644,7 +3671,7 @@ async function lo(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function uo({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function mo({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || n) return _("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -3665,56 +3692,56 @@ function uo({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/catalog-filter-skeleton.ts
-var fo = 64, po = (e) => e.replace(/[&<>"]/g, (e) => ({
+var ho = 64, go = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), mo = (e) => e.repeat(fo);
-function ho(e, t) {
- let n = e.map((e) => `<a href="${po(e.href)}" data-catalog-view="${po(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${po(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + mo("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + mo("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(fo) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
+})[e]), _o = (e) => e.repeat(ho);
+function vo(e, t) {
+ let n = e.map((e) => `<a href="${go(e.href)}" data-catalog-view="${go(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${go(e.label)}</a>`).join("");
+ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + _o("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + _o("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${n}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(ho) + "</span></div></div></div><div data-filter-row=\"bottom\" aria-busy=\"true\" class=\"flex min-w-0 items-center gap-3 px-3 py-2 min-h-12\"><span data-catalog-readout=\"\"><span data-skeleton=\"count\" aria-hidden=\"true\" class=\"relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen\"></span></span></div></div></div></div>";
}
//#endregion
//#region src/catalog-bars.ts
-var go = 3e4, _o = 0, vo = (e, t = _o) => [
+var yo = 3e4, bo = 0, xo = (e, t = bo) => [
"facets",
e,
t
-], yo = (e, t, n = _o) => [
+], So = (e, t, n = bo) => [
"tops",
e,
t,
n
-], bo = (e, t = _o) => [
+], Co = (e, t = bo) => [
"tops",
e,
t
];
-async function xo(t) {
+async function wo(t) {
let n = String(t), r = await e(`/api/tops?${n}`), i = new URLSearchParams(n);
return r.performers.length || r.studios.length || !i.has("state") ? r : (i.delete("state"), await e(`/api/tops?${i}`));
}
-function So(t, n) {
+function To(t, n) {
return Promise.all([I.fetchQuery({
- queryKey: vo(t),
+ queryKey: xo(t),
queryFn: () => e(`/api/facets${t ? `?${t}` : ""}`),
- staleTime: go
+ staleTime: yo
}), I.fetchQuery({
- queryKey: yo(n, t),
- queryFn: () => xo(n),
- staleTime: go
+ queryKey: So(n, t),
+ queryFn: () => wo(n),
+ staleTime: yo
})]);
}
-function Co(e) {
+function Eo(e) {
return I.fetchQuery({
- queryKey: bo(e),
- queryFn: () => xo(e),
- staleTime: go
+ queryKey: Co(e),
+ queryFn: () => wo(e),
+ staleTime: yo
});
}
-function wo() {
- _o += 1;
+function Do() {
+ bo += 1;
let e = (e) => e.state.fetchStatus === "idle";
I.removeQueries({
queryKey: ["facets"],
@@ -3726,35 +3753,35 @@ function wo() {
}
//#endregion
//#region src/management.ts
-var To = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Eo = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Q = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Do = "type=\"button\" disabled data-skeleton-action", Oo = "disabled data-skeleton-action", ko = "aria-disabled=\"true\"", Ao = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, jo = (e, t) => `<div data-geist-fieldset-content>
+var Oo = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", ko = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Q = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", Ao = "type=\"button\" disabled data-skeleton-action", jo = "disabled data-skeleton-action", Mo = "aria-disabled=\"true\"", No = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, Po = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
-function Mo() {
- return Ao(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${jo("扫描与采集", To)}
- <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${ba("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${W({
+function Fo() {
+ return No(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
+ ${Po("扫描与采集", Oo)}
+ <footer data-geist-fieldset-footer><a href="/scraping" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ca("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${W({
glyph: "database",
label: "扫描并补全资料",
- attrs: Oo
+ attrs: jo
})}${W({
glyph: "chevron-down",
- attrs: `${Oo} aria-label="更多扫描与采集方式"`
+ attrs: `${jo} aria-label="更多扫描与采集方式"`
})}</span></footer>
</section>`);
}
-function No() {
- return Ao(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${jo("媒体修复", Eo)}
- <footer data-geist-fieldset-footer>${Sa(Q, {
+function Io() {
+ return No(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
+ ${Po("媒体修复", ko)}
+ <footer data-geist-fieldset-footer>${Ta(Q, {
className: "w-48",
- attrs: ko
+ attrs: Mo
})}${W({
label: "开始修复",
- attrs: Oo
+ attrs: jo
})}</footer>
</section>`);
}
-function Po() {
+function Lo() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -3769,8 +3796,8 @@ function Po() {
<span class="board-plain-stat-head"><span class="board-stat-tile">${n(t)}</span>${e}</span>
<strong>${Q}</strong><span class="cleanupmeta">${Q}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${Mo()}</div>
- <div class="cleanupmediarepair">${No()}</div>
+ <div class="cleanupscraping">${Fo()}</div>
+ <div class="cleanupmediarepair">${Io()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
@@ -3781,7 +3808,7 @@ function Po() {
<div class="organizepresets">${t}</div>
<p class="cleanupmeta">${Q}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Do}>预览</button></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${Ao}>预览</button></footer>
</section></div>
<section class="resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
@@ -3793,19 +3820,19 @@ function Po() {
"作品资料站"
].map((e) => `<div><span>${e}</span><b>${Q}</b></div>`).join("")}</div>
<div class="linkhosts"><span>主要站点</span><b>${Q}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Do}>${n("unlink")}<span>检查死链</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Ao}>${n("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Do}>${n("git-compare")}<span>检查文件</span></button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${Ao}>${n("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/junk-queue.ts
-var Fo = [
+var Ro = [
[
"",
"全部",
@@ -3841,70 +3868,69 @@ var Fo = [
"其它",
"hard-drive"
]
-], Io = (e) => Fo.find(([t]) => t === e)?.[0] ?? "";
-function Lo(e) {
+], zo = (e) => Ro.find(([t]) => t === e)?.[0] ?? "";
+function Bo(e) {
let t = new URLSearchParams(e);
return {
- kind: Io(t.get("type")),
+ kind: zo(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function Ro(e = "", t = "pending") {
+function Vo(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function zo(e) {
+function Ho(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: Ro("", "pending")
+ href: Vo("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: Ro("", "dismissed")
+ href: Vo("", "dismissed")
};
}
-var Bo = (e) => e === "dismissed" ? "已排除" : "待判断", Vo = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function Ho({ kind: e, view: n }) {
- let r = Fo.map(([r, i, a]) => `<a href="${Ro(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${Vo(a)}${t(i)}</a>`).join(""), i = zo(n);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Oa(Bo(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${Vo(i.glyph)}${i.label}</a></nav></div></div></div>`;
+var Uo = (e) => e === "dismissed" ? "已排除" : "待判断", Wo = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Go({ kind: e, view: n }) {
+ let r = Ro.map(([r, i, a]) => `<a href="${Vo(r, n)}" data-junk-kind-link="${r}"${r === e ? " aria-current=\"page\"" : ""}>${Wo(a)}${t(i)}</a>`).join(""), i = Ho(n);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${ja(Uo(n))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${r}<i data-junk-divider="" aria-hidden="true"></i><a href="${i.href}" data-junk-view-link="${i.view}"${n === "dismissed" ? " aria-current=\"page\"" : ""}>${Wo(i.glyph)}${i.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/player/controls.ts
-function Uo(e, t) {
+function Ko(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
//#endregion
//#region src/player/playback.ts
-function Wo(e) {
+function qo(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function Go(e, t) {
+function Jo(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/islands.ts
-var Ko = {
+var Yo = {
"catalog-filter": { react: "catalog-filter" },
"catalog-grid": { react: "catalog-grid" },
"entity-page": { react: "entity-page" },
"feed-new": { react: "feed-new" },
"follow-feed": { react: "follow-feed" },
- index: { react: "index" },
"junk-queue": { react: "junk-queue" },
"library-processing": { react: "library-processing" },
playlists: { react: "playlists" },
search: { react: "search" }
-}, qo = () => import("/dist/peach-react.js").then(() => void 0), Jo = () => Object.keys(Ko), $ = /* @__PURE__ */ new Map();
-async function Yo(e, t, n, r = {}) {
- let i = Ko[e];
+}, Xo = () => import("/dist/peach-react.js").then(() => void 0), Zo = () => Object.keys(Yo), $ = /* @__PURE__ */ new Map();
+async function Qo(e, t, n, r = {}) {
+ let i = Yo[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- $o(t);
+ ns(t);
let a = { controller: new AbortController() };
$.set(t, a);
let o = (await import("/dist/peach-react.js")).pages[i.react];
@@ -3913,7 +3939,7 @@ async function Yo(e, t, n, r = {}) {
} catch {
if (a.controller.signal.aborted) return;
}
- if (!Zo(t, a, r)) return;
+ if (!es(t, a, r)) return;
let s = () => {
t.textContent = "";
let e = t.ownerDocument.createElement("div");
@@ -3925,63 +3951,63 @@ async function Yo(e, t, n, r = {}) {
};
r.reveal ? r.reveal(t, s) : s();
}
-function Xo(e, t) {
+function $o(e, t) {
let n = e ? $.get(e) : void 0;
!n?.update || !n.props || (n.props = {
...n.props,
...t
}, n.update(n.props));
}
-function Zo(e, t, n) {
+function es(e, t, n) {
return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : !0 : !1;
}
-var Qo = (e) => !!e && $.has(e);
-function $o(e) {
- for (let t of [...$.keys()]) (t === e || e.contains(t)) && es(t);
+var ts = (e) => !!e && $.has(e);
+function ns(e) {
+ for (let t of [...$.keys()]) (t === e || e.contains(t)) && rs(t);
}
-function es(e) {
+function rs(e) {
let t = $.get(e);
t && (t.controller.abort(), $.delete(e), t.dispose?.());
}
-var ts = null;
-function ns(e, t, n, r) {
- ts ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), ts.then((e) => e.showToast(n, r));
+var is = null;
+function as(e, t, n, r) {
+ is ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), is.then((e) => e.showToast(n, r));
}
-var rs = null, is = null;
-function as(e) {
- return rs ??= import("/dist/peach-react.js").then((t) => (is = t.configureStage(e), is)), rs;
+var os = null, ss = null;
+function cs(e) {
+ return os ??= import("/dist/peach-react.js").then((t) => (ss = t.configureStage(e), ss)), os;
}
-var os = () => is, ss = null, cs = null;
-function ls(e) {
- return ss ??= import("/dist/peach-react.js").then((t) => (cs = t.configureSettingsPanel(e), cs)), ss;
+var ls = () => ss, us = null, ds = null;
+function fs(e) {
+ return us ??= import("/dist/peach-react.js").then((t) => (ds = t.configureSettingsPanel(e), ds)), us;
}
-var us = () => cs, ds = null, fs = null;
-function ps(e) {
- return ds ??= import("/dist/peach-react.js").then((t) => (fs = t.configureImmerse(e), fs)), ds;
+var ps = () => ds, ms = null, hs = null;
+function gs(e) {
+ return ms ??= import("/dist/peach-react.js").then((t) => (hs = t.configureImmerse(e), hs)), ms;
}
-var ms = () => fs, hs = null, gs = null;
-function _s(e) {
- return hs ??= import("/dist/peach-react.js").then((t) => (gs = t.configureSidebar(e), gs)), hs;
+var _s = () => hs, vs = null, ys = null;
+function bs(e) {
+ return vs ??= import("/dist/peach-react.js").then((t) => (ys = t.configureSidebar(e), ys)), vs;
}
-var vs = () => gs, ys = null, bs = null;
-function xs(e) {
- return ys ??= import("/dist/peach-react.js").then((t) => (bs = t.configureManageHeader(e), bs)), ys;
+var xs = () => ys, Ss = null, Cs = null;
+function ws(e) {
+ return Ss ??= import("/dist/peach-react.js").then((t) => (Cs = t.configureManageHeader(e), Cs)), Ss;
}
-var Ss = () => bs, Cs = null, ws = null;
-function Ts(e) {
- return Cs ??= import("/dist/peach-react.js").then((t) => (ws = t.configureBatchDock(e), ws)), Cs;
-}
-var Es = () => ws, Ds = null;
+var Ts = () => Cs, Es = null, Ds = null;
function Os(e) {
- return Ds ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), Ds;
+ return Es ??= import("/dist/peach-react.js").then((t) => (Ds = t.configureBatchDock(e), Ds)), Es;
+}
+var ks = () => Ds, As = null;
+function js(e) {
+ return As ??= import("/dist/peach-react.js").then((t) => t.configureGlowPicker(e)), As;
}
-var ks = null;
-function As(e) {
- if (!ks) {
+var Ms = null;
+function Ns(e) {
+ if (!Ms) {
let t = import("/dist/peach-react.js").then((t) => (t.configureRouter(e), t));
- ur(t.then((e) => e.prefetchManagedRoute)), ks = t.then(() => void 0);
+ lr(t.then((e) => e.prefetchManagedRoute)), Ms = t.then(() => void 0);
}
- return ks;
+ return Ms;
}
//#endregion
-export { wt as ACCENT_CHOICES, qe as COVER_FRONT_RATIO, F as CancelledError, Ne as DEFAULT_SETTINGS, xe as DEFAULT_SIDEBAR_ORDER, ri as FACE_CEILING, ti as FACE_TARGET, Me as FEED_COMPILATION_KEYS, Ae as FOLLOW_INITIAL_DAYS, Pn as InfiniteQueryObserver, We as JAV_LAYOUTS, ae as JAV_RELEASE_SORT, je as METADATA_REFRESH_DAYS, ni as MIN_FACE_PX, Fn as Mutation, Ln as MutationCache, zn as MutationObserver, Ke as PHOTO_LAYOUTS, Ge as PHOTO_SIZES, Vn as QueriesObserver, wn as Query, Hn as QueryCache, Un as QueryClient, On as QueryObserver, Oe as SETTINGS_KEY, ie as SORTS, ce as SORT_ALIASES, se as SORT_DIR_WORDS, oe as SORT_KEYS, ke as THEME_CHOICES, Re as THEME_OPTIONS, ut as TILES, di as advanceImageFallback, S as allowedSetting, w as appSettingsStore, xt as applyAccent, mt as applyDensity, bt as applyGlassFaces, yt as applyHomeGlow, Ie as applySyncedSettings, Ve as applyTheme, V as avatarFrame, wi as avatarInner, Es as batchDockApi, so as boardPageSkeleton, Mi as cardArtwork, Ii as cardIdentity, Xe as cardLayoutFor, rt as cardRatio, uo as catalogEmptyHtml, ho as catalogFilterSkeletonHtml, lo as catalogSuggestions, Et as chooseAccent, Tt as chooseGlowPreset, $r as clampPage, Po as cleanupSkeletonHtml, Uo as clickPlayerControl, ra as configureHoverPreview, ur as connectManagedRoutes, Bi as coverAnchor, Hi as coverBackdrop, Gi as coverFace, ki as coverImage, Wi as coverRatio, yi as coverUrl, dt as currentDensity, Kn as dataTagErrorSymbol, Gn as dataTagSymbol, fn as defaultScheduler, cn as defaultShouldDehydrateMutation, ln as defaultShouldDehydrateQuery, ue as defaultSortDir, un as dehydrate, sn as dehydrateQuery, Fi as detailPosterUrl, oo as detailSkeletonHtml, wo as dropBars, Ti as entityAvatar, Ci as entityFaceImg, ca as entitySkeletonHtml, tn as environmentManager, Wn as experimental_streamedQuery, Oi as faceBoxAttrs, oi as faceFrame, Ei as faceOrigin, Di as facePos, pi as faceSourceScale, ai as faceZoom, So as fetchBars, Co as fetchTopsPage, Zi as fitNativeImage, nn as focusManager, Kr as followJobProgress, Xi as frameCachedImages, Ct as glowChips, nt as gridLayout, ii as hasFaceBox, k as hashKey, Ye as homeLayout, dn as hydrate, ui as imageFallbackAttrs, ms as immerseApi, Er as initBoardControls, ta as installCardArt, gn as isCancelledError, Mt as isServer, Qo as islandMounted, Jo as islandNames, ji as javArtwork, he as javImageKind, Je as javLayout, Wr as jobActivityHtml, Ho as junkCountSkeletonHtml, Ro as junkPath, Lo as junkRoute, Kt as keepPreviousData, fr as listenManagedEntry, Ts as loadBatchDock, Os as loadGlowPicker, ps as loadImmerse, xs as loadManageHeader, As as loadRouter, ls as loadSettingsPanel, _s as loadSidebar, as as loadStage, bi as logoUrl, Ss as manageHeaderApi, Vr as manageHeaderSkeletonHtml, Rr as manageHeaderView, dr as managedEntry, Lt as matchMutation, It as matchQuery, Ni as mixFace, Ri as mixLabel, Yo as mountIsland, mi as nativeImageFit, de as nextSortState, D as noop, Pe as normalizeAppSettings, me as normalizeJavImage, b as normalizeJavLayout, pe as normalizeJavPreferences, Te as normalizeSidebarOrder, N as notifyManager, P as onlineManager, mr as openManagedRoute, Qr as pageCount, ei as paginationHtml, Ot as paintGlowButton, _t as paintHomeGlowNow, gt as paintPhotoSizeButton, _e as panelFrame, li as parseFallbacks, A as partialMatchKey, xr as peachHistory, Si as performerLabel, et as photoLayout, $e as photoSize, Le as postSearchHistoryLimit, Vi as posterPanel, fe as preferredDirection, qo as preloadIslands, I as queryClient, Li as queueAvatarHtml, Pi as queueThumbHtml, Fe as readAppSettings, Qi as refitNativeImages, $i as relayoutCovers, ye as relayoutJavImages, oa as releaseHover, aa as releaseHoverPreviews, hr as releaseManagedRoute, gi as rememberRepresentatives, Bt as replaceEqualDeep, _i as representativeOf, Dt as resetGlowColors, wr as routeSeen, Go as seekVideoBy, Yr as selectGroup, qr as selectRange, Jr as selectionSummary, U as setHoverState, us as settingsPanelApi, Yi as settleImage, Sr as shellNavigate, Zt as shouldThrowError, ns as showToast, vs as sidebarApi, Ee as sidebarHasCatalogContent, Pr as sidebarSkeletonHtml, De as sidebarTagCounts, Yt as skipToken, le as sortDirWord, os as stageApi, Cr as startRouting, it as storeHomeLayout, at as storeJavLayout, ct as storePhotoLayout, st as storePhotoSize, ot as storeVideoLayout, Tr as syncBoardRange, ve as syncJavImages, Xr as syncSelectionToolbar, E as timeoutManager, ht as toggleDensity, Wo as toggleVideoPlayback, Mr as transitionTheme, $o as unmountIsland, qn as unsetMarker, Xo as updateIsland, Ui as upgradeCover, Gr as watchJob, Ji as watchPendingImages, Ue as watchSystemTheme, kt as wireGlowButton, sa as wireHover, fi as wireImageFallbacks, vi as withVersion };
+export { wt as ACCENT_CHOICES, qe as COVER_FRONT_RATIO, F as CancelledError, Ne as DEFAULT_SETTINGS, xe as DEFAULT_SIDEBAR_ORDER, ai as FACE_CEILING, ri as FACE_TARGET, Me as FEED_COMPILATION_KEYS, Ae as FOLLOW_INITIAL_DAYS, Pn as InfiniteQueryObserver, We as JAV_LAYOUTS, ae as JAV_RELEASE_SORT, je as METADATA_REFRESH_DAYS, ii as MIN_FACE_PX, Fn as Mutation, Ln as MutationCache, zn as MutationObserver, Ke as PHOTO_LAYOUTS, Ge as PHOTO_SIZES, Vn as QueriesObserver, wn as Query, Hn as QueryCache, Un as QueryClient, On as QueryObserver, Oe as SETTINGS_KEY, ie as SORTS, ce as SORT_ALIASES, se as SORT_DIR_WORDS, oe as SORT_KEYS, ke as THEME_CHOICES, Re as THEME_OPTIONS, ut as TILES, pi as advanceImageFallback, S as allowedSetting, w as appSettingsStore, xt as applyAccent, mt as applyDensity, bt as applyGlassFaces, yt as applyHomeGlow, Ie as applySyncedSettings, Ve as applyTheme, H as avatarFrame, Ei as avatarInner, ks as batchDockApi, uo as boardPageSkeleton, Pi as cardArtwork, Ri as cardIdentity, Xe as cardLayoutFor, rt as cardRatio, mo as catalogEmptyHtml, vo as catalogFilterSkeletonHtml, po as catalogSuggestions, Et as chooseAccent, Tt as chooseGlowPreset, ti as clampPage, Lo as cleanupSkeletonHtml, Ko as clickPlayerControl, aa as configureHoverPreview, lr as connectManagedRoutes, Hi as coverAnchor, Wi as coverBackdrop, qi as coverFace, ji as coverImage, Ki as coverRatio, xi as coverUrl, dt as currentDensity, Kn as dataTagErrorSymbol, Gn as dataTagSymbol, fn as defaultScheduler, cn as defaultShouldDehydrateMutation, ln as defaultShouldDehydrateQuery, ue as defaultSortDir, un as dehydrate, sn as dehydrateQuery, Li as detailPosterUrl, lo as detailSkeletonHtml, Do as dropBars, Di as entityAvatar, Ti as entityFaceImg, da as entitySkeletonHtml, tn as environmentManager, Wn as experimental_streamedQuery, Ai as faceBoxAttrs, ci as faceFrame, Oi as faceOrigin, ki as facePos, hi as faceSourceScale, si as faceZoom, To as fetchBars, Eo as fetchTopsPage, $i as fitNativeImage, nn as focusManager, Jr as followJobProgress, Qi as frameCachedImages, Ct as glowChips, nt as gridLayout, oi as hasFaceBox, k as hashKey, Ye as homeLayout, dn as hydrate, fi as imageFallbackAttrs, _s as immerseApi, Or as initBoardControls, ra as installCardArt, gn as isCancelledError, Mt as isServer, ts as islandMounted, Zo as islandNames, Ni as javArtwork, he as javImageKind, Je as javLayout, Kr as jobActivityHtml, Go as junkCountSkeletonHtml, Vo as junkPath, Bo as junkRoute, Kt as keepPreviousData, fr as listenManagedEntry, Os as loadBatchDock, js as loadGlowPicker, gs as loadImmerse, ws as loadManageHeader, Ns as loadRouter, fs as loadSettingsPanel, bs as loadSidebar, cs as loadStage, Si as logoUrl, Ts as manageHeaderApi, Ur as manageHeaderSkeletonHtml, Br as manageHeaderView, dr as managedEntries, ur as managedEntry, Lt as matchMutation, It as matchQuery, Fi as mixFace, Bi as mixLabel, Qo as mountIsland, gi as nativeImageFit, de as nextSortState, D as noop, Pe as normalizeAppSettings, me as normalizeJavImage, b as normalizeJavLayout, pe as normalizeJavPreferences, Te as normalizeSidebarOrder, N as notifyManager, P as onlineManager, mr as openManagedRoute, ei as pageCount, ni as paginationHtml, Ot as paintGlowButton, _t as paintHomeGlowNow, gt as paintPhotoSizeButton, _e as panelFrame, di as parseFallbacks, A as partialMatchKey, Cr as peachHistory, wi as performerLabel, et as photoLayout, $e as photoSize, Le as postSearchHistoryLimit, Ui as posterPanel, fe as preferredDirection, Xo as preloadIslands, I as queryClient, zi as queueAvatarHtml, Ii as queueThumbHtml, Fe as readAppSettings, ea as refitNativeImages, ta as relayoutCovers, ye as relayoutJavImages, ca as releaseHover, sa as releaseHoverPreviews, _r as releaseManagedRoute, vi as rememberRepresentatives, Bt as replaceEqualDeep, yi as representativeOf, Dt as resetGlowColors, Er as routeSeen, Jo as seekVideoBy, Zr as selectGroup, Yr as selectRange, Xr as selectionSummary, la as setHoverState, ps as settingsPanelApi, Zi as settleImage, wr as shellNavigate, Zt as shouldThrowError, as as showToast, xs as sidebarApi, Ee as sidebarHasCatalogContent, Ir as sidebarSkeletonHtml, De as sidebarTagCounts, Yt as skipToken, le as sortDirWord, ls as stageApi, Tr as startRouting, it as storeHomeLayout, at as storeJavLayout, ct as storePhotoLayout, st as storePhotoSize, ot as storeVideoLayout, Dr as syncBoardRange, ve as syncJavImages, Qr as syncSelectionToolbar, E as timeoutManager, ht as toggleDensity, qo as toggleVideoPlayback, Pr as transitionTheme, ns as unmountIsland, qn as unsetMarker, $o as updateIsland, gr as updateManagedRoute, Gi as upgradeCover, qr as watchJob, Xi as watchPendingImages, Ue as watchSystemTheme, kt as wireGlowButton, ua as wireHover, mi as wireImageFallbacks, bi as withVersion };