Skip to content

armgit / peach

Public Imported from GitHub
0

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

refactor(web): 资料页名册与作品网格挂进 entity-body 岛

longmeidao95bb08696cf5
diff --git a/frontend/e2e/entity-filter.test.ts b/frontend/e2e/entity-filter.test.ts
index 87ad24852..ea2e89f4f 100644
--- a/frontend/e2e/entity-filter.test.ts
+++ b/frontend/e2e/entity-filter.test.ts
@@ -129,7 +129,7 @@ describe('实体页筛选浮层', () => {
release();
await page.locator('[data-entity-filter-glass] [data-entity-readout]', { hasText: '视频' }).waitFor({ timeout: 15_000 });
await settle(page);
- const live = await measure('#index [data-entity-card]', '#index [data-entity-filter-glass]', '#index .entitysection');
+ const live = await measure('#index [data-entity-card]', '#index [data-entity-filter-glass]', '#index [data-entity-body]');
for (const key of ['gap', 'left', 'width', 'height', 'grid'] as const) {
assert.ok(Math.abs(skeleton[key] - live[key]) <= 1,
`浮层的 ${key} 接管时跳了:骨架 ${skeleton[key]},接管后 ${live[key]}`);
@@ -284,7 +284,7 @@ describe('实体页筛选浮层', () => {
views: [...document.querySelectorAll('[data-media-view]')].map((node) => node.getAttribute('data-media-view')),
sorts: document.querySelectorAll('[data-entity-sort]').length,
tags: document.querySelectorAll('[data-entity-tag]').length,
- cards: document.querySelectorAll('#index .entitysection .igrid > *').length,
+ cards: document.querySelectorAll('#index [data-entity-body] [data-index-grid] > [data-index-cell]').length,
}));
assert.deepEqual(roster, { readout: '艺人 · 3', pressed: 'people', views: ['people', 'videos'], sorts: 0, tags: 0, cards: 3 });
await page.locator('[data-media-view="videos"]').click();
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 0ea175433..1a160e30b 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -37,6 +37,7 @@ export interface IslandContracts {
'cover-crop': ReactBundle.CoverCropProps;
'data-cleanup': ReactBundle.DataCleanupProps;
duplicates: ReactBundle.DuplicatesProps;
+ 'entity-body': ReactBundle.EntityBodyProps;
'entity-filter': ReactBundle.EntityFilterProps;
'entity-hero': ReactBundle.EntityHeroProps;
'follow-manage': ReactBundle.FollowManageProps;
@@ -68,6 +69,7 @@ const REGISTRY: { [N in IslandName]: Island } = {
'cover-crop': { react: 'cover-crop' },
'data-cleanup': { react: 'data-cleanup' },
duplicates: { react: 'duplicates' },
+ 'entity-body': { react: 'entity-body' },
'entity-filter': { react: 'entity-filter' },
'entity-hero': { react: 'entity-hero' },
'follow-manage': { react: 'follow-manage' },
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 1d83fb2e1..45d35f0f1 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -9,12 +9,14 @@ import type { CatalogGridProps } from './catalog-grid/types';
import type { JunkQueueProps } from './junk-queue/junk-queue';
import type { EntityHeroProps } from './entity-hero/entity-hero';
import type { EntityFilterProps } from './entity-filter/entity-filter';
+import type { EntityBodyProps } from './entity-body/entity-body';
export type { IndexProps };
export type { CatalogGridProps };
export type { JunkQueueProps };
export type { EntityHeroProps };
export type { EntityFilterProps };
+export type { EntityBodyProps };
export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }
@@ -386,6 +388,7 @@ export interface ReactPages {
'cover-crop': ReactPage<CoverCropProps>;
'data-cleanup': ReactPage<DataCleanupProps>;
duplicates: ReactPage<DuplicatesProps>;
+ 'entity-body': ReactPage<EntityBodyProps>;
'entity-filter': ReactPage<EntityFilterProps>;
'entity-hero': ReactPage<EntityHeroProps>;
'follow-manage': ReactPage<FollowManageProps>;
diff --git a/frontend/src/react/catalog-grid/catalog-grid-page.tsx b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
index c7a033185..4e9d2bfa3 100644
--- a/frontend/src/react/catalog-grid/catalog-grid-page.tsx
+++ b/frontend/src/react/catalog-grid/catalog-grid-page.tsx
@@ -59,11 +59,16 @@ function GridBody(props: CatalogGridProps) {
const entity = props.mode === 'entity';
const trash = !entity && props.filters?.state === 'trash';
const query = entity ? entityQuery(props) : catalogQuery(props);
+ /* 资料页的第一页由壳和页头一起取来:同步落进这一代的缓存,首帧就是卡片,不再发一遍。 */
+ const initialData = entity && props.initial
+ ? { pages: [{ ...props.initial, items: props.initial.items || [], offset: 0 }], pageParams: [0] }
+ : undefined;
const result = useInfiniteQuery<GridPage, Error, InfiniteData<GridPage, number>, QueryKey, number>({
queryKey: query.queryKey,
queryFn: ({ pageParam, signal }) => query.queryFn({ pageParam, signal }),
initialPageParam: 0,
getNextPageParam: query.getNextPageParam,
+ initialData,
});
/* 一次取数落定就告诉壳一次,成功、为空、失败都算:壳里 `await` 这次重读的调用方据此放行。 */
diff --git a/frontend/src/react/catalog-grid/catalog-grid.ts b/frontend/src/react/catalog-grid/catalog-grid.ts
index 409db7d4e..fb0cbe617 100644
--- a/frontend/src/react/catalog-grid/catalog-grid.ts
+++ b/frontend/src/react/catalog-grid/catalog-grid.ts
@@ -9,7 +9,7 @@
* - 目录每一页可见的卡够 8 张时,第 8 位插一张 Mix;种子从 Mix 位再往下隔一屏开始找,
* 不会和同屏的卡撞图。
* - 竖屏带每接一页出现一条,落点在这一页新增的那几行之间的行边界上随机取一个。 */
-import type { InfiniteData, QueryKey } from '@tanstack/react-query';
+import type { QueryKey } from '@tanstack/react-query';
import { apiGet } from '../../api';
import { javImageKind } from '../../jav-artwork';
@@ -98,22 +98,10 @@ export function entityQuery(props: CatalogGridProps) {
};
}
-/** 首屏取数。资料页的第一页由壳和页头一起并行取来,直接写进缓存。 */
+/** 首屏取数。只有目录要等:资料页的作品区挂在 `entity-body` 岛里,第一页由壳递进来,
+ * 网格挂上时自己落进缓存(`initialData`)。 */
export async function prefetchCatalogGrid(props: CatalogGridProps, signal: AbortSignal): Promise<void> {
- if (props.mode === 'items') return;
- if (props.mode === 'entity') {
- const query = entityQuery(props);
- if (props.initial) {
- queryClient.setQueryData<InfiniteData<GridPage, number>>(query.queryKey, {
- pages: [{ ...props.initial, items: props.initial.items || [], offset: 0 }], pageParams: [0],
- });
- return;
- }
- await queryClient.fetchInfiniteQuery({
- ...query, queryFn: ({ pageParam }) => query.queryFn({ pageParam: pageParam as number, signal }),
- });
- return;
- }
+ if (props.mode !== 'catalog') return;
const query = catalogQuery(props);
await queryClient.fetchInfiniteQuery({
...query, queryFn: ({ pageParam }) => query.queryFn({ pageParam: pageParam as number, signal }),
diff --git a/frontend/src/react/entity-body/entity-body-page.tsx b/frontend/src/react/entity-body/entity-body-page.tsx
new file mode 100644
index 000000000..59b91bcc6
--- /dev/null
+++ b/frontend/src/react/entity-body/entity-body-page.tsx
@@ -0,0 +1,43 @@
+/* 实体资料页的正文(`entity-body` island):名册、作品网格与照片墙三个视图里的一个。
+ *
+ * 数据全由壳取好推进来,这里只挑出当前视图画。作品网格按 `revision` 换键:壳每发起一次新的
+ * 作品请求,这一格先铺骨架(`items` 为 `null`),列表回来后骨架淡出、卡片从模糊里清晰起来,
+ * 同目录那一格。骨架还没到显示门槛就回来的,直接落内容。 */
+import { useMemo } from 'react';
+
+import { CatalogGridPage } from '../catalog-grid/catalog-grid-page';
+import { useSkeletonReveal } from '../components/grid-reveal';
+import { PeopleGrid } from '../index/index-people';
+import type { EntityBodyProps, EntityRoster } from './entity-body';
+
+export function EntityBodyPage(props: EntityBodyProps) {
+ if (props.view === 'people' && props.roster) return <Roster roster={props.roster} props={props} />;
+ if (props.view === 'videos') return <VideoSection key={props.revision} {...props} />;
+ return null;
+}
+
+/** 名册一格点开进这个人(或这个厂牌)的资料页,取图同索引页那条回落链。 */
+function Roster({ roster, props }: { roster: EntityRoster; props: EntityBodyProps }) {
+ const { helpers, actions } = props;
+ const cell = useMemo(() => ({ personAvatar: helpers.personAvatar, openEntity: actions.openEntity }),
+ [helpers, actions]);
+ return <PeopleGrid kind={roster.kind} items={roster.people} layout={roster.layout} props={cell} />;
+}
+
+/** 作品区:外面这一层只管「壳还在取」时的骨架,列表到了就是卡片网格的 entity 模式,
+ * 第一页由壳给、续页经 `fetchPage` 取。`[data-entity-grid]` 是壳按 Shift 连选排卡片时认的那一格。 */
+function VideoSection(props: EntityBodyProps) {
+ const reveal = useSkeletonReveal(!props.items, props.skeletonHtml);
+ return (
+ <div data-entity-grid="" data-grid-reveal={reveal.fading ? '' : undefined}>
+ {reveal.layer}
+ {props.items ? (
+ <CatalogGridPage mode="entity" entityKey={`${props.kind}:${props.name}`} revision={props.revision}
+ initial={props.items} fetchPage={props.fetchPage} helpers={props.helpers} actions={props.actions}
+ layout={props.layout} selectMode={props.selectMode} selected={props.selected}
+ seekSeconds={props.seekSeconds} cache={props.cache} wireDrag={props.wireDrag}
+ skeletonHtml={props.skeletonHtml} groupCollapse={props.groupCollapse} canLoadMore={props.canLoadMore} />
+ ) : null}
+ </div>
+ );
+}
diff --git a/frontend/src/react/entity-body/entity-body.ts b/frontend/src/react/entity-body/entity-body.ts
new file mode 100644
index 000000000..a12bda1c1
--- /dev/null
+++ b/frontend/src/react/entity-body/entity-body.ts
@@ -0,0 +1,51 @@
+/* 实体资料页的正文(ADR-0031 第 10e 步):筛选浮层下面那一整块的数据形状。
+ *
+ * 这一块在三个视图之间切换:名册(事务所旗下艺人、片商旗下厂牌)、作品网格和照片墙。
+ * 壳(`web/app.js` 的 `openEntity` 一族)拥有取数、路由和视图状态,岛只画:换视图、换筛选、
+ * 换排序都由壳取好再用 `updateIsland` 推一份新的,不重挂。点下去的动作全部回壳。
+ *
+ * 作品网格就是馆藏卡片网格(`catalog-grid`)的 entity 模式,岛里直接渲染那个组件,卡片的
+ * 助手、动作、版式与选择状态原样递进去;名册摆的是索引页那一格(`PeopleGrid`)。 */
+import type { CatalogGridProps, MediaCardActions, MediaCardHelpers, MediaPage } from '../catalog-grid/types';
+import type { IndexPerson, PeopleLayout, PersonAvatar } from '../index/index-data';
+
+/** 这一页此刻摆的是哪一类东西,与筛选浮层那一组视图键同一套词。 */
+export type EntityBodyView = 'people' | 'videos' | 'photos';
+
+/** 名册:随资料一起下来的那一批。`kind` 按索引页的词表给:事务所页是 `performers`,
+ * 片商页是 `studios`;版式读的是索引页同一个设置值。 */
+export interface EntityRoster {
+ kind: 'performers' | 'studios';
+ people: IndexPerson[];
+ layout: PeopleLayout;
+}
+
+/** 卡片那几段遗留层 HTML,外加名册一格的取图(遗留层 `personRingHtml` 那条回落链)。 */
+export interface EntityBodyHelpers extends MediaCardHelpers {
+ personAvatar(item: IndexPerson, entityKind: string, big: boolean): PersonAvatar;
+}
+
+/** 卡片上的动作。名册一格点开走的是其中的 `openEntity`。 */
+export type EntityBodyActions = MediaCardActions;
+
+/** 从卡片网格原样递进去的那几样:版式、选择状态、缓存与骨架都是壳里同一份。 */
+type SharedGridProps = Pick<CatalogGridProps,
+ 'layout' | 'selectMode' | 'selected' | 'seekSeconds' | 'cache' | 'wireDrag' | 'skeletonHtml'
+ | 'groupCollapse' | 'canLoadMore'>;
+
+export interface EntityBodyProps extends SharedGridProps {
+ kind: string;
+ name: string;
+ view: EntityBodyView;
+ /** 只有事务所与片商页有;别的页面、或这一批是空的时候是 `null`。 */
+ roster: EntityRoster | null;
+ /** 作品视图的第一页。`null` 是壳正在取(换了筛选、排序或观看状态):这一格铺骨架等它,
+ * 不把跟头上筛选对不上的旧卡片留在屏幕上。 */
+ items: MediaPage | null;
+ /** 作品列表的代次。壳每发起一次新的作品请求就加一,网格按它换键,骨架与续页都从头开始。 */
+ revision: number;
+ /** 续页。筛选与排序由壳在闭包里带着,和第一页同一套口径。 */
+ fetchPage(offset: number, signal: AbortSignal): Promise<MediaPage>;
+ helpers: EntityBodyHelpers;
+ actions: EntityBodyActions;
+}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 35261e40b..f8a99516e 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -18,6 +18,7 @@ import { prefetchDataCleanup } from './data-cleanup/data-cleanup';
import { DataCleanupPage } from './data-cleanup/data-cleanup-page';
import { prefetchDuplicates } from './duplicates/duplicates';
import { DuplicatesPage } from './duplicates/duplicates-page';
+import { EntityBodyPage } from './entity-body/entity-body-page';
import { EntityFilterPage } from './entity-filter/entity-filter-page';
import { EntityHeroPage } from './entity-hero/entity-hero-page';
import { prefetchFollowManage } from './follow-manage/follow-manage';
@@ -116,6 +117,8 @@ export const pages: Bundle.ReactPages = {
'entity-hero': { prefetch: async () => {}, mount: mounter(EntityHeroPage) },
/* 筛选、读数与排序项都由壳算好递进来,挂上就是最终样子。 */
'entity-filter': { prefetch: async () => {}, mount: mounter(EntityFilterPage) },
+ /* 名册随资料下来,作品第一页与照片由壳和页头并行取好递进来,挂上就是最终样子。 */
+ 'entity-body': { prefetch: async () => {}, mount: mounter(EntityBodyPage) },
/* 首屏只取来源清单与凭据状态,地址栏指着「订阅源」时连它一起取。检查更新与查找那两趟
后台任务的快照不在首屏里:它们常年躺着上一趟的回执,等它们只会让首屏多一个往返。 */
'follow-manage': {
diff --git a/frontend/src/react/index/index-people.tsx b/frontend/src/react/index/index-people.tsx
index b9b0a19de..1f2a27be8 100644
--- a/frontend/src/react/index/index-people.tsx
+++ b/frontend/src/react/index/index-people.tsx
@@ -48,10 +48,13 @@ function Cell(
);
}
-/** 本地名册。 */
+/** 本地名册。资料页的名册(事务所旗下艺人、片商旗下厂牌)摆的也是这一格,只借取图与去处两样。 */
export function PeopleGrid(
{ kind, items, layout, props }:
- { kind: Exclude<IndexKind, 'tags'>; items: IndexPerson[]; layout: PeopleLayout; props: IndexProps },
+ {
+ kind: Exclude<IndexKind, 'tags'>; items: IndexPerson[]; layout: PeopleLayout;
+ props: Pick<IndexProps, 'personAvatar' | 'openEntity'>;
+ },
) {
const entityKind = ENTITY_KINDS[kind];
const company = isCompany(kind);
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 45da0fb71..6c102660c 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -40,7 +40,8 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'catalog-grid', 'cover-crop', 'data-cleanup', 'duplicates', 'entity-filter', 'entity-hero', 'follow-manage', 'index', 'junk-queue', 'library-processing', 'playlists',
+ 'catalog-grid', 'cover-crop', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-manage', 'index', 'junk-queue',
+ 'library-processing', 'playlists',
'scraping', 'quality-goals', 'review', 'configuration', 'configuration-summary', 'activity', 'stats', 'taste']);
});
diff --git a/frontend/test/react/entity-body.test.tsx b/frontend/test/react/entity-body.test.tsx
new file mode 100644
index 000000000..a6638a5b2
--- /dev/null
+++ b/frontend/test/react/entity-body.test.tsx
@@ -0,0 +1,122 @@
+/* 实体页正文岛:三个视图里各画什么、点下去交给壳的是什么,以及换筛选时骨架与卡片的交接。
+ *
+ * 名册与卡片本身各有自己的用例(`index-page.test.tsx`、`catalog-grid.test.tsx`),这里只看正文
+ * 这一层把谁接到了哪儿。骨架淡出的几何、续页与 Shift 连选由 e2e 在真浏览器里量。 */
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { act, useState } from 'react';
+import { afterEach, describe, expect, it, vi } from 'vitest';
+
+import type { EntityBodyActions, EntityBodyHelpers, EntityBodyProps } from '../../src/react/entity-body/entity-body';
+import { EntityBodyPage } from '../../src/react/entity-body/entity-body-page';
+import type { MediaItem, MediaPage } from '../../src/react/catalog-grid/types';
+import { queryClient } from '../../src/react/query';
+import { click, mount } from './render';
+
+afterEach(() => { queryClient.clear() });
+notifyManager.setScheduler((notify) => notify());
+
+const item = (id: number): MediaItem => ({ id, name: `作品 ${id}`, has_thumb: true });
+const page = (ids: number[], total = ids.length): MediaPage => ({ items: ids.map(item), total });
+
+function helpers(): EntityBodyHelpers {
+ return {
+ coverHtml: () => '', relayoutArt: vi.fn(), badgeHtml: () => '', titleHtml: (_it, raw) => raw, displayName: (_it, raw) => raw,
+ avatarHtml: (name) => name.slice(0, 1), tagLabel: (tag) => tag, wireHover: vi.fn(), releaseHover: vi.fn(),
+ personAvatar: vi.fn(() => ({ html: '<span class="ini">A</span>', face: '' })),
+ };
+}
+
+function actions(): EntityBodyActions {
+ return {
+ open: vi.fn(), openResource: vi.fn(), openShort: vi.fn(), openShorts: vi.fn(), openMix: vi.fn(),
+ openEntity: vi.fn(), openUnowned: vi.fn(), toggleTag: vi.fn(), toggleSelection: vi.fn(),
+ watchLater: vi.fn(async () => {}), resourceOperation: vi.fn(async () => {}), mixRelated: vi.fn(async () => []),
+ canFlip: () => true,
+ };
+}
+
+function props(patch: Partial<EntityBodyProps> = {}): EntityBodyProps {
+ return {
+ kind: 'performer', name: '篠田ゆう', view: 'videos', roster: null, items: page([1, 2, 3]), revision: 1,
+ fetchPage: vi.fn(async () => page([])), helpers: helpers(), actions: actions(),
+ layout: { active: false, size: 'small', portrait: false, javImage: 'cover' },
+ selectMode: false, selected: new Set(), seekSeconds: 10, cache: vi.fn(), wireDrag: vi.fn(),
+ skeletonHtml: () => '<div data-test-skeleton>骨架</div>', groupCollapse: true, canLoadMore: () => false,
+ ...patch,
+ };
+}
+
+let push: (patch: Partial<EntityBodyProps>) => void = () => {};
+/** 壳经 `updateIsland` 推进来的补丁,这里用一层状态代替。 */
+function Shell(given: EntityBodyProps) {
+ const [current, set] = useState(given);
+ push = (patch) => set((value) => ({ ...value, ...patch }));
+ return <EntityBodyPage {...current} />;
+}
+const open = (given: EntityBodyProps) =>
+ mount(<QueryClientProvider client={queryClient}><Shell {...given} /></QueryClientProvider>);
+
+const cards = (host: HTMLElement) =>
+ [...host.querySelectorAll<HTMLElement>('[data-entity-grid] [data-media-grid] > [data-media-card]')]
+ .map((card) => card.dataset.id);
+
+describe('名册', () => {
+ it('事务所页摆索引页那一格艺人,竖幅按检出的脸取景,点一格回壳打开这个人', async () => {
+ const given = props({
+ kind: 'agency', view: 'people',
+ roster: { kind: 'performers', people: [{ k: '河北彩花', n: 12 }, { k: '小湊よつ葉', n: 3 }], layout: 'big' },
+ helpers: { ...helpers(), personAvatar: vi.fn(() => ({ html: '<img src="/entity-image?id=1" alt="">', face: '40% 20%' })) },
+ });
+ const host = await open(given);
+ const grid = host.querySelector<HTMLElement>('[data-index-grid]');
+ expect(grid?.dataset.cells).toBe('people');
+ expect(grid?.dataset.layout).toBe('big');
+ const ring = host.querySelector<HTMLElement>('[data-person-ring]');
+ expect(ring?.dataset.fitNative).toBe('portrait');
+ expect(ring?.style.getPropertyValue('--face')).toBe('40% 20%');
+ expect([...host.querySelectorAll('[data-index-cell]')].map((cell) => cell.querySelector('[data-index-readout]')?.textContent))
+ .toEqual(['12', '3']);
+ await click(host.querySelector('[data-index-cell][data-k="小湊よつ葉"]'));
+ expect(given.actions.openEntity).toHaveBeenCalledWith('performer', '小湊よつ葉');
+ expect(host.querySelector('[data-entity-grid]')).toBeNull();
+ });
+
+ it('片商页的名册是旗下厂牌,一格是公司的方标', async () => {
+ const given = props({
+ kind: 'studio', view: 'people', roster: { kind: 'studios', people: [{ k: 'S1 NO.1 STYLE', n: 40 }], layout: 'compact' },
+ });
+ const host = await open(given);
+ expect(host.querySelector<HTMLElement>('[data-index-grid]')?.dataset.cells).toBe('company');
+ expect(host.querySelector<HTMLElement>('[data-person-ring]')?.dataset.fitNative).toBe('mark');
+ expect(given.helpers.personAvatar).toHaveBeenCalledWith(expect.objectContaining({ k: 'S1 NO.1 STYLE' }), 'studio', false);
+ await click(host.querySelector('[data-index-cell]'));
+ expect(given.actions.openEntity).toHaveBeenCalledWith('studio', 'S1 NO.1 STYLE');
+ });
+});
+
+describe('作品网格', () => {
+ it('第一页由壳给,挂上就是卡片,不再取一遍', async () => {
+ const given = props();
+ const host = await open(given);
+ expect(cards(host)).toEqual(['1', '2', '3']);
+ expect(host.querySelector('[data-test-skeleton]')).toBeNull();
+ expect(given.fetchPage).not.toHaveBeenCalled();
+ });
+
+ it('壳说正在取(items 为 null)就换成骨架,新列表推进来后换成新卡片', async () => {
+ const host = await open(props());
+ await act(async () => push({ items: null, revision: 2 }));
+ expect(cards(host)).toEqual([]);
+ expect(host.querySelector('[data-entity-grid] [data-test-skeleton]')).not.toBeNull();
+ await act(async () => push({ items: page([7, 8]), revision: 2 }));
+ expect(cards(host)).toEqual(['7', '8']);
+ });
+
+ it('选择状态与版式原样转给卡片', async () => {
+ const host = await open(props());
+ await act(async () => push({ selectMode: true, selected: new Set([2]) }));
+ expect(host.querySelector('[data-media-sections]')?.hasAttribute('data-select-mode')).toBe(true);
+ expect([...host.querySelectorAll<HTMLElement>('[data-media-card][data-selected]')].map((card) => card.dataset.id))
+ .toEqual(['2']);
+ });
+});
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index 6bead9adf..ed4ff5224 100644
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@ -53,7 +53,7 @@ BASELINE: dict[str, int] = {
"test_web_e2e.py": 2,
"test_web_js.py": 1,
"test_web_settings.py": 8,
- "test_web_ui.py": 3891,
+ "test_web_ui.py": 3881,
"test_windows_update.py": 3,
}
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 90e21eb95..c644874ae 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -6423,16 +6423,15 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(
"let entityRosterView='people',entityRoster=[],entityRosterKind='performer';")
self.assertCode(" entityJavLayout=false;\n entityRosterView='people';")
- self.assertCode("if(entityViewNow(kind)==='people')renderEntityRoster(roster);")
+ # 进页落在名册、切到视频再切回来,由 e2e `entity-filter.test.ts` 在真浏览器里走。
def test_the_agency_roster_reuses_the_people_index_cell_and_layout(self):
- """名册和艺人索引摆的是同一格人,模板与版式设置都只有一份。"""
- self.assertPageContains("function personCellHtml(x,kind,countText){")
+ """名册和艺人索引摆的是同一格人,取图链只有一份。
+
+ 格子本身是 `entity-body` 岛里的 `PeopleGrid`(与索引页同一个组件),点一格去哪儿
+ 由 `frontend/test/react/entity-body.test.tsx` 钉住。"""
# 索引页那批行的实体 id 叫 entity_id,名册那批叫 id,取图链只认一个。
self.assertPageContains("const ref=x.entity_id||x.id;")
- self.assertCode(
- '<div class="igrid" data-cells="${cells}" data-layout="${peopleIndexLayout()}">${\n'
- " people.map(x=>personCellHtml(x,cellKind,x.n.toLocaleString())).join('')}</div>")
# 名册占的是正文那一整块,所以这批人不再挤进「同台艺人」那排小圆头像(资料卡岛
# 在事务所页不画卡底,见 entity-hero.test.tsx);片商页的名册是旗下 label,同台
# 艺人照旧留在卡底。
@@ -6446,10 +6445,9 @@ class WebUiSourceTests(unittest.TestCase):
def test_a_company_cell_is_square_because_it_holds_a_mark_not_a_face(self):
"""3:4 是给脸留的形状,方标铺进去左右各被 `object-fit:cover` 裁掉四分之一。
- 这里是资料页名册那一格;索引页的方格在 React 里(`index/index-people.tsx`)。
+ 这里是壳铺的那张头像格骨架;真格子在 React 里(`index/index-people.tsx`,索引页与
+ 资料页名册共用),片商名册摆成公司格由 `entity-body.test.tsx` 钉住。
"""
- self.assertCode("const cells=cellKind==='studio'?'company':'people';")
- self.assertPageContains('<div class="igrid" data-cells="${cells}" data-layout="${')
self.assertPageContains(
'.igrid[data-cells="company"][data-layout="big"] .icell .ring{aspect-ratio:1}')
# 省下的高度换成宽度:同一屏里公司格比人格宽一档。
@@ -6537,22 +6535,20 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(ring.dataset.nativeSmall==='true')return;")
self.assertPageContains(
"box.style.setProperty('--markbg',small?`url(\"${src}\")`:'none');")
- # 用到它的容器自己声明意图,JS 只负责量。资料卡大位那一处在 entity-hero island 里,
- # 同一个属性、同一组变量,摆法写在 `entity-hero.css`。
- self.assertPageContains("data-fit-native=\"${company?'mark':'portrait'}\"")
- # 两处容器各自写着 width:100% 和 object-fit:cover,选择器压不过它们就白改。
+ # 用到它的容器自己声明意图,JS 只负责量。名册那一格(`index-people.tsx`)与资料卡
+ # 大位(entity-hero island)都在 React 里,同一个属性、同一组变量。
+ # 名册格写着 width:100% 和 object-fit:cover,选择器压不过它就白改。
# 尺寸不写 auto:还没度量过的图按 auto 是 0×0,`loading="lazy"` 见到 0×0 就
# 认定它不在视口里、永远不去取,图不来就没有 load,两边互相等着。缺省铺满。
self.assertCode(
- '.icell .ring[data-native-small="true"] img,\n'
+ '[data-person-ring][data-fit-native="mark"] img,\n'
'[data-person-ring][data-native-small="true"] img{\n'
" width:var(--markw,100%);height:var(--markh,100%);margin:auto;object-fit:contain;\n"
" max-width:100%;max-height:100%;z-index:1}")
self.assertPageContains('[data-fit-native]::before{content:"";position:absolute;'
'inset:-14%;z-index:0;')
# 图不再铺满框,首字母垫底会从旁边露出来。
- self.assertPageContains(".icell .ring[data-fit-native]:has(img) .ini,"
- "[data-person-ring][data-fit-native]:has(img) .ini{display:none}")
+ self.assertPageContains("[data-person-ring][data-fit-native]:has(img) .ini{display:none}")
def test_the_company_index_layout_control_says_what_it_shows(self):
"""厂牌那一格摆的是方形标识,提示不能照艺人页写「竖幅头像」。"""
@@ -6924,8 +6920,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(
"scrollTo({top:0,behavior:matchMedia('(prefers-reduced-motion: reduce)').matches?'auto':'smooth'});")
self.assertIn("html.refiltering{overflow-anchor:none}", stylesheet_source())
- # 目录那边的骨架由 loadCatalog() 铺;资料页的集合自己铺一份同样的。
- self.assertCode(" if(host){releaseEntityGrid();host.innerHTML=catalogSkeletonHtml();fitSkeleton(section)}")
+ # 目录那边的骨架由 loadCatalog() 铺;资料页那一格换成骨架等新列表由
+ # `frontend/test/react/entity-body.test.tsx` 钉住。
def test_adding_a_filter_only_changes_the_list_underneath(self):
"""点一条筛选,动的只有底下那份名单;上面那几排原地改按下态。
@@ -10832,15 +10828,10 @@ class WebUiSourceTests(unittest.TestCase):
def test_the_big_people_layout_frames_the_detected_face(self):
# 3:4 竖幅按几何居中会把脸切掉。换算只有 faceOrigin 一份:资料页写进 img 的
- # style,索引页交给圆框上的 --face——那里的 img 是八处共用的 avatarInner 拼的。
+ # style,名册那一格(React `PeopleGrid`)交给圆框上的 --face,由 `entity-body.test.tsx` 钉住。
self.assertPageContains("function faceOrigin(f){")
self.assertCode(" const origin=faceOrigin(f);\n"
" return origin?` style=\"object-position:${origin}\"`:'';")
- self.assertPageContains("const face=faceOrigin(x.avatar_focus);")
- self.assertPageContains(
- '<span class="ring" data-fit-native="${company?\'mark\':\'portrait\'}"'
- '${face?` style="--face:${face}"`:\'\'}>')
- self.assertPageContains("object-position:var(--face,50% 50%)}")
def test_photo_lightbox_loads_swiper_lazily_with_thumbs_and_keyboard(self):
self.assertPageContains("'/vendor/swiper/14.2.0/swiper-bundle.min.js'")
diff --git a/web/app.js b/web/app.js
index 2962a4be1..e0c87f942 100644
--- a/web/app.js
+++ b/web/app.js
@@ -6207,15 +6207,8 @@ function personRingHtml(x,kind,big){
x.has_avatar&&!company?x.rep:null,kind,x.mark,x.has_logo?x.k:'',
company&&big?'large':'ring',company?null:x.avatar_focus,true);
}
-/* 资料页名册的一格:事务所页是艺人,片商页是旗下 label,版式由同一个 `.igrid[data-layout]` 管。 */
-function personCellHtml(x,kind,countText){
- const face=faceOrigin(x.avatar_focus);
- const company=kind==='studio'||kind==='agency';
- return `<button class="icell" data-k="${esc(x.k)}" data-kind="${kind}">
- <span class="ring" data-fit-native="${company?'mark':'portrait'}"${face?` style="--face:${face}"`:''}>${
- personRingHtml(x,kind,peopleIndexLayout()==='big')}</span>
- <span class="nm">${esc(x.k)}</span><span class="n">${countText}</span></button>`;
-}
+/* 两座岛(索引页、资料页正文的名册)要的那一格头像:圆框里的 HTML 和人脸取景。 */
+const personAvatar=(x,entityKind,big)=>({html:personRingHtml(x,entityKind,big),face:faceOrigin(x.avatar_focus)});
/* 在线创作者这一格跟本地艺人同形,差别只在圆里那张图从哪儿来:本地走 `/entity-image`
那条自家链,在线只有来源站点给的地址,官方主页优先、归档兜底,两条都取不到就落回
首字母——跟关注页的创作者行同一套判据。 */
@@ -6273,7 +6266,7 @@ function indexPlaceholderHtml({kind,q,scope,view}){
/* 屏幕上已经是同一张骨架就别重画:深链冷启动时首屏骨架先铺过一遍,innerHTML 换新节点会把
shimmer 从头放一遍。 */
function showIndexSkeleton(params){
- releaseEntityGrid();
+ releaseEntityBody();
$('#stats').hidden=true;$('#index').hidden=false;clearCatalogGrid();$('#combo').innerHTML='';
$('#count').textContent='';$('#loadSentinel').hidden=true;
const placeholder=indexPlaceholderHtml(params);
@@ -6319,8 +6312,7 @@ async function openIndex(kind,push=true){
route:(next,{replace=false}={})=>route(indexPath(next),replace),
savePreference:({layout})=>{appSettings.peopleLayout=layout;saveSettings()},
exitSelectMode:()=>setSelectMode(false,false),
- personAvatar:(x,entityKind,big)=>({html:personRingHtml(x,entityKind,big),face:faceOrigin(x.avatar_focus)}),
- authorAvatar:onlineAuthorRingHtml,refitImages:refitNativeImages,tagLabel,
+ personAvatar,authorAvatar:onlineAuthorRingHtml,refitImages:refitNativeImages,tagLabel,
openEntity:(entityKind,name)=>openEntity(entityKind,name),
showTags:showIndexTags,openFollowAuthor:openFollowAuthorFromIndex,openFollowTag:openFollowTagFromIndex,
configurable:!!runtimeConfigurable,
@@ -6344,14 +6336,32 @@ async function fetchEntityItems(kind,name,filters,offset=0,signal){
if(state.jav==='1')p.set('jav','1');
const items=await api('/api/items?'+p,{signal});cache(items.items);return items
}
-/* 资料页作品区的卡片网格是 `catalog-grid` island 的 entity 模式(ADR-0031):第一页随页头
- 一起取来交给它,续页、分卷/版次折叠和「载入更多」都在岛里。每画一次换一个代次,查询随之
- 换键。宿主 `[data-entity-grid]` 在作品区里,作品区整块重写之前必须先卸掉它,否则那棵根
- 挂在脱离文档的节点上一直活着。 */
-let entityGridRevision=0;
-function releaseEntityGrid(){
- $('#index').querySelectorAll('[data-entity-grid]').forEach(host=>{releaseHoverPreviews(host);unmountIsland(host)});
-}
+/* 筛选浮层下面那一整块正文归 React(`entity-body`,ADR-0031 第 10e 步):名册、作品网格
+ (`catalog-grid` 的 entity 模式,续页、分卷/版次折叠和「载入更多」都在岛里)三选一。壳取数、
+ 岛只画:换视图、换筛选都经 `pushEntityBody` 推过去,不重挂。作品每请求一次换一个代次,网格
+ 随之换键;等的那一下先推 `items:null`,岛里铺骨架。宿主 `[data-entity-body]` 记在这里:
+ `#index` 整块重写之前必须先卸掉它,否则那棵根挂在脱离文档的节点上一直活着。 */
+let entityBodyHost=null,entityBodyRevision=0,entityBodyView='';
+const entityBodyCurrent=()=>!!entityBodyHost?.isConnected&&islandMounted(entityBodyHost);
+function pushEntityBody(patch){
+ if(!entityBodyCurrent())return;
+ if(patch.view)entityBodyView=patch.view;
+ updateIsland(entityBodyHost,patch);
+}
+function releaseEntityBody(){
+ if(!entityBodyHost)return;
+ releaseHoverPreviews(entityBodyHost);unmountIsland(entityBodyHost);entityBodyView='';
+}
+/* 名册一格的取图同索引页;卡片的助手与动作就是目录那一份,身份不变。 */
+const entityBodyHelpers={...gridHelpers,personAvatar};
+const entityBodyCanLoadMore=()=>!$('#index').hidden&&$('#stats').hidden;
+const entityBodySkeleton=()=>catalogSkeletonHtml();
+/* 卡片网格原样要的那几样:版式、选择状态与展示设置随每次推送带上最新值。 */
+const entityGridShared=()=>({layout:catalogGridLayout(),selectMode,selected:new Set(selected),
+ seekSeconds:appSettings.seekSeconds,groupCollapse:appSettings.groupCollapse});
+const entityRosterProps=()=>entityRoster.length
+ ?{kind:entityRosterKind==='studio'?'studios':'performers',people:entityRoster,layout:peopleIndexLayout()}:null;
+const entityItemsFetcher=(kind,name,filters)=>(offset,signal)=>fetchEntityItems(kind,name,filters,offset,signal);
/* 资料卡下面那一整块(交集条、两排玻璃浮层)归 React(`entity-filter`,ADR-0031 第 10d 步)。
壳取数、岛只画:这一页的筛选、当前视图、排序与读数都经 `pushEntityFilter` 推过去,点下去的
动作回壳。按下态在发请求之前就推,`aria-pressed` 与滑动玻璃当场到位,读数换成微光等这一趟。
@@ -6409,39 +6419,26 @@ function entityFilterHelpers(kind,name,initial){
/* 名册:事务所页是艺人,片商页是旗下 label。和对应的索引页摆的是同一格、同一套版式
设置,只是这批随资料页一起下来了,不再单独请求;读数写的是这一格有多少视频。 */
function renderEntityRoster(people){
- const section=$('#index').querySelector('.entitysection');if(!section)return;
- releaseEntityGrid();
- const cellKind=entityRosterKind;
- const cells=cellKind==='studio'?'company':'people';
- section.innerHTML=`<div class="igrid" data-cells="${cells}" data-layout="${peopleIndexLayout()}">${
- people.map(x=>personCellHtml(x,cellKind,x.n.toLocaleString())).join('')}</div>`;
- section.querySelectorAll('[data-k]').forEach(button=>button.onclick=()=>
- openEntity(cellKind,button.dataset.k));
+ releaseHoverPreviews(entityBodyHost);clearEntityPhotos();
+ pushEntityBody({view:'people'});
pushEntityFilter({view:'people',busy:false,
- readout:(cellKind==='studio'?'厂牌':'艺人')+' · '+people.length.toLocaleString()});
+ readout:(entityRosterKind==='studio'?'厂牌':'艺人')+' · '+people.length.toLocaleString()});
scheduleStickySurfaces();
}
-function renderEntityCollection(kind,name,items,filters){
- // 资料页的标签同样可以叠加,读数把生效的几个都写出来。
+/* 作品视图那一栏的读数与排序行。资料页的标签同样可以叠加,读数把生效的几个都写出来。 */
+function pushEntityVideoHead(items,filters){
const entityTags=tagList(filters.tag).map(tagLabel);
- const section=$('#index').querySelector('.entitysection');if(!section)return;
- releaseEntityGrid();
- /* 宿主里先铺一份骨架:React 产物头一次装载要等一个来回,这期间不留一块空白。 */
- section.innerHTML=`<div data-entity-grid>${catalogSkeletonHtml()}</div>`;
- section.dataset.total=String(items.total||0);
pushEntityFilter({view:'videos',busy:false,video:entityVideoHead(filters),
readout:`视频 · ${(items.total||0).toLocaleString()}${entityTags.length?' · '+entityTags.join(' · '):''}`});
- const host=section.querySelector('[data-entity-grid]');
- mountIsland('catalog-grid',host,{
- mode:'entity',entityKey:`${kind}:${name}`,revision:++entityGridRevision,initial:items,
- fetchPage:(offset,signal)=>fetchEntityItems(kind,name,filters,offset,signal),
- helpers:gridHelpers,actions:gridActions,layout:catalogGridLayout(),
- selectMode,selected:new Set(selected),seekSeconds:appSettings.seekSeconds,
- cache,wireDrag,skeletonHtml:()=>catalogSkeletonHtml(),groupCollapse:appSettings.groupCollapse,
- canLoadMore:()=>!$('#index').hidden&&$('#stats').hidden,
- },{isCurrent:()=>section.contains(host)}).catch(error=>console.error(error));
+}
+function renderEntityCollection(kind,name,items,filters,revision=++entityBodyRevision){
+ clearEntityPhotos();
+ pushEntityBody({...entityGridShared(),view:'videos',items,revision,fetchPage:entityItemsFetcher(kind,name,filters)});
+ pushEntityVideoHead(items,filters);
scheduleStickySurfaces();
}
+/* 照片墙这一步仍由壳画在正文后面那一格(`.entitysection`)里,换到名册或作品时清掉。 */
+function clearEntityPhotos(){const section=$('#index').querySelector('.entitysection');if(section)section.innerHTML=''}
async function updateEntityCollection(kind,name,filters,push=true){
// 标签是作品筛选,点了就回到作品视图:留在照片或名册里既不生效,标签条也会自相矛盾。
entityMediaView=emptyMediaView();
@@ -6456,12 +6453,11 @@ async function updateEntityCollection(kind,name,filters,push=true){
tags:entityFilterTags(filters),combo:comboItems(filters)});
/* 名单已经不是刚才那一份了。把旧卡片留在屏幕上等新的回来,等的这一下人读到的是一份
跟头上的筛选对不上的列表——数字在转圈,底下那几十张却还是上一次的答案。 */
- const section=$('#index').querySelector('.entitysection');
- const host=section?.querySelector('[data-entity-grid]');
- if(host){releaseEntityGrid();host.innerHTML=catalogSkeletonHtml();fitSkeleton(section)}
+ const revision=++entityBodyRevision;
+ if(entityBodyView==='videos'){releaseHoverPreviews(entityBodyHost);pushEntityBody({items:null,revision})}
const items=await fetchEntityItems(kind,name,filters);
if(seq!==entityRequestSeq)return;
- renderEntityCollection(kind,name,items,filters)
+ renderEntityCollection(kind,name,items,filters,revision)
}
/* ── 资料页的照片 ─────────────────────────────────────────────────────────────
图集就是目录:账本里没有图集实体,`<作品目录>\P\001.jpg` 这种约定只保留在后端,
@@ -6617,7 +6613,7 @@ const photoHead=(data,{back=false,codeSets=[]}={})=>({
const localPhotoCount=()=>photoWallItems.filter(item=>!item.sample).length;
function renderPhotoWall(kind,name,filters,data,append=false){
const section=$('#index').querySelector('.entitysection');if(!section)return;
- if(!append)releaseEntityGrid();
+ if(!append){releaseHoverPreviews(entityBodyHost);pushEntityBody({view:'photos'})}
const entityWide=!data.id;
if(!append){
const codeSets=entityWide?codeSetsOf(data):[];
@@ -7077,7 +7073,7 @@ function entityHeroHelpers(kind,d){
};
}
async function openEntity(kind,name,push=true){
- releaseHoverPreviews();releaseEntityGrid();
+ releaseHoverPreviews();releaseEntityBody();
const filters=push?emptyEntityFilters():parseEntityFilters(location.search);
if(kind==='creator')filters.creator='';
const expectedPath=entityPath(kind,name);
@@ -7147,34 +7143,42 @@ async function openEntity(kind,name,push=true){
entityPhotos=photos&&!photos.error?photos:null;
if(entityMediaView.media==='photos'&&!photosAvailable())entityMediaView=emptyMediaView();
$('#index').dataset.entityKind=kind;$('#index').dataset.entityName=name;
- /* 资料卡与新作那一行归 React(`entity-hero`),资料卡下面的交集条与玻璃浮层也是
- (`entity-filter`)。卡外面依次是交集条、玻璃筛选条、新作和内容区,顶到底一条线;新作
- 那一行的容器留在筛选条和内容区之间,由资料卡那座岛接管。两座岛挂上之前宿主都是空的:
- React 包已随取数预载好,挂载里剩下的都是微任务,换掉骨架与画出整页落在同一帧。 */
+ /* 资料卡与新作那一行归 React(`entity-hero`),资料卡下面的交集条与玻璃浮层(`entity-filter`)
+ 和再下面那一整块正文(`entity-body`)也是。卡外面依次是交集条、玻璃筛选条、新作和正文,
+ 顶到底一条线;新作那一行的容器留在筛选条和正文之间,由资料卡那座岛接管。三座岛挂上之前
+ 宿主都是空的:React 包已随取数预载好,挂载里剩下的都是微任务,换掉骨架与画出整页落在同一帧。 */
if(entityFilterHost)unmountIsland(entityFilterHost);
$('#index').innerHTML=`<div data-entity-hero="${d.id?Number(d.id):''}"></div>
<div data-entity-filter></div>
<section class="feednew" data-feed-new aria-label="未入库的新作" hidden></section>
- <div class="entitysection"></div>`;
+ <div data-entity-body></div><div class="entitysection"></div>`;
const heroHost=$('#index').querySelector('[data-entity-hero]');
const filterHost=$('#index').querySelector('[data-entity-filter]');
- entityHeroHost=heroHost;entityFilterHost=filterHost;entityPhotoHeadNow=null;
+ const bodyHost=$('#index').querySelector('[data-entity-body]');
+ entityHeroHost=heroHost;entityFilterHost=filterHost;entityBodyHost=bodyHost;entityPhotoHeadNow=null;
const onPage=host=>()=>seq===entityRequestSeq&&host.isConnected;
+ const view=entityViewNow(kind);entityBodyView=view;
await Promise.all([
mountIsland('entity-hero',heroHost,{kind,name,entity:d,feedNew:d.feedNew||null,
feedHost:d.id?$('#index').querySelector('[data-feed-new]'):null,jav:entityJavLayout,
actions:entityHeroActions(kind,name,d,heroHost),helpers:entityHeroHelpers(kind,d)},
{isCurrent:onPage(heroHost)}),
/* 读数由下面那一格画完时推过来;深链直达一个图集时要先取这一组,读数先是微光。 */
- mountIsland('entity-filter',filterHost,{kind,name,view:entityViewNow(kind),views,
+ mountIsland('entity-filter',filterHost,{kind,name,view,views,
state:filters.state||'',states:VIEW_PILLS,tags:entityFilterTags(filters),combo:comboItems(filters),
readout:'',busy:!!(entityMediaView.media==='photos'&&entityMediaView.set),
video:entityVideoHead(filters),photo:null,
actions:entityFilterActions(kind,name,filters),helpers:entityFilterHelpers(kind,name,filters)},
- {isCurrent:onPage(filterHost)})]);
+ {isCurrent:onPage(filterHost)}),
+ /* 作品第一页不论落在哪个视图都已取回:落在作品视图时首帧就是卡片,切过去也不必再等。 */
+ mountIsland('entity-body',bodyHost,{...entityGridShared(),kind,name,view,roster:entityRosterProps(),
+ items,revision:++entityBodyRevision,fetchPage:entityItemsFetcher(kind,name,filters),
+ helpers:entityBodyHelpers,actions:gridActions,cache,wireDrag,skeletonHtml:entityBodySkeleton,
+ canLoadMore:entityBodyCanLoadMore},
+ {isCurrent:onPage(bodyHost)})]);
if(seq!==entityRequestSeq||!heroHost.isConnected)return;
- if(entityViewNow(kind)==='people')renderEntityRoster(roster);
- else if(entityMediaView.media!=='photos')renderEntityCollection(kind,name,items,filters);
+ if(view==='people')renderEntityRoster(roster);
+ else if(view==='videos')pushEntityVideoHead(items,filters);
else if(entityMediaView.set)await openPhotoSet(kind,name,filters,entityMediaView.set,false);
else renderPhotoWall(kind,name,filters,entityPhotos);
buildBars();
@@ -7865,7 +7869,7 @@ function catalogCardRatio(){
}
/* 挂着卡片网格的几处:目录 `#grid`、资料页作品区、详情页的接着看。 */
function gridIslandHosts(){
- return [$('#grid'),...$('#index').querySelectorAll('[data-entity-grid]'),$('#nrow')].filter(host=>islandMounted(host));
+ return [$('#grid'),entityBodyCurrent()?entityBodyHost:null,$('#nrow')].filter(host=>host&&islandMounted(host));
}
/* 版式、「JAV 默认封面」、快进秒数这些展示层的设置变了,只推给正挂着的网格重画,不重取。 */
function repaintCatalogGrid(){
diff --git a/web/css/01-base.css b/web/css/01-base.css
index c96a12c1f..ab96cc910 100644
--- a/web/css/01-base.css
+++ b/web/css/01-base.css
@@ -569,16 +569,14 @@ body.settings-open>.ovtrack.page,body.photolight-open>.ovtrack.page{display:none
没有变量时 min(100%,100%) 就是铺满,JS 没跑到的地方按 CSS 自己收场。
补底那一层是同一张图放大后模糊,往框外多铺一圈,让糊边落在 overflow 之外。 */
[data-fit-native]{position:relative}
-/* 选择器点名这两处容器:`.icell .ring img` 与 React 索引页那枚
- `[data-person-ring]` 的 img 各自写着铺满和 object-fit:cover,光凭一个属性选择器压不过它们。
+/* 选择器点名名册那一格(React 的 `[data-person-ring]`,索引页与资料页名册共用):它的 img
+ 写着铺满和 object-fit:cover,光凭一个属性选择器压不过它。
尺寸走 `--markw` / `--markh` 而不是 `width:auto`:还没度量过的图按 auto 是 0×0,
而 `loading="lazy"` 见到 0×0 的框就认定它不在视口里,于是永远不去取这张图——
图不来就没有 load、没有 load 就没有度量,两边互相等着,格子一直空着。缺省值
仍是铺满,度量之后才换成那张图自己的像素数。 */
-.icell .ring[data-fit-native="mark"] img,
[data-person-ring][data-fit-native="mark"] img,
-.icell .ring[data-native-small="true"] img,
[data-person-ring][data-native-small="true"] img{
width:var(--markw,100%);height:var(--markh,100%);margin:auto;object-fit:contain;
max-width:100%;max-height:100%;z-index:1}
@@ -587,4 +585,4 @@ body.settings-open>.ovtrack.page,body.photolight-open>.ovtrack.page{display:none
opacity:.55;pointer-events:none}
/* 首字母是取不到图时的垫底。图不再铺满框之后它会从旁边露出来,所以有图就收起来。
资料卡岛那一侧的大位与首字母由 `entity-hero.css` 自己收。 */
-.icell .ring[data-fit-native]:has(img) .ini,[data-person-ring][data-fit-native]:has(img) .ini{display:none}
+[data-person-ring][data-fit-native]:has(img) .ini{display:none}
diff --git a/web/css/06-index.css b/web/css/06-index.css
index 658506696..443118285 100644
--- a/web/css/06-index.css
+++ b/web/css/06-index.css
@@ -1,5 +1,6 @@
/* 索引页整页在 React(`frontend/src/react/index/`)。这里留下的是壳铺的那张骨架(页头、
- 头像格、标签行与标签云的占位)和资料页名册共用的那一格人。
+ 头像格、标签行与标签云的占位)。资料页骨架里事务所名册那一块也是这张头像格;真格子
+ 在 React 里(`PeopleGrid`,索引页与资料页正文共用)。
不裁横向溢出:筛选玻璃的三层投影要往左右各洒出几十像素,资料页吸顶栏也用负边距把
分隔线铺到 main 左右边缘;横滚的行各自 `overflow-x:auto`,页面本身不会被撑出横向滚动。 */
.index{padding:4px 0 20px;min-width:0;max-width:100%}
@@ -14,10 +15,6 @@
.icell:hover{background:var(--hover)}
.icell .ring{display:block;width:70px;height:70px;border-radius:50%;overflow:hidden;
background:var(--sunk);position:relative}
-.icell .ring img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
- object-position:var(--face,50% 50%)}
-.icell .ring .ini{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
- font-size:var(--fs-2xl);color:var(--muted);font-family:Bahnschrift,"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif}
.icell .nm{font-size:var(--fs-xs);text-align:center;line-height:1.3;word-break:break-all}
.icell .n{font-size:var(--fs-xs);color:var(--muted)}
/* 大图版式照 JAV 大图那条规矩:列宽和列数一个字都不动,只把圆框拉成 3:4 竖幅,
diff --git a/web/css/07-entity.css b/web/css/07-entity.css
index 14b94646d..ca2c8df18 100644
--- a/web/css/07-entity.css
+++ b/web/css/07-entity.css
@@ -66,6 +66,9 @@
这里只管横滚轨道本身。 */
.relatedpeople{display:flex;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-inline:contain}
.relatedpeople::-webkit-scrollbar{display:none}
+/* 正文是 `entity-body` 岛,骨架里同一格是 `.entitysection`,两者占同一个位置。宿主不加内边距、
+ 不起新的格式化上下文:照片墙段头的上边距要穿过它,和筛选浮层的下边距折叠成一段。 */
+[data-entity-body]{min-width:0;max-width:100%}
.entitysection{min-width:0;max-width:100%}.entitysection h3{font-size:var(--fs-sm);letter-spacing:.08em;color:var(--muted);margin:0 0 12px}
.entitycollectionhead{position:sticky;top:var(--topH);z-index:60;display:flex;align-items:center;gap:10px;
min-height:var(--sortH);margin:0 -16px 12px;padding:8px 16px;min-width:0;
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index dff2ed389..aa9d6a7db 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -8875,21 +8875,21 @@ var tee = Symbol.for("react-aria.i18n.locale"), og = Symbol.for("react-aria.i18n
};
function lg(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = ug(e), i = nee(e);
+ let r = nee(e), i = ree(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function ug(e) {
+function nee(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function nee(e) {
+function ree(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var dg = /* @__PURE__ */ new Map(), fg = /* @__PURE__ */ new Map(), ree = class {
+var ug = /* @__PURE__ */ new Map(), dg = /* @__PURE__ */ new Map(), iee = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -8900,37 +8900,37 @@ var dg = /* @__PURE__ */ new Map(), fg = /* @__PURE__ */ new Map(), ree = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = dg.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), dg.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = ug.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), ug.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = fg.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), fg.set(this.locale, t)), t.format(e);
+ let t = dg.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), dg.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, pg = /* @__PURE__ */ new WeakMap();
-function iee(e) {
- let t = pg.get(e);
- return t || (t = new cg(e), pg.set(e, t)), t;
+}, fg = /* @__PURE__ */ new WeakMap();
+function aee(e) {
+ let t = fg.get(e);
+ return t || (t = new cg(e), fg.set(e, t)), t;
}
-function aee(e, t) {
- return t && cg.getGlobalDictionaryForPackage(t) || iee(e);
+function oee(e, t) {
+ return t && cg.getGlobalDictionaryForPackage(t) || aee(e);
}
-function mg(e, t) {
- let { locale: n } = ag(), r = aee(e, t);
- return (0, I.useMemo)(() => new ree(n, r), [n, r]);
+function pg(e, t) {
+ let { locale: n } = ag(), r = oee(e, t);
+ return (0, I.useMemo)(() => new iee(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var oee = /* @__PURE__ */ new Set(["id"]), see = /* @__PURE__ */ new Set([
+var see = /* @__PURE__ */ new Set(["id"]), cee = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), cee = /* @__PURE__ */ new Set([
+]), lee = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -8938,52 +8938,52 @@ var oee = /* @__PURE__ */ new Set(["id"]), see = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), lee = /* @__PURE__ */ new Set([
+]), uee = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), hg = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), uee = /^(data-.*)$/;
-function gg(e, t = {}) {
+]), mg = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), dee = /^(data-.*)$/;
+function hg(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (oee.has(t) || n && see.has(t) || r && cee.has(t) || i && lee.has(t) || a && (hg.has(t) || t.endsWith("Capture") && hg.has(t.slice(0, -7))) || o?.has(t) || uee.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (see.has(t) || n && cee.has(t) || r && lee.has(t) || i && uee.has(t) || a && (mg.has(t) || t.endsWith("Capture") && mg.has(t.slice(0, -7))) || o?.has(t) || dee.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var _g = "default", vg = "", yg = /* @__PURE__ */ new WeakMap();
-function dee(e) {
+var gg = "default", _g = "", vg = /* @__PURE__ */ new WeakMap();
+function fee(e) {
if (Op() && Ap()) {
- if (_g === "default") {
+ if (gg === "default") {
let t = Kf(e);
- vg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ _g = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- _g = "disabled";
+ gg = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- yg.set(e, e.style[t]), e.style[t] = "none";
+ vg.set(e, e.style[t]), e.style[t] = "none";
}
}
-function bg(e) {
+function yg(e) {
if (Op() && Ap()) {
- if (_g !== "disabled") return;
- _g = "restoring", setTimeout(() => {
+ if (gg !== "disabled") return;
+ gg = "restoring", setTimeout(() => {
Am(() => {
- if (_g === "restoring") {
+ if (gg === "restoring") {
let t = Kf(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = vg || ""), vg = "", _g = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = _g || ""), _g = "", gg = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && yg.has(e)) {
- let t = yg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), yg.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && vg.has(e)) {
+ let t = vg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), vg.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function fee(e, t) {
+function pee(e, t) {
let n = qf(t), r = Kf(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
@@ -8991,18 +8991,18 @@ function fee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var xg = /* @__PURE__ */ new WeakMap();
-function Sg(e) {
- let t = Kf(e), n = xg.get(t);
- return n ??= fee("csp-nonce", t), n !== void 0 && xg.set(t, n), n;
+var bg = /* @__PURE__ */ new WeakMap();
+function xg(e) {
+ let t = Kf(e), n = bg.get(t);
+ return n ??= pee("csp-nonce", t), n !== void 0 && bg.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Cg = I.createContext({ register: () => {} });
-Cg.displayName = "PressResponderContext";
+var Sg = I.createContext({ register: () => {} });
+Sg.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function wg() {
+function Cg() {
let e = (0, I.useRef)(/* @__PURE__ */ new Map()), t = (0, I.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -9029,15 +9029,15 @@ function wg() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function pee(e) {
- let t = (0, I.useContext)(Cg);
+function mee(e) {
+ let t = (0, I.useContext)(Sg);
if (t) {
let { register: n, ref: r, ...i } = t;
e = H(i, e), n();
}
return sh(t, e.ref), e;
}
-var Tg = class {
+var wg = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -9050,9 +9050,9 @@ var Tg = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Eg = Symbol("linkClicked"), Dg = "react-aria-pressable-style", Og = "data-react-aria-pressable";
-function kg(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = pee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({
+}, Tg = Symbol("linkClicked"), Eg = "react-aria-pressable-style", Dg = "data-react-aria-pressable";
+function Og(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = mee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -9062,12 +9062,12 @@ function kg(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = wg(), y = (0, I.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Cg(), y = (0, I.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Tg("pressstart", t, e);
+ let n = new wg("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -9081,11 +9081,11 @@ function kg(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Tg("pressend", r, e);
+ let t = new wg("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Tg("press", r, e);
+ let n = new wg("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -9099,14 +9099,14 @@ function kg(e) {
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Tg("pressup", t, e);
+ let r = new wg("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, I.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Mg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || bg(t.target);
+ t.didFirePressStart && t.pointerType != null && b(jg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || yg(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -9136,13 +9136,13 @@ function kg(e) {
}, [s, o]), O = (0, I.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (jg(t.nativeEvent, t.currentTarget) && np(t.currentTarget, V(t))) {
- Pg(V(t), t.key) && t.preventDefault();
+ if (Ag(t.nativeEvent, t.currentTarget) && np(t.currentTarget, V(t))) {
+ Ng(V(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
_(Kf(t.currentTarget), "keyup", Mm((t) => {
- jg(t, i) && !t.repeat && np(i, V(t)) && e.target && S(Mg(e.target, t), "keyboard");
+ Ag(t, i) && !t.repeat && np(i, V(t)) && e.target && S(jg(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && Tp() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -9153,17 +9153,17 @@ function kg(e) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Mg(t.currentTarget, t), r), a = x(Mg(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(jg(t.currentTarget, t), r), a = x(jg(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && jg(t, e.target)) {
- Pg(V(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && Ag(t, e.target)) {
+ Ng(V(t), t.key) && t.preventDefault();
let n = V(t), r = np(e.target, n);
- x(Mg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Ag(e.target) && np(e.target, n) && !t[Eg] && (t[Eg] = !0, zp(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(jg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && kg(e.target) && np(e.target, n) && !t[Tg] && (t[Tg] = !0, zp(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -9180,7 +9180,7 @@ function kg(e) {
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || dee(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || fee(e.target), i = y(t, e.pointerType);
let a = V(t);
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Kf(t.currentTarget), "pointerup", n, !1), _(Kf(t.currentTarget), "pointercancel", r, !1);
}
@@ -9196,9 +9196,9 @@ function kg(e) {
}, t.onPointerUp = (t) => {
!np(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Mg(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(jg(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Mg(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(jg(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -9232,13 +9232,13 @@ function kg(e) {
return (0, I.useEffect)(() => {
if (!f) return;
let e = Kf(f.current);
- if (!e || !e.head || e.getElementById(Dg)) return;
+ if (!e || !e.head || e.getElementById(Eg)) return;
let t = e.createElement("style");
- t.id = Dg;
- let n = Sg(e);
+ t.id = Eg;
+ let n = xg(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Og}] {
+ [${Dg}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -9246,23 +9246,23 @@ function kg(e) {
}, [f]), (0, I.useEffect)(() => {
let e = g.current;
return () => {
- d || bg(e.target ?? void 0);
+ d || yg(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, O, { [Og]: !0 })
+ pressProps: H(p, O, { [Dg]: !0 })
};
}
-function Ag(e) {
+function kg(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function jg(e, t) {
+function Ag(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qf(i).HTMLInputElement && !Ig(i, n) || i instanceof qf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ag(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qf(i).HTMLInputElement && !Fg(i, n) || i instanceof qf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && kg(i)) && n !== "Enter");
}
-function Mg(e, t) {
+function jg(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -9275,13 +9275,13 @@ function Mg(e, t) {
key: t.key
};
}
-function Ng(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ag(e);
+function Mg(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !kg(e);
}
-function Pg(e, t) {
- return Tp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Ig(e, t) : Ng(e);
+function Ng(e, t) {
+ return Tp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Fg(e, t) : Mg(e);
}
-var Fg = /* @__PURE__ */ new Set([
+var Pg = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -9292,12 +9292,12 @@ var Fg = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Ig(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Fg.has(e.type);
+function Fg(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Pg.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Lg(e, t) {
+function Ig(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -9319,7 +9319,7 @@ function Lg(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = kg({
+ let { pressProps: _, isPressed: v } = Og({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -9331,7 +9331,7 @@ function Lg(e, t) {
ref: t
}), { focusableProps: y } = uh(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, gg(e, { labelable: !0 }));
+ let b = H(y, _, hg(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: H(g, b, {
@@ -9346,7 +9346,7 @@ function Lg(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Rg = class {
+var Lg = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -9449,45 +9449,45 @@ var Rg = class {
return null;
}
};
-function zg(e, t, n, r) {
- return tp() ? new Rg(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Rg(e, t, n, r) {
+ return tp() ? new Lg(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Bg = /*#__PURE__*/ I.createContext(null), Vg = "react-aria-focus-scope-restore", Hg = null;
-function Ug(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(Bg) || {}, l = (0, I.useMemo)(() => new d_({ scopeRef: s }), [s]);
+var zg = /*#__PURE__*/ I.createContext(null), Bg = "react-aria-focus-scope-restore", Vg = null;
+function Hg(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useRef)([]), { parentNode: c } = (0, I.useContext)(zg) || {}, l = (0, I.useMemo)(() => new u_({ scopeRef: s }), [s]);
gp(() => {
- let e = c || f_.root;
- if (f_.getTreeNode(e.scopeRef) && Hg && !e_(Hg, e.scopeRef)) {
- let t = f_.getTreeNode(Hg);
+ let e = c || d_.root;
+ if (d_.getTreeNode(e.scopeRef) && Vg && !$g(Vg, e.scopeRef)) {
+ let t = d_.getTreeNode(Vg);
t && (e = t);
}
- e.addChild(l), f_.addNode(l);
+ e.addChild(l), d_.addNode(l);
}, [l, c]), gp(() => {
- let e = f_.getTreeNode(s);
+ let e = d_.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), gp(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Vg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Bg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Vg, n);
+ for (let e of t) e.removeEventListener(Bg, n);
};
- }, [t]), a_(s, r, n), Yg(s, n), s_(s, r, n), i_(s, i), (0, I.useEffect)(() => {
+ }, [t]), i_(s, r, n), Jg(s, n), o_(s, r, n), r_(s, i), (0, I.useEffect)(() => {
let e = rp(Kf(s.current ? s.current[0] : void 0)), t = null;
- if (Zg(e, s.current)) {
- for (let n of f_.traverse()) n.scopeRef && Zg(e, n.scopeRef.current) && (t = n);
- t === f_.getTreeNode(s) && (Hg = t.scopeRef);
+ if (Xg(e, s.current)) {
+ for (let n of d_.traverse()) n.scopeRef && Xg(e, n.scopeRef.current) && (t = n);
+ t === d_.getTreeNode(s) && (Vg = t.scopeRef);
}
}, [s]), gp(() => () => {
- let e = f_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Hg || e_(s, Hg)) && (!e || f_.getTreeNode(e)) && (Hg = e), f_.removeTreeNode(s);
+ let e = d_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Vg || $g(s, Vg)) && (!e || d_.getTreeNode(e)) && (Vg = e), d_.removeTreeNode(s);
}, [s]);
- let u = (0, I.useMemo)(() => Wg(s), []), d = (0, I.useMemo)(() => ({
+ let u = (0, I.useMemo)(() => Ug(s), []), d = (0, I.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ I.createElement(Bg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
+ return /*#__PURE__*/ I.createElement(zg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -9497,68 +9497,68 @@ function Ug(e) {
ref: o
}));
}
-function Wg(e) {
+function Ug(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = l_(Gg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = c_(Wg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Zg(s, n) ? s : c;
+ l.currentNode = Xg(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && t_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && e_(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = l_(Gg(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rp(Kf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = c_(Wg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Zg(s, n) ? s : c;
+ l.currentNode = Xg(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && t_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && e_(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = l_(Gg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = c_(Wg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && t_(o, !0), o;
+ return o && e_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = l_(Gg(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = c_(Wg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && t_(o, !0), o;
+ return o && e_(o, !0), o;
}
};
}
-function Gg(e) {
+function Wg(e) {
return e[0].parentElement;
}
-function Kg(e) {
- let t = f_.getTreeNode(Hg);
+function Gg(e) {
+ let t = d_.getTreeNode(Vg);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function qg(e) {
+function Kg(e) {
if (!e.form) return Array.from(Kf(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = qf(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Jg(e) {
+function qg(e) {
if (e.checked) return !0;
- let t = qg(e);
+ let t = Kg(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Yg(e, t) {
+function Jg(e, t) {
let n = (0, I.useRef)(void 0), r = (0, I.useRef)(void 0);
gp(() => {
let i = e.current;
@@ -9567,23 +9567,23 @@ function Yg(e, t) {
return;
}
let a = Kf(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Kg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
let n = rp(a), r = e.current;
- if (!r || !Zg(n, r)) return;
- let i = l_(Gg(r), { tabbable: !0 }, r);
+ if (!r || !Xg(n, r)) return;
+ let i = c_(Wg(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (t_(o, !0), o instanceof qf(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (e_(o, !0), o instanceof qf(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Hg || e_(Hg, e)) && Zg(V(t), e.current) ? (Hg = e, n.current = V(t)) : Kg(e) && !Qg(V(t), e) ? n.current ? t_(n.current) : Hg && Hg.current && r_(Hg.current) : Kg(e) && (n.current = V(t));
+ (!Vg || $g(Vg, e)) && Xg(V(t), e.current) ? (Vg = e, n.current = V(t)) : Gg(e) && !Zg(V(t), e) ? n.current ? e_(n.current) : Vg && Vg.current && n_(Vg.current) : Gg(e) && (n.current = V(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = bm(), i = (r === "virtual" || r === null) && Mp() && jp(), o = rp(a);
- if (!i && o && Kg(e) && !Qg(o, e)) {
- Hg = e;
+ if (!i && o && Gg(e) && !Zg(o, e)) {
+ Vg = e;
let r = V(t);
- r && r.isConnected ? (n.current = r, t_(n.current)) : Hg.current && r_(Hg.current);
+ r && r.isConnected ? (n.current = r, e_(n.current)) : Vg.current && n_(Vg.current);
}
});
};
@@ -9594,29 +9594,29 @@ function Yg(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Xg(e) {
- return Qg(e);
+function Yg(e) {
+ return Zg(e);
}
-function Zg(e, t) {
+function Xg(e, t) {
return !e || !t ? !1 : t.some((t) => np(t, e));
}
-function Qg(e, t = null) {
+function Zg(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of f_.traverse(f_.getTreeNode(t))) if (n && Zg(e, n.current)) return !0;
+ for (let { scopeRef: n } of d_.traverse(d_.getTreeNode(t))) if (n && Xg(e, n.current)) return !0;
return !1;
}
-function $g(e) {
- return Qg(e, Hg);
+function Qg(e) {
+ return Zg(e, Vg);
}
-function e_(e, t) {
- let n = f_.getTreeNode(t)?.parent;
+function $g(e, t) {
+ let n = d_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function t_(e, t = !1) {
+function e_(e, t = !1) {
if (e != null && !t) try {
jm(e);
} catch {}
@@ -9624,27 +9624,27 @@ function t_(e, t = !1) {
e.focus();
} catch {}
}
-function n_(e, t = !0) {
- let n = e[0].previousElementSibling, r = Gg(e), i = l_(r, { tabbable: t }, e);
+function t_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Wg(e), i = c_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Gg(e), i = l_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Wg(e), i = c_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function r_(e, t = !0) {
- t_(n_(e, t));
+function n_(e, t = !0) {
+ e_(t_(e, t));
}
-function i_(e, t) {
+function r_(e, t) {
let n = I.useRef(t);
(0, I.useEffect)(() => {
- n.current && (Hg = e, !Zg(rp(Kf(e.current ? e.current[0] : void 0)), Hg.current) && e.current && r_(e.current)), n.current = !1;
+ n.current && (Vg = e, !Xg(rp(Kf(e.current ? e.current[0] : void 0)), Vg.current) && e.current && n_(e.current)), n.current = !1;
}, [e]);
}
-function a_(e, t, n) {
+function i_(e, t, n) {
gp(() => {
if (t || n) return;
let r = e.current, i = Kf(r ? r[0] : void 0), a = (t) => {
let n = V(t);
- Zg(n, e.current) ? Hg = e : Xg(n) || (Hg = null);
+ Xg(n, e.current) ? Vg = e : Yg(n) || (Vg = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9655,21 +9655,21 @@ function a_(e, t, n) {
n
]);
}
-function o_(e) {
- let t = f_.getTreeNode(Hg);
+function a_(e) {
+ let t = d_.getTreeNode(Vg);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function s_(e, t, n) {
+function o_(e, t, n) {
let r = (0, I.useRef)(typeof document < "u" ? rp(Kf(e.current ? e.current[0] : void 0)) : null);
gp(() => {
let r = e.current, i = Kf(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Hg || e_(Hg, e)) && Zg(rp(i), e.current) && (Hg = e);
+ (!Vg || $g(Vg, e)) && Xg(rp(i), e.current) && (Vg = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9678,20 +9678,20 @@ function s_(e, t, n) {
let r = Kf(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Kg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Qg(n, e) || !o_(e)) return;
- let i = f_.getTreeNode(e);
+ if (!Zg(n, e) || !a_(e)) return;
+ let i = d_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = l_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = c_(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Qg(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Zg(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Qg(s, e));
- t.preventDefault(), t.stopPropagation(), s ? t_(s, !0) : Xg(a) ? t_(a, !0) : n.blur();
+ while (Zg(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? e_(s, !0) : Yg(a) ? e_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -9704,28 +9704,28 @@ function s_(e, t, n) {
]), gp(() => {
let n = Kf(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = f_.getTreeNode(e);
+ let i = d_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = f_.getTreeNode(e);
+ let r = d_.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = rp(n);
- if (t && i && (a && Qg(a, e) || a === n.body && o_(e))) {
- let t = f_.clone();
+ if (t && i && (a && Zg(a, e) || a === n.body && a_(e))) {
+ let t = d_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- c_(n.nodeToRestore);
+ s_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && f_.getTreeNode(n.scopeRef)) {
- let e = n_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && d_.getTreeNode(n.scopeRef)) {
+ let e = t_(n.scopeRef.current, !0);
if (e) {
- c_(e);
+ s_(e);
return;
}
}
@@ -9737,21 +9737,21 @@ function s_(e, t, n) {
};
}, [e, t]);
}
-function c_(e) {
- e.dispatchEvent(new CustomEvent(Vg, {
+function s_(e) {
+ e.dispatchEvent(new CustomEvent(Bg, {
bubbles: !0,
cancelable: !0
- })) && t_(e);
+ })) && e_(e);
}
-function l_(e, t, n) {
- let r = t?.tabbable ? mp : pp, i = Kf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = zg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return np(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Jg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Zg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function c_(e, t, n) {
+ let r = t?.tabbable ? mp : pp, i = Kf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Rg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return np(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!qg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Xg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var u_ = class e {
+var l_ = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new d_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new u_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -9762,7 +9762,7 @@ var u_ = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new d_({ scopeRef: e });
+ let i = new u_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -9773,7 +9773,7 @@ var u_ = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Zg(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Xg(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -9785,7 +9785,7 @@ var u_ = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, d_ = class {
+}, u_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -9795,13 +9795,13 @@ var u_ = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, f_ = new u_(), p_ = 7e3, m_ = null;
-function h_(e, t = "assertive", n = p_) {
- m_ ? m_.announce(e, t, n) : (m_ = new g_(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? m_.announce(e, t, n) : setTimeout(() => {
- m_?.isAttached() && m_?.announce(e, t, n);
+}, d_ = new l_(), f_ = 7e3, p_ = null;
+function m_(e, t = "assertive", n = f_) {
+ p_ ? p_.announce(e, t, n) : (p_ = new h_(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? p_.announce(e, t, n) : setTimeout(() => {
+ p_?.isAttached() && p_?.announce(e, t, n);
}, 100));
}
-var g_ = class {
+var h_ = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -9826,7 +9826,7 @@ var g_ = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = p_) {
+ announce(e, t = "assertive", n = f_) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -9839,7 +9839,7 @@ var g_ = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function __(e, t) {
+function g_(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null), i = qh(e);
(0, I.useEffect)(() => (n.current = !0, () => {
n.current = !1;
@@ -9850,31 +9850,31 @@ function __(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function v_(e, t) {
+function __(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function y_(e, t) {
+function v_(e, t) {
let n = e;
- for (v_(n, t) && (n = n.parentElement); n && !v_(n, t);) n = n.parentElement;
+ for (__(n, t) && (n = n.parentElement); n && !__(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function b_(e, t) {
+function y_(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (v_(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (__(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function x_(e, t, n = {}) {
- e !== t && mee(e, t, t.getBoundingClientRect(), n);
+function b_(e, t, n = {}) {
+ e !== t && hee(e, t, t.getBoundingClientRect(), n);
}
-function mee(e, t, n, r = {}) {
+function hee(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, ee = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - N, P = e === d ? 0 : e.offsetHeight - e.clientHeight - ee, F = p + (f ? 0 : T) + x, ne = m - (f ? 0 : E) - S - P, re = h + (f ? 0 : D) + C, ie = g - (f ? 0 : O) - w;
Op() && Ap() || u.direction === "ltr" ? ie -= te : u.direction === "rtl" && (re += te);
let I = k < F || A > ne, L = j < re || M > ie;
@@ -9897,7 +9897,7 @@ function mee(e, t, n, r = {}) {
top: o
});
}
-function S_(e, t = {}) {
+function x_(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -9910,46 +9910,46 @@ function S_(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = b_(e, !0);
- for (let t of i) x_(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = y_(e, !0);
+ for (let t of i) b_(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? b_(n, !0) : [];
- for (let e of i) x_(e, n, {
+ i = n ? y_(n, !0) : [];
+ for (let e of i) b_(e, n, {
block: "center",
inline: "center"
});
- for (let t of b_(e, !0)) x_(t, e);
+ for (let t of y_(e, !0)) b_(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var hee = 0, C_ = /* @__PURE__ */ new Map();
-function w_(e) {
+var gee = 0, S_ = /* @__PURE__ */ new Map();
+function C_(e) {
let [t, n] = (0, I.useState)();
return gp(() => {
if (!e) return;
- let t = C_.get(e);
+ let t = S_.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${hee++}`;
+ let r = `react-aria-description-${gee++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, C_.set(e, t);
+ }, S_.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), C_.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), S_.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function T_(e, t, n) {
+function w_(e, t, n) {
let r = qh((e) => {
n && !e.defaultPrevented && n(t);
});
@@ -9962,12 +9962,12 @@ function T_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function E_(e, t, n) {
+function T_(e, t, n) {
let { validationBehavior: r, focus: i } = e;
gp(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(_ee(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(vee(n.current));
}
});
let a = (0, I.useRef)(!1), o = qh(() => {
@@ -9975,7 +9975,7 @@ function E_(e, t, n) {
}), s = qh((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && vee(r) === n.current && (i ? i() : n.current?.focus(), xm("keyboard")), e.preventDefault();
+ !e.defaultPrevented && n && r && yee(r) === n.current && (i ? i() : n.current?.focus(), xm("keyboard")), e.preventDefault();
}), c = qh(() => {
t.commitValidation();
});
@@ -9990,7 +9990,7 @@ function E_(e, t, n) {
};
}, [n, r]);
}
-function gee(e) {
+function _ee(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -10006,14 +10006,14 @@ function gee(e) {
valid: t.valid
};
}
-function _ee(e) {
+function vee(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: gee(e),
+ validationDetails: _ee(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function vee(e) {
+function yee(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -10022,7 +10022,7 @@ function vee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function yee(e = !0) {
+function bee(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -10030,8 +10030,8 @@ function yee(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function D_(e = !0) {
- let t = Rm(), [n, r] = yee(e);
+function E_(e = !0) {
+ let t = Rm(), [n, r] = bee(e);
return {
id: r ? t : void 0,
ref: n
@@ -10039,7 +10039,7 @@ function D_(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var O_ = {
+var D_ = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -10051,18 +10051,18 @@ var O_ = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, k_ = {
- ...O_,
+}, O_ = {
+ ...D_,
customError: !0,
valid: !1
-}, A_ = {
+}, k_ = {
isInvalid: !1,
- validationDetails: O_,
+ validationDetails: D_,
validationErrors: []
-}, bee = (0, I.createContext)({}), j_ = "__reactAriaFormValidationState";
-function M_(e) {
+}, xee = (0, I.createContext)({}), A_ = "__reactAriaFormValidationState";
+function j_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[j_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[A_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -10071,71 +10071,71 @@ function M_(e) {
commitValidation: a
};
}
- return xee(e);
+ return See(e);
}
-function xee(e) {
+function See(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: k_
- }, l = (0, I.useMemo)(() => !o || i == null ? null : P_(See(o, i)), [o, i]);
+ validationDetails: O_
+ }, l = (0, I.useMemo)(() => !o || i == null ? null : N_(Cee(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, I.useContext)(bee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => N_(u[e])) : N_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);
+ let u = (0, I.useContext)(xee), d = (0, I.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => M_(u[e])) : M_(u[r]) : [], [u, r]), [f, p] = (0, I.useState)(u), [m, h] = (0, I.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, I.useMemo)(() => P_(m ? [] : d), [m, d]), _ = (0, I.useRef)(A_), [v, y] = (0, I.useState)(A_), b = (0, I.useRef)(A_), x = () => {
+ let g = (0, I.useMemo)(() => N_(m ? [] : d), [m, d]), _ = (0, I.useRef)(k_), [v, y] = (0, I.useState)(k_), b = (0, I.useRef)(k_), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- F_(e, b.current) || (b.current = e, y(e));
+ P_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, I.useState)(!1);
return (0, I.useEffect)(x), {
- realtimeValidation: c || g || l || a || A_,
+ realtimeValidation: c || g || l || a || k_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !F_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !P_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = A_;
- F_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = k_;
+ P_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function N_(e) {
+function M_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function See(e, t) {
+function Cee(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return N_(n);
+ if (n && typeof n != "boolean") return M_(n);
}
return [];
}
-function P_(e) {
+function N_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: k_
+ validationDetails: O_
} : null;
}
-function F_(e, t) {
+function P_(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function I_(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = M_({
+function F_(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = j_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- E_(e, b, n);
+ T_(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(V(e).checked);
- }, { pressProps: T, isPressed: E } = kg({
+ }, { pressProps: T, isPressed: E } = Og({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -10143,7 +10143,7 @@ function I_(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, I.useState)(!1), { pressProps: k } = kg({
+ }), [D, O] = (0, I.useState)(!1), { pressProps: k } = Og({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -10172,13 +10172,13 @@ function I_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [j_]: i } = e, { commitValidation: a } = i || b;
+ let { [A_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = uh(e, n), j = H(T, A), M = gg(e, { labelable: !0 });
- T_(n, t.defaultSelected, t.setSelected);
- let N = D_(), ee = D_();
+ }), { focusableProps: A } = uh(e, n), j = H(T, A), M = hg(e, { labelable: !0 });
+ w_(n, t.defaultSelected, t.setSelected);
+ let N = E_(), ee = E_();
return {
labelProps: H(k, { onClick: (e) => e.preventDefault() }),
inputProps: H(M, {
@@ -10215,8 +10215,8 @@ function I_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function L_(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = I_(e, t, n), { isIndeterminate: m } = e;
+function I_(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = F_(e, t, n), { isIndeterminate: m } = e;
return (0, I.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -10235,10 +10235,10 @@ function L_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var Cee = /* @__PURE__ */ new WeakMap();
+var wee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function R_(e) {
+function L_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = Rm(t);
let o = Rm(), s = {};
@@ -10258,8 +10258,8 @@ function R_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function z_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = R_(e), s = Bm([
+function R_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = L_(e), s = Bm([
!!t,
!!n,
r,
@@ -10283,8 +10283,8 @@ function z_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function B_(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = wg(), c = (0, I.useCallback)((e) => {
+function z_(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Cg(), c = (0, I.useCallback)((e) => {
np(e.currentTarget, V(e)) && a.current.isFocusWithin && !np(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
@@ -10324,14 +10324,14 @@ function B_(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var wee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
-function V_(e, t, n) {
+var Tee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
+function B_(e, t, n) {
let [r, i] = (0, I.useState)(e || t), a = (0, I.useRef)(r), o = (0, I.useRef)(e !== void 0), s = e !== void 0;
(0, I.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- wee(() => {
+ Tee(() => {
a.current = c;
});
let [, l] = (0, I.useReducer)(() => ({}), {});
@@ -10342,8 +10342,8 @@ function V_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function H_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = V_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
+function V_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = B_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
function a(e) {
t || r(e);
}
@@ -10359,26 +10359,26 @@ function H_(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Tee(e, t, n) {
- let r = H_({
+function Eee(e, t, n) {
+ let r = V_({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Cee.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = wee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = M_({
+ let { realtimeValidation: l } = j_({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, I.useRef)(A_), d = () => {
+ }), u = (0, I.useRef)(k_), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, I.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = L_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = I_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -10386,7 +10386,7 @@ function Tee(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [j_]: {
+ [A_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -10410,12 +10410,12 @@ function Tee(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function U_(e, t = -Infinity, n = Infinity) {
+function H_(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var W_ = {
+var U_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -10427,38 +10427,38 @@ var W_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function G_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = B_({
+function W_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = z_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, I.useMemo)(() => r ? t : t ? {
- ...W_,
+ ...U_,
...t
- } : W_, [r]);
+ } : U_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function K_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = G_(e);
+function G_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = W_(e);
return /*#__PURE__*/ I.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Eee(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = V_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = uh(e, t), d = M_({
+function Dee(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = B_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = uh(e, t), d = j_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = z_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = R_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = gg(e, { labelable: !0 }), b = {
+ }), y = hg(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, I.useState)(c);
- return T_(t, e.defaultValue ?? x, l), E_(e, d, t), {
+ return w_(t, e.defaultValue ?? x, l), T_(e, d, t), {
labelProps: h,
inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
@@ -10505,13 +10505,13 @@ function Eee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Dee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function q_(e) {
+var Oee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function K_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var J_ = /* @__PURE__ */ new WeakMap(), Y_ = [];
-function X_(e, t) {
- let n = qf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Dee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var q_ = /* @__PURE__ */ new WeakMap(), J_ = [];
+function Y_(e, t) {
+ let n = qf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Oee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
if (tp()) {
@@ -10527,19 +10527,19 @@ function X_(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (np(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = zg(Kf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Rg(Kf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = J_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), J_.set(e, t + 1));
+ let t = q_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), q_.set(e, t + 1));
};
- Y_.length && Y_[Y_.length - 1].disconnect(), d(i);
+ J_.length && J_[J_.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && K_(e) ? o.add(e) : e instanceof Element && d(e);
if (tp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10556,7 +10556,7 @@ function X_(e, t) {
if (tp()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && q_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => np(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && K_(e) ? o.add(e) : e instanceof Element && d(e);
if (tp()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10583,59 +10583,59 @@ function X_(e, t) {
p.disconnect();
}
};
- return Y_.push(h), () => {
+ return J_.push(h), () => {
if (p.disconnect(), tp()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = J_.get(e);
- t != null && (t === 1 ? (l(e, !1), J_.delete(e)) : J_.set(e, t - 1));
+ let t = q_.get(e);
+ t != null && (t === 1 ? (l(e, !1), q_.delete(e)) : q_.set(e, t - 1));
}
- h === Y_[Y_.length - 1] ? (Y_.pop(), Y_.length && Y_[Y_.length - 1].observe()) : Y_.splice(Y_.indexOf(h), 1);
+ h === J_[J_.length - 1] ? (J_.pop(), J_.length && J_[J_.length - 1].observe()) : J_.splice(J_.indexOf(h), 1);
};
}
-function Oee(e) {
- let t = Y_[Y_.length - 1];
+function kee(e) {
+ let t = J_[J_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var Z_ = /* @__PURE__ */ new WeakMap();
-function kee(e) {
+var X_ = /* @__PURE__ */ new WeakMap();
+function Aee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Aee(e, t) {
- let n = Z_.get(e);
+function jee(e, t) {
+ let n = X_.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${kee(t)}`;
+ return `${n.id}-option-${Aee(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Q_(e) {
+function Z_(e) {
return kp() ? e.altKey : e.ctrlKey;
}
-function $_(e, t) {
+function Q_(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var ev = /* @__PURE__ */ new WeakMap();
-function jee(e) {
+var $_ = /* @__PURE__ */ new WeakMap();
+function Mee(e) {
let t = Rm();
- return ev.set(e, t), t;
+ return $_.set(e, t), t;
}
-function Mee(e) {
- return ev.get(e);
+function Nee(e) {
+ return $_.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var tv = class {
+var ev = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : $_(this.ref, e);
+ let n = e == null ? null : Q_(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -10661,12 +10661,12 @@ var tv = class {
height: e?.clientHeight ?? 0
};
}
-}, nv = class {
+}, tv = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new tv(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new tv(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new ev(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new ev(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -10706,14 +10706,14 @@ var tv = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = $_(this.ref, e);
+ let t = this.getNextKey(e), n = Q_(this.ref, e);
if (t != null) {
- let e = $_(this.ref, t);
+ let e = Q_(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = $_(this.ref, r);
+ let e = Q_(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -10747,7 +10747,7 @@ var tv = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !v_(t)) return this.getFirstKey();
+ if (t && !__(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -10762,7 +10762,7 @@ var tv = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !v_(t)) return this.getLastKey();
+ if (t && !__(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -10785,184 +10785,184 @@ var tv = class {
}
return null;
}
-}, rv = {};
-rv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, nv = {};
+nv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var iv = {};
-iv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var rv = {};
+rv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var av = {};
-av = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var iv = {};
+iv = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var ov = {};
-ov = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var av = {};
+av = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var sv = {};
-sv = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ov = {};
+ov = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var cv = {};
-cv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var sv = {};
+sv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var lv = {};
-lv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var cv = {};
+cv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var uv = {};
-uv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var lv = {};
+lv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var dv = {};
-dv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var uv = {};
+uv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var fv = {};
-fv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var dv = {};
+dv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var pv = {};
-pv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var fv = {};
+fv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var mv = {};
-mv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var pv = {};
+pv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var hv = {};
-hv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var mv = {};
+mv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var gv = {};
-gv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var hv = {};
+hv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var _v = {};
-_v = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var gv = {};
+gv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var vv = {};
-vv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var _v = {};
+_v = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var yv = {};
-yv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var vv = {};
+vv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var bv = {};
-bv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var yv = {};
+yv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var xv = {};
-xv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var bv = {};
+bv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Sv = {};
-Sv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var xv = {};
+xv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Cv = {};
-Cv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Sv = {};
+Sv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var wv = {};
-wv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Cv = {};
+Cv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Tv = {};
-Tv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var wv = {};
+wv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var Ev = {};
-Ev = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Tv = {};
+Tv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var Dv = {};
-Dv = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Ev = {};
+Ev = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var Ov = {};
-Ov = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var Dv = {};
+Dv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var kv = {};
-kv = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Ov = {};
+Ov = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var Av = {};
-Av = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var kv = {};
+kv = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var jv = {};
-jv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Av = {};
+Av = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var Mv = {};
-Mv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var jv = {};
+jv = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var Nv = {};
-Nv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Mv = {};
+Mv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var Pv = {};
-Pv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Nv = {};
+Nv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Fv = {};
-Fv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Pv = {};
+Pv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Iv = {};
-Iv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Fv = {};
+Fv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Lv = {};
-Lv = {
- "ar-AE": rv,
- "bg-BG": iv,
- "cs-CZ": av,
- "da-DK": ov,
- "de-DE": sv,
- "el-GR": cv,
- "en-US": lv,
- "es-ES": uv,
- "et-EE": dv,
- "fi-FI": fv,
- "fr-FR": pv,
- "he-IL": mv,
- "hr-HR": hv,
- "hu-HU": gv,
- "it-IT": _v,
- "ja-JP": vv,
- "ko-KR": yv,
- "lt-LT": bv,
- "lv-LV": xv,
- "nb-NO": Sv,
- "nl-NL": Cv,
- "pl-PL": wv,
- "pt-BR": Tv,
- "pt-PT": Ev,
- "ro-RO": Dv,
- "ru-RU": Ov,
- "sk-SK": kv,
- "sl-SI": Av,
- "sr-SP": jv,
- "sv-SE": Mv,
- "tr-TR": Nv,
- "uk-UA": Pv,
- "zh-CN": Fv,
- "zh-TW": Iv
+var Iv = {};
+Iv = {
+ "ar-AE": nv,
+ "bg-BG": rv,
+ "cs-CZ": iv,
+ "da-DK": av,
+ "de-DE": ov,
+ "el-GR": sv,
+ "en-US": cv,
+ "es-ES": lv,
+ "et-EE": uv,
+ "fi-FI": dv,
+ "fr-FR": fv,
+ "he-IL": pv,
+ "hr-HR": mv,
+ "hu-HU": hv,
+ "it-IT": gv,
+ "ja-JP": _v,
+ "ko-KR": vv,
+ "lt-LT": yv,
+ "lv-LV": bv,
+ "nb-NO": xv,
+ "nl-NL": Sv,
+ "pl-PL": Cv,
+ "pt-BR": wv,
+ "pt-PT": Tv,
+ "ro-RO": Ev,
+ "ru-RU": Dv,
+ "sk-SK": Ov,
+ "sl-SI": kv,
+ "sr-SP": Av,
+ "sv-SE": jv,
+ "tr-TR": Mv,
+ "uk-UA": Nv,
+ "zh-CN": Pv,
+ "zh-TW": Fv
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Nee = 500;
-function Rv(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Nee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = wg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = kg({
+var Pee = 500;
+function Lv(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Pee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Cg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Og({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -10990,12 +10990,12 @@ function Rv(e) {
});
}
});
- return { longPressProps: H(f, w_(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, C_(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Pee(e) {
- let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Rv({
+function Fee(e) {
+ let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Lv({
onLongPressStart() {
n.current = !1;
},
@@ -11038,13 +11038,13 @@ function Pee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var zv = /* @__PURE__ */ new WeakMap();
-function Bv(e) {
+var Rv = /* @__PURE__ */ new WeakMap();
+function zv(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, I.useEffect)(() => !n || r === null ? void 0 : Qf(ip(t.current), "scroll", (e) => {
let n = V(e);
if (!t.current || n instanceof Node && !np(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || zv.get(t.current);
+ let i = r || Rv.get(t.current);
i && i();
}, !0), [
n,
@@ -11054,10 +11054,10 @@ function Bv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Fee(e, t, n) {
+function Iee(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, I.useEffect)(() => {
- n && n.current && zv.set(n.current, t.close);
+ n && n.current && Rv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -11074,11 +11074,11 @@ function Fee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Iee(e) {
+function Lee(e) {
return e && e.__esModule ? e.default : e;
}
-function Vv(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Rm(), { triggerProps: s, overlayProps: c } = Fee({ type: r }, t, n), l = (e, n, r = "first") => {
+function Bv(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Rm(), { triggerProps: s, overlayProps: c } = Iee({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = ah({
@@ -11093,7 +11093,7 @@ function Vv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = mg(Iee(Lv), "@react-aria/menu"), { longPressProps: f } = Rv({
+ }), d = pg(Lee(Iv), "@react-aria/menu"), { longPressProps: f } = Lv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -11112,7 +11112,7 @@ function Vv(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = Pee({ onContextMenu(e) {
+ let { contextMenuProps: m } = Fee({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -11157,8 +11157,8 @@ function Vv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var Hv = 1e3;
-function Uv(e) {
+var Vv = 1e3;
+function Hv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, I.useRef)({
search: "",
timeout: void 0
@@ -11177,11 +11177,11 @@ function Uv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hv);
+ }, Vv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Wv(e.key);
+ let a = Uv(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !np(e.currentTarget, V(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -11193,17 +11193,17 @@ function Uv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, Hv);
+ }, Vv);
}
} : void 0
} };
}
-function Wv(e) {
+function Uv(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Gv(e, t) {
+function Wv(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null);
gp(() => (n.current = !0, () => {
n.current = !1;
@@ -11213,14 +11213,14 @@ function Gv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Kv(e) {
+function Gv(e) {
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = ag(), _ = Lp(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Q_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !Z_(e)) {
(0, yh.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = $_(r, n), o = t.getItemProps(n);
+ let a = Q_(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -11232,7 +11232,7 @@ function Kv(e) {
t.extendSelection(n);
return;
}
- if (l && !Q_(e)) {
+ if (l && !Z_(e)) {
t.replaceSelection(n);
return;
}
@@ -11332,7 +11332,7 @@ function Kv(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = l_(r.current, { tabbable: !0 }), t, n;
+ let e = c_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -11395,8 +11395,8 @@ function Kv(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = ee.current.top, p.current.scrollLeft = ee.current.left);
if (t.focusedKey != null && p.current) {
- let e = $_(r, t.focusedKey);
- e instanceof HTMLElement && (!ap(e) && !d && Vf(e), (i === "keyboard" || h && i === "virtual") && S_(e, { containingElement: r.current }));
+ let e = Q_(r, t.focusedKey);
+ e instanceof HTMLElement && (!ap(e) && !d && Vf(e), (i === "keyboard" || h && i === "virtual") && x_(e, { containingElement: r.current }));
}
}, P = (e) => {
np(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
@@ -11406,14 +11406,14 @@ function Kv(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (F.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- Gv(() => {
+ Wv(() => {
if (F.current) {
if (ne == null) {
let e = rp();
zh(r.current), Vh(e, null), t.collection.size > 0 && (F.current = !1);
} else t.setFocusedKey(ne), F.current = !1;
}
- }, [ne, t.collection.size]), Gv(() => {
+ }, [ne, t.collection.size]), Wv(() => {
t.collection.size > 0 && (F.current = !1);
}, [t.focusedKey]), Jh(r, Lh, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -11436,10 +11436,10 @@ function Kv(e) {
let L = (0, I.useRef)(t.focusedKey), ae = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== L.current || ie.current) && p.current && r.current) {
- let e = bm(), n = $_(r, t.focusedKey);
+ let e = bm(), n = Q_(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (x_(p.current, n), e !== "virtual" && S_(n, { containingElement: r.current }));
+ p.current && (b_(p.current, n), e !== "virtual" && x_(n, { containingElement: r.current }));
}));
}
!d && t.isFocused && t.focusedKey == null && L.current != null && r.current && jm(r.current), L.current = t.focusedKey, ie.current = !1;
@@ -11455,14 +11455,14 @@ function Kv(e) {
onMouseDown(e) {
p.current === V(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = Uv({
+ }, { typeSelectProps: se } = Hv({
keyboardDelegate: n,
selectionManager: t
});
u || (oe = H(se, oe));
let ce;
d || (ce = t.focusedKey == null ? 0 : -1);
- let le = jee(t.collection);
+ let le = Mee(t.collection);
return { collectionProps: H(oe, {
tabIndex: ce,
"data-collection": le
@@ -11470,13 +11470,13 @@ function Kv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function qv(e, t) {
+function Kv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Jv(e) {
- return Yv(e, 0);
+function qv(e) {
+ return Jv(e, 0);
}
-function Yv(e, t) {
+function Jv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -11484,45 +11484,45 @@ function Yv(e, t) {
n++;
}
}
-function Xv(e) {
+function Yv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function Zv(e, t, n) {
+function Xv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Qv(e, t), t], i = [...Qv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Zv(e, t), t], i = [...Zv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function Qv(e, t) {
+function Zv(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var $v = /* @__PURE__ */ new WeakMap();
-function ey(e) {
- let t = $v.get(e);
+var Qv = /* @__PURE__ */ new WeakMap();
+function $v(e) {
+ let t = Qv.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(qv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Kv(i, e)) : i.type === "item" && n++;
};
- return r(e), $v.set(e, n), n;
+ return r(e), Qv.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ty = /* @__PURE__ */ new Map();
-function ny(e) {
+var ey = /* @__PURE__ */ new Map();
+function ty(e) {
let { locale: t } = ag(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ty.has(n)) return ty.get(n);
+ if (ey.has(n)) return ey.get(n);
let r = new Intl.Collator(t, e);
- return ty.set(n, r), r;
+ return ey.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Lee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, I.useRef)(!1), i = (0, I.useContext)(Cg), a = H(i || {}, {
+var Ree = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, I.useRef)(!1), i = (0, I.useContext)(Sg), a = H(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
@@ -11530,46 +11530,46 @@ var Lee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
});
return a.ref = oh(n || i?.ref), sh(i, a.ref), (0, I.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ I.createElement(Cg.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ I.createElement(Sg.Provider, { value: a }, e);
});
-function Ree({ children: e }) {
+function zee({ children: e }) {
let t = (0, I.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ I.createElement(Cg.Provider, { value: t }, e);
+ return /*#__PURE__*/ I.createElement(Sg.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ry = /*#__PURE__*/ (0, I.createContext)({});
-function iy(e) {
- let { getContainer: t } = e, { getContainer: n } = ay();
- return /*#__PURE__*/ I.createElement(ry.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var ny = /*#__PURE__*/ (0, I.createContext)({});
+function ry(e) {
+ let { getContainer: t } = e, { getContainer: n } = iy();
+ return /*#__PURE__*/ I.createElement(ny.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function ay() {
- return (0, I.useContext)(ry) ?? {};
+function iy() {
+ return (0, I.useContext)(ny) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var oy = /*#__PURE__*/ I.createContext(null);
-function sy(e) {
+var ay = /*#__PURE__*/ I.createContext(null);
+function oy(e) {
let t = nm(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, I.useState)(!1), o = (0, I.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ay();
+ }), [i, a]), { getContainer: s } = iy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Ug, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Hg, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ I.createElement(oy.Provider, { value: o }, /*#__PURE__*/ I.createElement(Ree, null, /*#__PURE__*/ I.createElement(ch.Provider, { value: null }, c))), /*#__PURE__*/ yh.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ I.createElement(ay.Provider, { value: o }, /*#__PURE__*/ I.createElement(zee, null, /*#__PURE__*/ I.createElement(ch.Provider, { value: null }, c))), /*#__PURE__*/ yh.createPortal(c, n);
}
-function cy() {
- let e = (0, I.useContext)(oy)?.setContain;
+function sy() {
+ let e = (0, I.useContext)(ay)?.setContain;
gp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function zee(e, t) {
+function Bee(e, t) {
let { role: n = "dialog" } = e, r = Bm();
r = e["aria-label"] ? void 0 : r;
let i = Bm();
@@ -11585,11 +11585,11 @@ function zee(e, t) {
clearTimeout(e);
};
}
- }, [t]), cy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
+ }, [t]), sy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...gg(e, { labelable: !0 }),
+ ...hg(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -11604,7 +11604,7 @@ function zee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function ly(e = {}) {
+function cy(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, I.useRef)({
isFocused: !1,
isFocusVisible: t || ym()
@@ -11620,7 +11620,7 @@ function ly(e = {}) {
let { focusProps: d } = Gm({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = B_({
+ }), { focusWithinProps: f } = z_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -11632,36 +11632,36 @@ function ly(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Bee(e = {}) {
+function Vee(e = {}) {
let { locale: t } = ag();
return (0, I.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var uy = !1, dy = 0;
-function fy() {
- uy = !0, setTimeout(() => {
- uy = !1;
+var ly = !1, uy = 0;
+function dy() {
+ ly = !0, setTimeout(() => {
+ ly = !1;
}, 500);
}
-function py(e) {
- e.pointerType === "touch" && fy();
+function fy(e) {
+ e.pointerType === "touch" && dy();
}
-function my() {
+function py() {
let e = Kf(null);
- if (e !== void 0) return dy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", py), dy++, () => {
- dy--, !(dy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", py);
+ if (e !== void 0) return uy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", fy), uy++, () => {
+ uy--, !(uy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", fy);
};
}
-function hy(e) {
+function my(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, I.useState)(!1), s = (0, I.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, I.useEffect)(my, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = wg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {
+ (0, I.useEffect)(py, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Cg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !np(e.currentTarget, V(e))) return;
s.isHovered = !0;
@@ -11682,7 +11682,7 @@ function hy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- uy && t.pointerType === "mouse" || e(t, t.pointerType);
+ ly && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && np(e.currentTarget, V(e)) && a(e, e.pointerType);
}), {
@@ -11707,12 +11707,12 @@ function hy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function gy(e) {
+function hy(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, I.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = qh((e) => {
- n && _y(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && gy(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = qh((e) => {
n && n(e);
});
@@ -11722,7 +11722,7 @@ function gy(e) {
let n = t.current, i = Kf(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && _y(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && gy(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -11730,7 +11730,7 @@ function gy(e) {
}
}, [t, r]);
}
-function _y(e, t) {
+function gy(e, t) {
if (e.button > 0) return !1;
let n = V(e);
if (n) {
@@ -11741,8 +11741,8 @@ function _y(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var vy = {};
-vy = {
+var _y = {};
+_y = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -11756,8 +11756,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var yy = {};
-yy = {
+var vy = {};
+vy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -11771,8 +11771,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var by = {};
-by = {
+var yy = {};
+yy = {
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",
@@ -11786,8 +11786,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var xy = {};
-xy = {
+var by = {};
+by = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -11801,8 +11801,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Sy = {};
-Sy = {
+var xy = {};
+xy = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -11816,8 +11816,8 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var Cy = {};
-Cy = {
+var Sy = {};
+Sy = {
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: "Επιλογή",
@@ -11831,8 +11831,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var wy = {};
-wy = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -11846,8 +11846,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var Ty = {};
-Ty = {
+var wy = {};
+wy = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -11861,8 +11861,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Ey = {};
-Ey = {
+var Ty = {};
+Ty = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -11876,8 +11876,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Dy = {};
-Dy = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -11891,8 +11891,8 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Oy = {};
-Oy = {
+var Dy = {};
+Dy = {
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",
@@ -11906,8 +11906,8 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var ky = {};
-ky = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -11921,8 +11921,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Ay = {};
-Ay = {
+var ky = {};
+ky = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -11936,8 +11936,8 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var jy = {};
-jy = {
+var Ay = {};
+Ay = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -11951,8 +11951,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var My = {};
-My = {
+var jy = {};
+jy = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -11966,8 +11966,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Ny = {};
-Ny = {
+var My = {};
+My = {
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: "選択",
@@ -11981,8 +11981,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Py = {};
-Py = {
+var Ny = {};
+Ny = {
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: "선택",
@@ -11996,8 +11996,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Fy = {};
-Fy = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -12011,8 +12011,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Iy = {};
-Iy = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -12026,8 +12026,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Ly = {};
-Ly = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -12041,8 +12041,8 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Ry = {};
-Ry = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -12056,8 +12056,8 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var zy = {};
-zy = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -12071,8 +12071,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var By = {};
-By = {
+var zy = {};
+zy = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -12086,8 +12086,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Vy = {};
-Vy = {
+var By = {};
+By = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -12101,8 +12101,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Hy = {};
-Hy = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -12116,8 +12116,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Uy = {};
-Uy = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -12131,8 +12131,8 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Wy = {};
-Wy = {
+var Uy = {};
+Uy = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -12146,8 +12146,8 @@ Wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Gy = {};
-Gy = {
+var Wy = {};
+Wy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -12161,8 +12161,8 @@ Gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Ky = {};
-Ky = {
+var Gy = {};
+Gy = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -12176,8 +12176,8 @@ Ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var qy = {};
-qy = {
+var Ky = {};
+Ky = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -12191,8 +12191,8 @@ qy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Jy = {};
-Jy = {
+var qy = {};
+qy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -12206,8 +12206,8 @@ Jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Yy = {};
-Yy = {
+var Jy = {};
+Jy = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -12221,8 +12221,8 @@ Yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Xy = {};
-Xy = {
+var Yy = {};
+Yy = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -12236,8 +12236,8 @@ Xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Zy = {};
-Zy = {
+var Xy = {};
+Xy = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -12251,55 +12251,55 @@ Zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Qy = {};
-Qy = {
- "ar-AE": vy,
- "bg-BG": yy,
- "cs-CZ": by,
- "da-DK": xy,
- "de-DE": Sy,
- "el-GR": Cy,
- "en-US": wy,
- "es-ES": Ty,
- "et-EE": Ey,
- "fi-FI": Dy,
- "fr-FR": Oy,
- "he-IL": ky,
- "hr-HR": Ay,
- "hu-HU": jy,
- "it-IT": My,
- "ja-JP": Ny,
- "ko-KR": Py,
- "lt-LT": Fy,
- "lv-LV": Iy,
- "nb-NO": Ly,
- "nl-NL": Ry,
- "pl-PL": zy,
- "pt-BR": By,
- "pt-PT": Vy,
- "ro-RO": Hy,
- "ru-RU": Uy,
- "sk-SK": Wy,
- "sl-SI": Gy,
- "sr-SP": Ky,
- "sv-SE": qy,
- "tr-TR": Jy,
- "uk-UA": Yy,
- "zh-CN": Xy,
- "zh-TW": Zy
+var Zy = {};
+Zy = {
+ "ar-AE": _y,
+ "bg-BG": vy,
+ "cs-CZ": yy,
+ "da-DK": by,
+ "de-DE": xy,
+ "el-GR": Sy,
+ "en-US": Cy,
+ "es-ES": wy,
+ "et-EE": Ty,
+ "fi-FI": Ey,
+ "fr-FR": Dy,
+ "he-IL": Oy,
+ "hr-HR": ky,
+ "hu-HU": Ay,
+ "it-IT": jy,
+ "ja-JP": My,
+ "ko-KR": Ny,
+ "lt-LT": Py,
+ "lv-LV": Fy,
+ "nb-NO": Iy,
+ "nl-NL": Ly,
+ "pl-PL": Ry,
+ "pt-BR": zy,
+ "pt-PT": By,
+ "ro-RO": Vy,
+ "ru-RU": Hy,
+ "sk-SK": Uy,
+ "sl-SI": Wy,
+ "sr-SP": Gy,
+ "sv-SE": Ky,
+ "tr-TR": qy,
+ "uk-UA": Jy,
+ "zh-CN": Yy,
+ "zh-TW": Xy
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Vee(e) {
+function Hee(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 = mg(Vee(Qy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {
+function Uee(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = pg(Hee(Zy), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = $y(i, a.current), o = $y(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Qy(i, a.current), o = Qy(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)) {
@@ -12319,7 +12319,7 @@ function Hee(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && h_(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && m_(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -12330,7 +12330,7 @@ function Hee(e, t) {
n,
r
]);
- __(() => {
+ g_(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -12338,7 +12338,7 @@ function Hee(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function $y(e, t) {
+function Qy(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);
@@ -12346,13 +12346,13 @@ function $y(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function eb(e, t) {
+function $y(e, t) {
let n = t?.isDisabled, [r, i] = (0, I.useState)(!1);
return gp(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = l_(e.current, { tabbable: !0 });
+ let t = c_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -12371,12 +12371,12 @@ function eb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Uee(e) {
+function Wee(e) {
return e && e.__esModule ? e.default : e;
}
-function Wee(e) {
- let t = mg(Uee(Qy), "@react-aria/grid"), n = Sm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return w_((0, I.useMemo)(() => {
+function Gee(e) {
+ let t = pg(Wee(Zy), "@react-aria/grid"), n = Sm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return C_((0, I.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;
}, [
@@ -12389,11 +12389,11 @@ function Wee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function tb(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ny({
+function eb(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ty({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new nv({
+ }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new tv({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -12410,7 +12410,7 @@ function tb(e) {
c,
l,
s
- ]), { collectionProps: d } = Kv({
+ ]), { collectionProps: d } = Gv({
...e,
ref: i,
selectionManager: t,
@@ -12420,11 +12420,11 @@ function tb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function nb(e) {
+function tb(e) {
let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = Lp();
t = Rm(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Q_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Z_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -12467,22 +12467,22 @@ function nb(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || ib(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || rb(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !rb(e.key)) return;
+ if (e.pointerType === "keyboard" && !nb(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || ib(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || rb(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && rb(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && nb(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Mee(n.collection);
+ let A = Nee(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = H(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -12498,9 +12498,9 @@ function nb(e) {
"onPressUp",
"onClick"
]) D[e] && (k[e] = Mm(k[e], D[e]));
- let { pressProps: j, isPressed: M } = kg(k), N = x ? (e) => {
+ let { pressProps: j, isPressed: M } = Og(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: ee } = Rv({
+ } : void 0, { longPressProps: ee } = Lv({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -12549,22 +12549,22 @@ function nb(e) {
hasAction: S
};
}
-function rb(e) {
+function nb(e) {
return e === "Enter";
}
-function ib(e) {
+function rb(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Gee(e) {
+function Kee(e) {
return e && e.__esModule ? e.default : e;
}
-function Kee(e, t) {
+function qee(e, t) {
let { key: n } = e, r = t.selectionManager, i = Rm(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": mg(Gee(Qy), "@react-aria/grid").format("select"),
+ "aria-label": pg(Kee(Zy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -12572,22 +12572,22 @@ function Kee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function qee(e, t, n) {
- let r = gg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Jee(e, t, n) {
+ let r = hg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = tb({
+ let { listProps: s } = eb({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = B_({
+ }), { focusWithinProps: c } = z_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Rm(e.id);
- Z_.set(t, {
+ X_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -12597,7 +12597,7 @@ function qee(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = R_({
+ let { labelProps: u, fieldProps: d } = L_({
...e,
id: l,
labelElementType: "span"
@@ -12613,7 +12613,7 @@ function qee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Jee(e) {
+function Yee(e) {
let { heading: t, "aria-label": n } = e, r = Rm();
return {
itemProps: { role: "presentation" },
@@ -12633,8 +12633,8 @@ function Jee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Yee(e, t, n) {
- let { key: r } = e, i = Z_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Bm(), f = Bm(), p = {
+function Xee(e, t, n) {
+ let { key: r } = e, i = X_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Bm(), f = Bm(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -12644,9 +12644,9 @@ function Yee(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ey(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = $v(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Aee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = nb({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = jee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = tb({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -12659,12 +12659,12 @@ function Yee(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = hy({
+ }), { hoverProps: S } = my({
isDisabled: a || !c,
onHoverStart() {
ym() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = gg(m?.props);
+ }), C = hg(m?.props);
delete C.id;
let w = Up(m?.props);
return {
@@ -12686,13 +12686,13 @@ function Yee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var ab = /* @__PURE__ */ new WeakMap();
+var ib = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function ob(e, t, n) {
+function ab(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = gg(e, { labelable: !0 }), { listProps: c } = tb({
+ let s = hg(e, { labelable: !0 }), { listProps: c } = eb({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -12701,7 +12701,7 @@ function ob(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return ab.set(t, {
+ return ib.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -12718,8 +12718,8 @@ function ob(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function sb(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = ab.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Lp(), M = () => {
+function ob(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = ib.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Lp(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -12743,7 +12743,7 @@ function sb(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (F["aria-checked"] = D), s) {
let e = Number(k?.index);
- F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = ey(t.collection);
+ F["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, F["aria-setsize"] = $v(t.collection);
}
let ne = (0, I.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
@@ -12753,7 +12753,7 @@ function sb(e, t, n) {
m?.(e), M(), Wp(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: oe, isFocused: se } = nb({
+ }, { itemProps: oe, isFocused: se } = tb({
id: r,
selectionManager: C,
key: i,
@@ -12762,14 +12762,14 @@ function sb(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = kg({
+ }), { pressProps: ce, isPressed: le } = Og({
onPressStart: l,
onPress: d,
onPressUp: L,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = hy({
+ }), { hoverProps: ue } = my({
isDisabled: E,
onHoverStart(e) {
!ym() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -12806,7 +12806,7 @@ function sb(e, t, n) {
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), de = gg(k?.props);
+ }, n), de = hg(k?.props);
delete de.id;
let fe = Up(k?.props);
return {
@@ -12831,7 +12831,7 @@ function sb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function cb(e) {
+function sb(e) {
let { heading: t, "aria-label": n } = e, r = Rm();
return {
itemProps: { role: "presentation" },
@@ -12848,15 +12848,15 @@ function cb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function lb() {
+function cb() {
return window.ResizeObserver !== void 0;
}
-function ub(e) {
+function lb(e) {
let { ref: t, box: n, onResize: r } = e, i = qh(r);
(0, I.useEffect)(() => {
let e = t?.current;
if (e) {
- if (lb()) {
+ if (cb()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -12872,189 +12872,189 @@ function ub(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var db = {};
-db = { dismiss: "تجاهل" };
+var ub = {};
+ub = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var fb = {};
-fb = { dismiss: "Отхвърляне" };
+var db = {};
+db = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var pb = {};
-pb = { dismiss: "Odstranit" };
+var fb = {};
+fb = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var mb = {};
-mb = { dismiss: "Luk" };
+var pb = {};
+pb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var hb = {};
-hb = { dismiss: "Schließen" };
+var mb = {};
+mb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var gb = {};
-gb = { dismiss: "Απόρριψη" };
+var hb = {};
+hb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var _b = {};
-_b = { dismiss: "Dismiss" };
+var gb = {};
+gb = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var vb = {};
-vb = { dismiss: "Descartar" };
+var _b = {};
+_b = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var yb = {};
-yb = { dismiss: "Lõpeta" };
+var vb = {};
+vb = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var bb = {};
-bb = { dismiss: "Hylkää" };
+var yb = {};
+yb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var xb = {};
-xb = { dismiss: "Rejeter" };
+var bb = {};
+bb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Sb = {};
-Sb = { dismiss: "התעלם" };
+var xb = {};
+xb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Cb = {};
-Cb = { dismiss: "Odbaci" };
+var Sb = {};
+Sb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var wb = {};
-wb = { dismiss: "Elutasítás" };
+var Cb = {};
+Cb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Tb = {};
-Tb = { dismiss: "Ignora" };
+var wb = {};
+wb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Eb = {};
-Eb = { dismiss: "閉じる" };
+var Tb = {};
+Tb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Db = {};
-Db = { dismiss: "무시" };
+var Eb = {};
+Eb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Ob = {};
-Ob = { dismiss: "Atmesti" };
+var Db = {};
+Db = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var kb = {};
-kb = { dismiss: "Nerādīt" };
+var Ob = {};
+Ob = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Ab = {};
-Ab = { dismiss: "Lukk" };
+var kb = {};
+kb = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var jb = {};
-jb = { dismiss: "Negeren" };
+var Ab = {};
+Ab = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Mb = {};
-Mb = { dismiss: "Zignoruj" };
+var jb = {};
+jb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Nb = {};
-Nb = { dismiss: "Descartar" };
+var Mb = {};
+Mb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Pb = {};
-Pb = { dismiss: "Dispensar" };
+var Nb = {};
+Nb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Fb = {};
-Fb = { dismiss: "Revocare" };
+var Pb = {};
+Pb = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Ib = {};
-Ib = { dismiss: "Пропустить" };
+var Fb = {};
+Fb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Lb = {};
-Lb = { dismiss: "Zrušiť" };
+var Ib = {};
+Ib = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Rb = {};
-Rb = { dismiss: "Opusti" };
+var Lb = {};
+Lb = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var zb = {};
-zb = { dismiss: "Odbaci" };
+var Rb = {};
+Rb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Bb = {};
-Bb = { dismiss: "Avvisa" };
+var zb = {};
+zb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Vb = {};
-Vb = { dismiss: "Kapat" };
+var Bb = {};
+Bb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Hb = {};
-Hb = { dismiss: "Скасувати" };
+var Vb = {};
+Vb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Ub = {};
-Ub = { dismiss: "取消" };
+var Hb = {};
+Hb = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Wb = {};
-Wb = { dismiss: "關閉" };
+var Ub = {};
+Ub = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Gb = {};
-Gb = {
- "ar-AE": db,
- "bg-BG": fb,
- "cs-CZ": pb,
- "da-DK": mb,
- "de-DE": hb,
- "el-GR": gb,
- "en-US": _b,
- "es-ES": vb,
- "et-EE": yb,
- "fi-FI": bb,
- "fr-FR": xb,
- "he-IL": Sb,
- "hr-HR": Cb,
- "hu-HU": wb,
- "it-IT": Tb,
- "ja-JP": Eb,
- "ko-KR": Db,
- "lt-LT": Ob,
- "lv-LV": kb,
- "nb-NO": Ab,
- "nl-NL": jb,
- "pl-PL": Mb,
- "pt-BR": Nb,
- "pt-PT": Pb,
- "ro-RO": Fb,
- "ru-RU": Ib,
- "sk-SK": Lb,
- "sl-SI": Rb,
- "sr-SP": zb,
- "sv-SE": Bb,
- "tr-TR": Vb,
- "uk-UA": Hb,
- "zh-CN": Ub,
- "zh-TW": Wb
+var Wb = {};
+Wb = {
+ "ar-AE": ub,
+ "bg-BG": db,
+ "cs-CZ": fb,
+ "da-DK": pb,
+ "de-DE": mb,
+ "el-GR": hb,
+ "en-US": gb,
+ "es-ES": _b,
+ "et-EE": vb,
+ "fi-FI": yb,
+ "fr-FR": bb,
+ "he-IL": xb,
+ "hr-HR": Sb,
+ "hu-HU": Cb,
+ "it-IT": wb,
+ "ja-JP": Tb,
+ "ko-KR": Eb,
+ "lt-LT": Db,
+ "lv-LV": Ob,
+ "nb-NO": kb,
+ "nl-NL": Ab,
+ "pl-PL": jb,
+ "pt-BR": Mb,
+ "pt-PT": Nb,
+ "ro-RO": Pb,
+ "ru-RU": Fb,
+ "sk-SK": Ib,
+ "sl-SI": Lb,
+ "sr-SP": Rb,
+ "sv-SE": zb,
+ "tr-TR": Bb,
+ "uk-UA": Vb,
+ "zh-CN": Hb,
+ "zh-TW": Ub
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Kb(e) {
+function Zee(e) {
return e && e.__esModule ? e.default : e;
}
-function qb(e) {
- let { onDismiss: t, ...n } = e, r = Yh(n, mg(Kb(Gb), "@react-aria/overlays").format("dismiss")), i = () => {
+function Gb(e) {
+ let { onDismiss: t, ...n } = e, r = Yh(n, pg(Zee(Wb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ I.createElement(K_, null, /*#__PURE__*/ I.createElement("button", {
+ return /*#__PURE__*/ I.createElement(G_, null, /*#__PURE__*/ I.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -13066,22 +13066,22 @@ function qb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Jb = [];
-function Yb(e, t) {
+var Kb = [];
+function qb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, I.useRef)(void 0);
(0, I.useEffect)(() => {
- if (i && !Jb.includes(t)) return Jb.push(t), () => {
- let e = Jb.indexOf(t);
- e >= 0 && Jb.splice(e, 1);
+ if (i && !Kb.includes(t)) return Kb.push(t), () => {
+ let e = Kb.indexOf(t);
+ e >= 0 && Kb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Jb[Jb.length - 1] === t && n && n();
+ Kb[Kb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Jb[Jb.length - 1];
+ let n = Kb[Kb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Jb[Jb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Kb[Kb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = ah({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -13089,15 +13089,15 @@ function Yb(e, t) {
}
return !1;
} } });
- gy({
+ hy({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = B_({
+ let { focusWithinProps: p } = z_({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || $g(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || Qg(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -13110,26 +13110,26 @@ function Yb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Xb = typeof document < "u" && window.visualViewport, Zb = 0, Qb;
-function $b(e = {}) {
+var Jb = typeof document < "u" && window.visualViewport, Yb = 0, Xb;
+function Zb(e = {}) {
let { isDisabled: t } = e;
gp(() => {
- if (!t) return Zb++, Zb === 1 && (Qb = Op() && Ap() ? Zee() : Xee()), () => {
- Zb--, Zb === 0 && Qb();
+ if (!t) return Yb++, Yb === 1 && (Xb = Op() && Ap() ? $ee() : Qee()), () => {
+ Yb--, Yb === 0 && Xb();
};
}, [t]);
}
-function Xee() {
+function Qee() {
let e = window.innerWidth - document.documentElement.clientWidth;
return Mm(e > 0 && ("scrollbarGutter" in document.documentElement.style ? $f(document.documentElement, "scrollbar-gutter", "stable") : $f(document.documentElement, "padding-right", `${e}px`)), $f(document.documentElement, "overflow", "hidden"));
}
-function Zee() {
+function $ee() {
let e = $f(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
- t = v_(r) ? r : y_(r, !0), n = !1;
+ t = __(r) ? r : v_(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Sg();
+ }, i = document.createElement("style"), a = xg();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -13141,7 +13141,7 @@ function Zee() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && Gh(n) ? (n.focus({ preventScroll: !0 }), ex(n, Gh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Gh(n) ? (n.focus({ preventScroll: !0 }), Qb(n, Gh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -13151,7 +13151,7 @@ function Zee() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && ex(this, n);
+ }), (!e || !e.preventScroll) && Qb(this, n);
}
});
let l = Mm(Qf(document, "touchstart", r, {
@@ -13169,18 +13169,18 @@ function Zee() {
});
};
}
-function ex(e, t) {
- t || !Xb ? tx(e) : Xb.addEventListener("resize", () => tx(e), { once: !0 });
+function Qb(e, t) {
+ t || !Jb ? $b(e) : Jb.addEventListener("resize", () => $b(e), { once: !0 });
}
-function tx(e) {
+function $b(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = y_(n);
+ let e = v_(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Xb && (n = Math.min(n, Xb.offsetTop + Xb.height));
+ Jb && (n = Math.min(n, Jb.offsetTop + Jb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -13193,14 +13193,14 @@ function tx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Qee(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Yb({
+function ete(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = qb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return $b({ isDisabled: !t.isOpen }), cy(), (0, I.useEffect)(() => {
- if (t.isOpen && n.current) return X_([n.current], { shouldUseInert: !0 });
+ return Zb({ isDisabled: !t.isOpen }), sy(), (0, I.useEffect)(() => {
+ if (t.isOpen && n.current) return Y_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -13208,32 +13208,32 @@ function Qee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var nx = {
+var ex = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, rx = {
+}, tx = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, $ee = {
+}, tte = {
top: "left",
left: "top"
-}, ix = {
+}, nx = {
top: "height",
left: "width"
-}, ax = {
+}, rx = {
width: "totalWidth",
height: "totalHeight"
-}, ox = {}, ete = () => typeof document < "u" ? window.visualViewport : null;
-function sx(e, t) {
+}, ix = {}, nte = () => typeof document < "u" ? window.visualViewport : null;
+function ax(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = px(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = dx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return Ap() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -13244,7 +13244,7 @@ function sx(e, t) {
left: s
};
}
-function tte(e) {
+function rte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -13252,11 +13252,11 @@ function tte(e) {
height: e.scrollHeight
};
}
-function cx(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[ix[e]], l = o[e] + r.scroll[nx[e]] + a, u = o[e] + r.scroll[nx[e]] + c - a, d = t - s + r.scroll[nx[e]] + o[e] - r[nx[e]], f = t - s + n + r.scroll[nx[e]] + o[e] - r[nx[e]];
+function ox(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[nx[e]], l = o[e] + r.scroll[ex[e]] + a, u = o[e] + r.scroll[ex[e]] + c - a, d = t - s + r.scroll[ex[e]] + o[e] - r[ex[e]], f = t - s + n + r.scroll[ex[e]] + o[e] - r[ex[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function nte(e) {
+function ite(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -13265,55 +13265,55 @@ function nte(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function lx(e) {
- if (ox[e]) return ox[e];
- let [t, n] = e.split(" "), r = nx[t] || "right", i = $ee[r];
- nx[n] || (n = "center");
- let a = ix[r], o = ix[i];
- return ox[e] = {
+function sx(e) {
+ if (ix[e]) return ix[e];
+ let [t, n] = e.split(" "), r = ex[t] || "right", i = tte[r];
+ ex[n] || (n = "center");
+ let a = nx[r], o = nx[i];
+ return ix[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, ox[e];
+ }, ix[e];
}
-function ux(e, t, n, r, i, a, o, s, c, l, u) {
+function cx(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = U_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[ax[h]];
- _[rx[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = H_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[rx[h]];
+ _[tx[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function rte(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[ax.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function ate(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[rx.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function dx(e, t, n, r, i, a, o, s) {
+function lx(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[rx[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[rx[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[tx[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[tx[l]] - i);
}
-function ite(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = lx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ux(t, s, n, v, u, d, l, f, m, h, c), T = u, E = dx(s, l, t, i, a + u, v, c, g);
+function ote(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = sx(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = cx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = lx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = lx(`${rx[S]} ${C}`), r = ux(t, s, n, e, u, d, l, f, m, h, c);
- dx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = sx(`${tx[S]} ${C}`), r = cx(t, s, n, e, u, d, l, f, m, h, c);
+ lx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = cx(b, w[b], n[x], s, c, a, l);
+ let O = ox(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = rte(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = ux(t, s, n, v, T, d, l, f, m, h, c), O = cx(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[nx[b]], M = j + .5 * t[x], N = m / 2 + h, ee = nx[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
- A[b] = U_(U_(M, t[b] + m / 2 - (w[b] + i[nx[b]]), t[b] + t[x] - m / 2 - (w[b] + i[nx[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = ate(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = cx(t, s, n, v, T, d, l, f, m, h, c), O = ox(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[ex[b]], M = j + .5 * t[x], N = m / 2 + h, ee = ex[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - ee - m / 2 - h;
+ A[b] = H_(H_(M, t[b] + m / 2 - (w[b] + i[ex[b]]), t[b] + t[x] - m / 2 - (w[b] + i[ex[b]])), N, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, F = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -13327,17 +13327,17 @@ function ite(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: F
};
}
-function ate(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = ete(), h = r instanceof HTMLElement ? ote(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? px(n, !1, p) : mx(n, h, !1, p);
+function ste(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = nte(), h = r instanceof HTMLElement ? cte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? dx(n, !1, p) : fx(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = px(r, !0), x = nte(r);
+ let b = dx(r, !0), x = ite(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = tte(i), C = sx(s, m), w = sx(h, m), T;
+ let S = rte(i), C = ax(s, m), w = ax(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = fx(h, !1);
+ let e = ux(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -13349,11 +13349,11 @@ function ate(e) {
left: 0,
width: 0,
height: 0
- } : mx(s, h, !1);
+ } : fx(s, h, !1);
let E = np(s, h);
- return ite(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return ote(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function fx(e, t) {
+function ux(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -13362,8 +13362,8 @@ function fx(e, t) {
height: a
};
}
-function px(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || fx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function dx(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || ux(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -13371,29 +13371,29 @@ function px(e, t, n) {
height: o
};
}
-function mx(e, t, n, r) {
+function fx(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || fx(e, n);
+ if (i.position === "fixed") a = r || ux(e, n);
else {
- a = px(e, n, r);
- let i = px(t, n), o = window.getComputedStyle(t);
+ a = dx(e, n, r);
+ let i = dx(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function ote(e) {
+function cte(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !hx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !hx(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !px(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !px(t);) t = t.parentElement;
return t || document.documentElement;
}
-function hx(e) {
+function px(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var gx = typeof document < "u" ? window.visualViewport : null;
-function ste(e) {
+var mx = typeof document < "u" ? window.visualViewport : null;
+function lte(e) {
let { direction: t } = ag(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, I.useState)(null), x = [
p,
s,
@@ -13411,12 +13411,12 @@ function ste(e) {
g,
_,
n
- ], S = (0, I.useRef)(gx?.scale);
+ ], S = (0, I.useRef)(mx?.scale);
(0, I.useEffect)(() => {
- m && (S.current = gx?.scale);
+ m && (S.current = mx?.scale);
}, [m]);
let C = (0, I.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || gx?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || mx?.scale !== S.current) return;
let e = null;
if (o.current && ap(o.current)) {
let t = rp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -13427,8 +13427,8 @@ function ste(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = ate({
- placement: lte(s, t),
+ let y = ste({
+ placement: dte(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -13438,7 +13438,7 @@ function ste(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? fx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? ux(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -13451,10 +13451,10 @@ function ste(e) {
}
b(y);
}, x);
- gp(C, x), cte(C), ub({
+ gp(C, x), ute(C), lb({
ref: i,
onResize: C
- }), ub({
+ }), lb({
ref: r,
onResize: C
});
@@ -13467,16 +13467,16 @@ function ste(e) {
}, n = () => {
w.current && t();
};
- gx?.addEventListener("resize", t), gx?.addEventListener("scroll", n);
+ mx?.addEventListener("resize", t), mx?.addEventListener("scroll", n);
let r = Qf(ip(window), "scroll", n);
return () => {
- gx?.removeEventListener("resize", t), gx?.removeEventListener("scroll", n), r();
+ mx?.removeEventListener("resize", t), mx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, I.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Bv({
+ return zv({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -13502,25 +13502,25 @@ function ste(e) {
updatePosition: C
};
}
-function cte(e) {
+function ute(e) {
gp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function lte(e, t) {
+function dte(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function ute(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Yb({
+function fte(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = qb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = ste({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lte({
...c,
targetRef: n,
overlayRef: r,
@@ -13528,15 +13528,15 @@ function ute(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- $b({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Oee(i?.current ?? r.current) : X_([i?.current ?? r.current], { shouldUseInert: !0 });
+ Zb({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? kee(i?.current ?? r.current) : Y_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = B_(e);
+ let { focusWithinProps: g } = z_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -13547,13 +13547,13 @@ function ute(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var _x = /* @__PURE__ */ new WeakMap();
+var hx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function dte(e, t, n) {
+function pte(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: _ } = kg({
+ }, { pressProps: g, isPressed: _ } = Og({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13561,7 +13561,7 @@ function dte(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = kg({
+ }), { pressProps: v, isPressed: y } = Og({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13571,11 +13571,11 @@ function dte(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = uh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = gg(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = uh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = hg(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 } = _x.get(t);
- T_(n, t.defaultSelectedValue, t.setSelectedValue), E_({ validationBehavior: O }, t, n);
- let k = D_();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = hx.get(t);
+ w_(n, t.defaultSelectedValue, t.setSelectedValue), T_({ validationBehavior: O }, t, n);
+ let k = E_();
return {
labelProps: H(v, (0, I.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -13607,13 +13607,13 @@ function dte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function fte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ag(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = z_({
+function mte(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = ag(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = R_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = gg(e, { labelable: !0 }), { focusWithinProps: v } = B_({
+ }), _ = hg(e, { labelable: !0 }), { focusWithinProps: v } = z_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -13621,7 +13621,7 @@ function fte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = l_(n.currentTarget, {
+ let r = c_(n.currentTarget, {
from: V(n),
accept: (e) => e instanceof qf(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -13636,7 +13636,7 @@ function fte(e, t) {
},
allowRepeats: !0
}), x = Rm(n);
- return _x.set(t, {
+ return hx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -13665,18 +13665,18 @@ function fte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var vx = /* @__PURE__ */ new WeakMap();
-function pte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ny({
+var gx = /* @__PURE__ */ new WeakMap();
+function hte(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ty({
usage: "search",
sensitivity: "base"
- }), u = (0, I.useMemo)(() => r || new nv(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, I.useMemo)(() => r || new tv(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Vv({
+ ]), { menuTriggerProps: d, menuProps: f } = Bv({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = ah({
@@ -13695,21 +13695,21 @@ function pte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Uv({
+ }), { typeSelectProps: m } = Hv({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = z_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = R_({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = gg(e, { labelable: !0 }), C = H(m, d, y), w = Rm();
- return vx.set(t, {
+ let S = hg(e, { labelable: !0 }), C = H(m, d, y), w = Rm();
+ return gx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -13770,13 +13770,13 @@ function pte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function mte(e, t, n) {
- let r = vx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = G_({ style: {
+function gte(e, t, n) {
+ let r = gx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = W_({ style: {
position: "fixed",
top: 0,
left: 0
} });
- T_(e.selectRef, t.defaultValue, t.setValue), E_({
+ w_(e.selectRef, t.defaultValue, t.setValue), T_({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -13806,8 +13806,8 @@ function mte(e, t, n) {
}
};
}
-function hte(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = mte({
+function _te(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, I.useRef)(null), c = (0, I.useRef)(null), { containerProps: l, selectProps: u } = gte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -13831,7 +13831,7 @@ function hte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = vx.get(t) || {};
+ let { validationBehavior: e } = gx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -13862,8 +13862,8 @@ function hte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function gte(e) {
- let t = gg(e, { labelable: !0 }), n;
+function vte(e) {
+ let t = hg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -13872,8 +13872,8 @@ function gte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function _te(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = I_(e, t, n);
+function yte(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = F_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -13887,10 +13887,10 @@ function _te(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var yx = 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 vte(e.layout) : new tv(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new bte(e.layout) : new ev(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -13926,7 +13926,7 @@ var yx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of qv(n, this.collection)) {
+ for (let e of Kv(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -13960,13 +13960,13 @@ var yx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = qv(t, this.collection);
- return (this.direction === "rtl" ? Xv(e)?.key : Jv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? Yv(e)?.key : qv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index - 1) : Yv(r, t.index + 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index - 1) : Jv(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -13975,13 +13975,13 @@ var yx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = qv(t, this.collection);
- return (this.direction === "rtl" ? Jv(e)?.key : Xv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? qv(e)?.key : Yv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = qv(n, this.collection), i = (this.direction === "rtl" ? Yv(r, t.index + 1) : Yv(r, t.index - 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index + 1) : Jv(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -13992,13 +13992,13 @@ var yx = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? Jv(qv(e, this.collection))?.key ?? null : null;
+ return e ? qv(Kv(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = Jv(qv(e, this.collection))?.key ?? null;
+ n = qv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14008,13 +14008,13 @@ var yx = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? Xv(qv(e, this.collection))?.key ?? null : null;
+ return e ? Yv(Kv(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = Xv(qv(e, this.collection))?.key ?? null;
+ n = Yv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14050,13 +14050,13 @@ var yx = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? Jv(qv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? qv(Kv(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, vte = class {
+}, bte = class {
constructor(e) {
this.layout = e;
}
@@ -14069,16 +14069,16 @@ var yx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, bx = /* @__PURE__ */ new WeakMap();
+}, vx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function yte(e, t, n) {
+function xte(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 = ny({
+ let h = ty({
usage: "search",
sensitivity: "base"
- }), { direction: g } = ag(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new yx({
+ }), { direction: g } = ag(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new _x({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -14095,7 +14095,7 @@ function yte(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Kv({
+ ]), { collectionProps: y } = Gv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -14104,7 +14104,7 @@ function yte(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Rm(e.id);
- bx.set(t, {
+ vx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -14113,10 +14113,10 @@ function yte(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = Wee({
+ let x = Gee({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = gg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
+ }), S = hg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
if (m.isFocused) {
np(e.currentTarget, V(e)) || m.setFocused(!1);
return;
@@ -14125,36 +14125,36 @@ function yte(e, t, n) {
}, [m]), w = (0, I.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = eb(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
+ }), [C, y.onBlur]), T = $y(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Hee({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Uee({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var xx = /* @__PURE__ */ new WeakMap();
-function Sx(e) {
+var yx = /* @__PURE__ */ new WeakMap();
+function bx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function bte(e, t) {
- let n = xx.get(e);
+function Ste(e, t) {
+ let n = yx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Sx(t)}`;
+ return `${n}-${bx(t)}`;
}
-function Cx(e, t, n) {
- let r = xx.get(e);
+function xx(e, t, n) {
+ let r = yx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Sx(t)}-${Sx(n)}`;
+ return `${r}-${bx(t)}-${bx(n)}`;
}
-function wx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Cx(e, t, n)).join(" ");
+function Sx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => xx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Tx = {};
-Tx = {
+var Cx = {};
+Cx = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -14169,8 +14169,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Ex = {};
-Ex = {
+var wx = {};
+wx = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -14185,8 +14185,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Dx = {};
-Dx = {
+var Tx = {};
+Tx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -14201,8 +14201,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Ox = {};
-Ox = {
+var Ex = {};
+Ex = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -14217,8 +14217,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var kx = {};
-kx = {
+var Dx = {};
+Dx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -14233,8 +14233,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Ax = {};
-Ax = {
+var Ox = {};
+Ox = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -14249,8 +14249,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var jx = {};
-jx = {
+var kx = {};
+kx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -14265,8 +14265,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Mx = {};
-Mx = {
+var Ax = {};
+Ax = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -14281,8 +14281,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Nx = {};
-Nx = {
+var jx = {};
+jx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -14297,8 +14297,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Px = {};
-Px = {
+var Mx = {};
+Mx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -14313,8 +14313,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Fx = {};
-Fx = {
+var Nx = {};
+Nx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -14329,8 +14329,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Ix = {};
-Ix = {
+var Px = {};
+Px = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -14345,8 +14345,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Lx = {};
-Lx = {
+var Fx = {};
+Fx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -14361,8 +14361,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Rx = {};
-Rx = {
+var Ix = {};
+Ix = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -14377,8 +14377,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var zx = {};
-zx = {
+var Lx = {};
+Lx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -14393,8 +14393,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Bx = {};
-Bx = {
+var Rx = {};
+Rx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -14409,8 +14409,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Vx = {};
-Vx = {
+var zx = {};
+zx = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -14425,8 +14425,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Hx = {};
-Hx = {
+var Bx = {};
+Bx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -14441,8 +14441,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Ux = {};
-Ux = {
+var Vx = {};
+Vx = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -14457,8 +14457,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Wx = {};
-Wx = {
+var Hx = {};
+Hx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -14473,8 +14473,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Gx = {};
-Gx = {
+var Ux = {};
+Ux = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -14489,8 +14489,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Kx = {};
-Kx = {
+var Wx = {};
+Wx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -14505,8 +14505,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var qx = {};
-qx = {
+var Gx = {};
+Gx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -14521,8 +14521,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Jx = {};
-Jx = {
+var Kx = {};
+Kx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -14537,8 +14537,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Yx = {};
-Yx = {
+var qx = {};
+qx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -14553,8 +14553,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Xx = {};
-Xx = {
+var Jx = {};
+Jx = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -14569,8 +14569,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Zx = {};
-Zx = {
+var Yx = {};
+Yx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -14585,8 +14585,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Qx = {};
-Qx = {
+var Xx = {};
+Xx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -14601,8 +14601,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var $x = {};
-$x = {
+var Zx = {};
+Zx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -14617,8 +14617,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var eS = {};
-eS = {
+var Qx = {};
+Qx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -14633,8 +14633,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var tS = {};
-tS = {
+var $x = {};
+$x = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -14649,8 +14649,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var nS = {};
-nS = {
+var eS = {};
+eS = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -14665,8 +14665,8 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var rS = {};
-rS = {
+var tS = {};
+tS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -14681,8 +14681,8 @@ rS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var iS = {};
-iS = {
+var nS = {};
+nS = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -14697,46 +14697,46 @@ iS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var aS = {};
-aS = {
- "ar-AE": Tx,
- "bg-BG": Ex,
- "cs-CZ": Dx,
- "da-DK": Ox,
- "de-DE": kx,
- "el-GR": Ax,
- "en-US": jx,
- "es-ES": Mx,
- "et-EE": Nx,
- "fi-FI": Px,
- "fr-FR": Fx,
- "he-IL": Ix,
- "hr-HR": Lx,
- "hu-HU": Rx,
- "it-IT": zx,
- "ja-JP": Bx,
- "ko-KR": Vx,
- "lt-LT": Hx,
- "lv-LV": Ux,
- "nb-NO": Wx,
- "nl-NL": Gx,
- "pl-PL": Kx,
- "pt-BR": qx,
- "pt-PT": Jx,
- "ro-RO": Yx,
- "ru-RU": Xx,
- "sk-SK": Zx,
- "sl-SI": Qx,
- "sr-SP": $x,
- "sv-SE": eS,
- "tr-TR": tS,
- "uk-UA": nS,
- "zh-CN": rS,
- "zh-TW": iS
+var rS = {};
+rS = {
+ "ar-AE": Cx,
+ "bg-BG": wx,
+ "cs-CZ": Tx,
+ "da-DK": Ex,
+ "de-DE": Dx,
+ "el-GR": Ox,
+ "en-US": kx,
+ "es-ES": Ax,
+ "et-EE": jx,
+ "fi-FI": Mx,
+ "fr-FR": Nx,
+ "he-IL": Px,
+ "hr-HR": Fx,
+ "hu-HU": Ix,
+ "it-IT": Lx,
+ "ja-JP": Rx,
+ "ko-KR": zx,
+ "lt-LT": Bx,
+ "lv-LV": Vx,
+ "nb-NO": Hx,
+ "nl-NL": Ux,
+ "pl-PL": Wx,
+ "pt-BR": Gx,
+ "pt-PT": Kx,
+ "ro-RO": qx,
+ "ru-RU": Jx,
+ "sk-SK": Yx,
+ "sl-SI": Xx,
+ "sr-SP": Zx,
+ "sv-SE": Qx,
+ "tr-TR": $x,
+ "uk-UA": eS,
+ "zh-CN": tS,
+ "zh-TW": nS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var xte = class extends yx {
+var Cte = class extends _x {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -14744,7 +14744,7 @@ var xte = class extends yx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = Jv(qv(n, this.collection));
+ let e = qv(Kv(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -14765,13 +14765,13 @@ var xte = class extends yx {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of qv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of Kv(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...qv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...Kv(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -14800,7 +14800,7 @@ var xte = class extends yx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of qv(o, this.collection)) {
+ for (let r of Kv(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -14814,14 +14814,14 @@ var xte = class extends yx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Ste(e) {
+function wte(e) {
return e && e.__esModule ? e.default : e;
}
-function Cte(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ny({
+function Tte(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({
usage: "search",
sensitivity: "base"
- }), { direction: c } = ag(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new xte({
+ }), { direction: c } = ag(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Cte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -14841,34 +14841,34 @@ function Cte(e, t, n) {
a,
o
]), d = Rm(e.id);
- xx.set(t, d);
- let { gridProps: f } = yte({
+ yx.set(t, d);
+ let { gridProps: f } = xte({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = mg(Ste(aS), "@react-aria/table"), g = (0, I.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = pg(wte(rS), "@react-aria/table"), g = (0, I.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = w_(g);
- return __(() => {
- g && h_(g, "assertive", 500);
+ ]), _ = C_(g);
+ return g_(() => {
+ g && m_(g, "assertive", 500);
}, [g]), { gridProps: H(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function oS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = ag(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = bx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {
+function iS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = ag(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = vx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {
if (n.current) {
- let e = l_(n.current);
+ let e = c_(n.current);
if (p === "child") {
if (ap(n.current) && n.current !== rp(Kf(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? sS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? aS(e) : e.firstChild();
if (r) {
jm(r);
return;
@@ -14876,7 +14876,7 @@ function oS(e, t, n) {
}
(m.current != null && r.key !== m.current || !ap(n.current)) && jm(n.current);
}
- }, { itemProps: g, isPressed: _ } = nb({
+ }, { itemProps: g, isPressed: _ } = tb({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -14890,29 +14890,29 @@ function oS(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = rp(Kf(n.current));
if (!np(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = l_(n.current);
+ let a = c_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), S_(t, { containingElement: y_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), x_(t, { containingElement: v_(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (jm(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : sS(a), t && (jm(t), S_(t, { containingElement: y_(n.current) })));
+ p === "cell" && l === "rtl" ? (jm(n.current), x_(n.current, { containingElement: v_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : aS(a), t && (jm(t), x_(t, { containingElement: v_(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), S_(t, { containingElement: y_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) jm(t), x_(t, { containingElement: v_(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (jm(n.current), S_(n.current, { containingElement: y_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? sS(a) : a.firstChild(), t && (jm(t), S_(t, { containingElement: y_(n.current) })));
+ p === "cell" && l === "ltr" ? (jm(n.current), x_(n.current, { containingElement: v_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? aS(a) : a.firstChild(), t && (jm(t), x_(t, { containingElement: v_(n.current) })));
}
break;
}
@@ -14928,7 +14928,7 @@ function oS(e, t, n) {
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = l_(n.current, { tabbable: !0 });
+ let t = c_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -14957,7 +14957,7 @@ function oS(e, t, n) {
isPressed: _
};
}
-function sS(e) {
+function aS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -14966,23 +14966,23 @@ function sS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function wte(e, t, n) {
- let { gridCellProps: r, isPressed: i } = oS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Cx(t, e.node.parentKey, a)), {
+function Ete(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = iS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = xx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Tte(e) {
+function Dte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ete(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = oS({
+function Ote(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = iS({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = kg({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Og({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
@@ -14990,9 +14990,9 @@ function Ete(e, t, n) {
ref: n
}), { focusableProps: l } = uh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !Mp() && (u = d ? f : "none");
- let p = mg(Tte(aS), "@react-aria/table"), m;
+ let p = pg(Dte(rS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && Mp() && (m = `${m}, ${p.format(f)}`));
- let h = w_(m), g = t.collection.size === 0;
+ let h = C_(m), g = t.collection.size === 0;
return (0, I.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -15003,7 +15003,7 @@ function Ete(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: bte(t, r.key),
+ id: Ste(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -15012,14 +15012,14 @@ function Ete(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Dte(e, t, n) {
+function kte(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Ote(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = bx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = nb({
+function Ate(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = vx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = tb({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -15040,10 +15040,10 @@ function Ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function kte(e) {
+function jte(e) {
return e && e.__esModule ? e.default : e;
}
-var cS = {
+var oS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -15053,21 +15053,21 @@ var cS = {
rtl: "ArrowRight"
}
};
-function Ate(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ote(e, t, n), { direction: s } = ag();
+function Mte(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ate(e, t, n), { direction: s } = ag();
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 = mg(kte(aS), "@react-aria/table"), u = Yh({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = pg(jte(rS), "@react-aria/table"), u = Yh({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": wx(t, r.key)
+ "aria-labelledby": Sx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = lS(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 = lS(t.collection, a);
+ let n = sS(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 = sS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === cS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === cS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === oS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === oS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -15089,41 +15089,41 @@ function Ate(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": wx(t, r.key)
+ "aria-labelledby": Sx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function lS(e, t) {
+function sS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function jte() {
+function Nte() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function uS() {
- return jte();
+function cS() {
+ return Nte();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Mte(e) {
+function Pte(e) {
return e && e.__esModule ? e.default : e;
}
-function Nte(e, t) {
- let { key: n } = e, { checkboxProps: r } = Kee(e, t);
+function Fte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = qee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${wx(t, n)}`
+ "aria-labelledby": `${r.id} ${Sx(t, n)}`
} };
}
-function Pte(e) {
+function Ite(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": mg(Mte(aS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": pg(Pte(rS), "@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,
@@ -15132,21 +15132,21 @@ function Pte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var dS = /* @__PURE__ */ new WeakMap();
-function fS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${dS.get(e)}-${n}-${t}`) : "";
+var lS = /* @__PURE__ */ new WeakMap();
+function uS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${lS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Fte(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 } = nb({
+function Lte(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 } = tb({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = fS(t, r, "tab"), m = fS(t, r, "tabpanel"), { tabIndex: h } = d, g = gg(u?.props, { labelable: !0 });
+ }), p = uS(t, r, "tab"), m = uS(t, r, "tabpanel"), { tabIndex: h } = d, g = hg(u?.props, { labelable: !0 });
delete g.id;
let _ = Up(u?.props), { focusableProps: v } = uh({
...u?.props,
@@ -15168,7 +15168,7 @@ function Fte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Ite = class {
+var Rte = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -15212,11 +15212,11 @@ var Ite = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Lte(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = ag(), { collectionProps: l } = Kv({
+function zte(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = ag(), { collectionProps: l } = Gv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, I.useMemo)(() => new Ite(a, c, r, s), [
+ keyboardDelegate: (0, I.useMemo)(() => new Rte(a, c, r, s), [
a,
s,
r,
@@ -15227,7 +15227,7 @@ function Lte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Rm();
- return dS.set(t, u), { tabListProps: {
+ return lS.set(t, u), { tabListProps: {
...H(l, Yh({
...e,
id: u
@@ -15239,12 +15239,12 @@ function Lte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Rte(e, t, n) {
- let r = eb(n) ? void 0 : 0, i = fS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Bte(e, t, n) {
+ let r = $y(n) ? void 0 : 0, i = uS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(Yh({
...e,
id: i,
- "aria-labelledby": fS(t, t?.selectedKey, "tab")
+ "aria-labelledby": uS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -15254,7 +15254,7 @@ function Rte(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var zte = /* @__PURE__ */ M(((e) => {
+var Vte = /* @__PURE__ */ M(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -15453,10 +15453,10 @@ var zte = /* @__PURE__ */ M(((e) => {
}
};
};
-})), Bte = /* @__PURE__ */ M(((e, t) => {
- t.exports = zte();
-})), Vte = /* @__PURE__ */ M(((e) => {
- var t = Bte(), n = ne(), r = gh();
+})), Hte = /* @__PURE__ */ M(((e, t) => {
+ t.exports = Vte();
+})), Ute = /* @__PURE__ */ M(((e) => {
+ var t = Hte(), n = ne(), r = gh();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -23866,7 +23866,7 @@ var zte = /* @__PURE__ */ M(((e) => {
var n = !1, r = "", o = wc, s = Tc, c = Ec;
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = yh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[xt] = t.current, ep(e), new eg(t);
};
-})), pS = (/* @__PURE__ */ M(((e, t) => {
+})), dS = (/* @__PURE__ */ M(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -23874,8 +23874,8 @@ var zte = /* @__PURE__ */ M(((e) => {
console.error(e);
}
}
- n(), t.exports = Vte();
-})))(), Hte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+ n(), t.exports = Ute();
+})))(), Wte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23883,7 +23883,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ute = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Gte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23891,7 +23891,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23899,7 +23899,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23907,7 +23907,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23915,7 +23915,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), Wte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), Kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23923,7 +23923,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23931,7 +23931,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23939,7 +23939,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), Gte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), qte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23947,7 +23947,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23955,7 +23955,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23963,7 +23963,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23971,7 +23971,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23979,7 +23979,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), Kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), Jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23987,7 +23987,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23995,7 +23995,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24003,7 +24003,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), qte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), Yte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24011,7 +24011,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Xte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24019,7 +24019,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24027,7 +24027,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), wS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24035,7 +24035,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), Yte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), TS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24043,7 +24043,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), ES = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24051,7 +24051,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), DS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24059,7 +24059,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), OS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24067,7 +24067,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), kS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24075,7 +24075,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), AS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24083,7 +24083,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), jS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24091,7 +24091,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), MS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24099,7 +24099,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), NS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24107,7 +24107,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), PS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24115,7 +24115,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), FS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24123,7 +24123,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), LS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), IS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24131,7 +24131,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), RS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), LS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24139,7 +24139,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), zS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), RS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24147,7 +24147,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), BS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), zS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24155,7 +24155,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), VS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), BS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24163,7 +24163,7 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), HS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.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" })), VS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -24171,100 +24171,100 @@ var zte = /* @__PURE__ */ M(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.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" })), US = (e, t) => {
+}, I.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" })), HS = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, WS = (e, t) => ({
+}, US = (e, t) => ({
classGroupId: e,
validator: t
-}), GS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), WS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), KS = "-", qS = [], JS = "arbitrary..", YS = (e) => {
- let t = QS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), GS = "-", KS = [], qS = "arbitrary..", JS = (e) => {
+ let t = ZS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return ZS(e);
- let n = e.split(KS);
- return XS(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return XS(e);
+ let n = e.split(GS);
+ return YS(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? US(i, t) : t : i || qS;
+ return t ? i ? HS(i, t) : t : i || KS;
}
- return n[e] || qS;
+ return n[e] || KS;
}
};
-}, XS = (e, t, n) => {
+}, YS = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = XS(e, t + 1, i);
+ let n = YS(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(KS) : e.slice(t).join(KS), s = a.length;
+ let o = t === 0 ? e.join(GS) : e.slice(t).join(GS), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, ZS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, XS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? JS + r : void 0;
-})(), QS = (e) => {
+ return r ? qS + r : void 0;
+})(), ZS = (e) => {
let { theme: t, classGroups: n } = e;
- return $S(n, t);
-}, $S = (e, t) => {
- let n = GS();
+ return QS(n, t);
+}, QS = (e, t) => {
+ let n = WS();
for (let r in e) {
let i = e[r];
- eC(i, n, r, t);
+ $S(i, n, r, t);
}
return n;
-}, eC = (e, t, n, r) => {
+}, $S = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- tC(i, t, n, r);
+ eC(i, t, n, r);
}
-}, tC = (e, t, n, r) => {
+}, eC = (e, t, n, r) => {
if (typeof e == "string") {
- nC(e, t, n);
+ tC(e, t, n);
return;
}
if (typeof e == "function") {
- rC(e, t, n, r);
+ nC(e, t, n, r);
return;
}
- iC(e, t, n, r);
-}, nC = (e, t, n) => {
- let r = e === "" ? t : aC(t, e);
+ rC(e, t, n, r);
+}, tC = (e, t, n) => {
+ let r = e === "" ? t : iC(t, e);
r.classGroupId = n;
-}, rC = (e, t, n, r) => {
- if (oC(e)) {
- eC(e(r), t, n, r);
+}, nC = (e, t, n, r) => {
+ if (aC(e)) {
+ $S(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(WS(n, e));
-}, iC = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(US(n, e));
+}, rC = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- eC(o, aC(t, a), n, r);
+ $S(o, iC(t, a), n, r);
}
-}, aC = (e, t) => {
- let n = e, r = t.split(KS), i = r.length;
+}, iC = (e, t) => {
+ let n = e, r = t.split(GS), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = GS(), n.nextPart.set(t, i)), n = i;
+ i || (i = WS(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, oC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, sC = (e) => {
+}, aC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, oC = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -24282,19 +24282,19 @@ var zte = /* @__PURE__ */ M(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, cC = "!", lC = ":", uC = [], dC = (e, t, n, r, i) => ({
+}, sC = "!", cC = ":", lC = [], uC = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), fC = (e) => {
+}), dC = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === lC) {
+ if (o === cC) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -24306,13 +24306,13 @@ var zte = /* @__PURE__ */ M(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(cC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(cC) && (c = s.slice(1), l = !0);
+ s.endsWith(sC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(sC) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return dC(t, l, c, u);
+ return uC(t, l, c, u);
};
if (t) {
- let e = t + lC, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : dC(uC, !1, t, void 0, !0);
+ let e = t + cC, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : uC(lC, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -24322,7 +24322,7 @@ var zte = /* @__PURE__ */ M(((e) => {
});
}
return r;
-}, pC = (e) => {
+}, fC = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -24334,18 +24334,18 @@ var zte = /* @__PURE__ */ M(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, mC = (e) => ({
- cache: sC(e.cacheSize),
- parseClassName: fC(e),
- sortModifiers: pC(e),
- postfixLookupClassGroupIds: hC(e),
- ...YS(e)
-}), hC = (e) => {
+}, pC = (e) => ({
+ cache: oC(e.cacheSize),
+ parseClassName: dC(e),
+ sortModifiers: fC(e),
+ postfixLookupClassGroupIds: mC(e),
+ ...JS(e)
+}), mC = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, gC = /\s+/, _C = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(gC), l = "";
+}, hC = /\s+/, gC = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(hC), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -24369,7 +24369,7 @@ var zte = /* @__PURE__ */ M(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + cC : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + sC : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -24380,34 +24380,34 @@ var zte = /* @__PURE__ */ M(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, vC = (...e) => {
+}, _C = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = yC(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = vC(n)) && (i && (i += " "), i += r);
return i;
-}, yC = (e) => {
+}, vC = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = yC(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = vC(e[r])) && (n && (n += " "), n += t);
return n;
-}, bC = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = mC(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, yC = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = pC(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = _C(e, n);
+ let a = gC(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(vC(...e));
-}, xC = [], SC = (e) => {
- let t = (t) => t[e] || xC;
+ return a = o, (...e) => a(_C(...e));
+}, bC = [], xC = (e) => {
+ let t = (t) => t[e] || bC;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, CC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, TC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, EC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, DC = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, OC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, kC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, AC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, jC = (e) => TC.test(e), MC = (e) => !!e && !Number.isNaN(Number(e)), NC = (e) => !!e && Number.isInteger(Number(e)), PC = (e) => e.endsWith("%") && MC(e.slice(0, -1)), FC = (e) => EC.test(e), IC = () => !0, LC = (e) => DC.test(e) && !OC.test(e), RC = () => !1, zC = (e) => kC.test(e), BC = (e) => AC.test(e), VC = (e) => !U(e) && !W(e), HC = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), UC = (e) => iw(e, cw, RC), U = (e) => CC.test(e), WC = (e) => iw(e, lw, LC), GC = (e) => iw(e, uw, MC), KC = (e) => iw(e, fw, IC), qC = (e) => iw(e, dw, RC), JC = (e) => iw(e, ow, RC), YC = (e) => iw(e, sw, BC), XC = (e) => iw(e, pw, zC), W = (e) => wC.test(e), ZC = (e) => aw(e, lw), QC = (e) => aw(e, dw), $C = (e) => aw(e, ow), ew = (e) => aw(e, cw), tw = (e) => aw(e, sw), nw = (e) => aw(e, pw, !0), rw = (e) => aw(e, fw, !0), iw = (e, t, n) => {
- let r = CC.exec(e);
+}, SC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, CC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, TC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, EC = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, DC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, OC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, AC = (e) => wC.test(e), jC = (e) => !!e && !Number.isNaN(Number(e)), MC = (e) => !!e && Number.isInteger(Number(e)), NC = (e) => e.endsWith("%") && jC(e.slice(0, -1)), PC = (e) => TC.test(e), FC = () => !0, IC = (e) => EC.test(e) && !DC.test(e), LC = () => !1, RC = (e) => OC.test(e), zC = (e) => kC.test(e), BC = (e) => !U(e) && !W(e), VC = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), HC = (e) => rw(e, sw, LC), U = (e) => SC.test(e), UC = (e) => rw(e, cw, IC), WC = (e) => rw(e, lw, jC), GC = (e) => rw(e, dw, FC), KC = (e) => rw(e, uw, LC), qC = (e) => rw(e, aw, LC), JC = (e) => rw(e, ow, zC), YC = (e) => rw(e, fw, RC), W = (e) => CC.test(e), XC = (e) => iw(e, cw), ZC = (e) => iw(e, uw), QC = (e) => iw(e, aw), $C = (e) => iw(e, sw), ew = (e) => iw(e, ow), tw = (e) => iw(e, fw, !0), nw = (e) => iw(e, dw, !0), rw = (e, t, n) => {
+ let r = SC.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, aw = (e, t, n = !1) => {
- let r = wC.exec(e);
+}, iw = (e, t, n = !1) => {
+ let r = CC.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, ow = (e) => e === "position" || e === "percentage", sw = (e) => e === "image" || e === "url", cw = (e) => e === "length" || e === "size" || e === "bg-size", lw = (e) => e === "length", uw = (e) => e === "number", dw = (e) => e === "family-name", fw = (e) => e === "number" || e === "weight", pw = (e) => e === "shadow", mw = () => {
- let e = SC("color"), t = SC("font"), n = SC("text"), r = SC("font-weight"), i = SC("tracking"), a = SC("leading"), o = SC("breakpoint"), s = SC("container"), c = SC("spacing"), l = SC("radius"), u = SC("shadow"), d = SC("inset-shadow"), f = SC("text-shadow"), p = SC("drop-shadow"), m = SC("blur"), h = SC("perspective"), g = SC("aspect"), _ = SC("ease"), v = SC("animate"), y = () => [
+}, aw = (e) => e === "position" || e === "percentage", ow = (e) => e === "image" || e === "url", sw = (e) => e === "length" || e === "size" || e === "bg-size", cw = (e) => e === "length", lw = (e) => e === "number", uw = (e) => e === "family-name", dw = (e) => e === "number" || e === "weight", fw = (e) => e === "shadow", pw = () => {
+ let e = xC("color"), t = xC("font"), n = xC("text"), r = xC("font-weight"), i = xC("tracking"), a = xC("leading"), o = xC("breakpoint"), s = xC("container"), c = xC("spacing"), l = xC("radius"), u = xC("shadow"), d = xC("inset-shadow"), f = xC("text-shadow"), p = xC("drop-shadow"), m = xC("blur"), h = xC("perspective"), g = xC("aspect"), _ = xC("ease"), v = xC("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -24449,12 +24449,12 @@ var zte = /* @__PURE__ */ M(((e) => {
U,
c
], T = () => [
- jC,
+ AC,
"full",
"auto",
...w()
], E = () => [
- NC,
+ MC,
"none",
"subgrid",
W,
@@ -24463,15 +24463,15 @@ var zte = /* @__PURE__ */ M(((e) => {
"auto",
{ span: [
"full",
- NC,
+ MC,
W,
U
] },
- NC,
+ MC,
W,
U
], O = () => [
- NC,
+ MC,
"auto",
W,
U
@@ -24501,7 +24501,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- jC,
+ AC,
"auto",
"full",
"dvw",
@@ -24516,7 +24516,7 @@ var zte = /* @__PURE__ */ M(((e) => {
...w()
], ee = () => [
s,
- jC,
+ AC,
"screen",
"full",
"dvw",
@@ -24527,7 +24527,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"fit",
...w()
], te = () => [
- jC,
+ AC,
"screen",
"full",
"lh",
@@ -24544,8 +24544,8 @@ var zte = /* @__PURE__ */ M(((e) => {
U
], F = () => [
...b(),
- $C,
- JC,
+ QC,
+ qC,
{ position: [W, U] }
], ne = () => ["no-repeat", { repeat: [
"",
@@ -24557,13 +24557,13 @@ var zte = /* @__PURE__ */ M(((e) => {
"auto",
"cover",
"contain",
- ew,
- UC,
+ $C,
+ HC,
{ size: [W, U] }
], ie = () => [
- PC,
- ZC,
- WC
+ NC,
+ XC,
+ UC
], I = () => [
"",
"none",
@@ -24573,9 +24573,9 @@ var zte = /* @__PURE__ */ M(((e) => {
U
], L = () => [
"",
- MC,
- ZC,
- WC
+ jC,
+ XC,
+ UC
], ae = () => [
"solid",
"dashed",
@@ -24599,10 +24599,10 @@ var zte = /* @__PURE__ */ M(((e) => {
"color",
"luminosity"
], se = () => [
- MC,
- PC,
- $C,
- JC
+ jC,
+ NC,
+ QC,
+ qC
], ce = () => [
"",
"none",
@@ -24611,20 +24611,20 @@ var zte = /* @__PURE__ */ M(((e) => {
U
], le = () => [
"none",
- MC,
+ jC,
W,
U
], ue = () => [
"none",
- MC,
+ jC,
W,
U
], R = () => [
- MC,
+ jC,
W,
U
], z = () => [
- jC,
+ AC,
"full",
...w()
];
@@ -24638,17 +24638,17 @@ var zte = /* @__PURE__ */ M(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [FC],
- breakpoint: [FC],
- color: [IC],
- container: [FC],
- "drop-shadow": [FC],
+ blur: [PC],
+ breakpoint: [PC],
+ color: [FC],
+ container: [PC],
+ "drop-shadow": [PC],
ease: [
"in",
"out",
"in-out"
],
- font: [VC],
+ font: [BC],
"font-weight": [
"thin",
"extralight",
@@ -24660,7 +24660,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [FC],
+ "inset-shadow": [PC],
leading: [
"none",
"tight",
@@ -24677,11 +24677,11 @@ var zte = /* @__PURE__ */ M(((e) => {
"distant",
"none"
],
- radius: [FC],
- shadow: [FC],
- spacing: ["px", MC],
- text: [FC],
- "text-shadow": [FC],
+ radius: [PC],
+ shadow: [PC],
+ spacing: ["px", jC],
+ text: [PC],
+ "text-shadow": [PC],
tracking: [
"tighter",
"tight",
@@ -24695,7 +24695,7 @@ var zte = /* @__PURE__ */ M(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- jC,
+ AC,
U,
W,
g
@@ -24708,9 +24708,9 @@ var zte = /* @__PURE__ */ M(((e) => {
W,
U
] }],
- "container-named": [HC],
+ "container-named": [VC],
columns: [{ columns: [
- MC,
+ jC,
"auto",
U,
W,
@@ -24810,13 +24810,13 @@ var zte = /* @__PURE__ */ M(((e) => {
"collapse"
],
z: [{ z: [
- NC,
+ MC,
"auto",
W,
U
] }],
basis: [{ basis: [
- jC,
+ AC,
"full",
"auto",
s,
@@ -24834,8 +24834,8 @@ var zte = /* @__PURE__ */ M(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- MC,
jC,
+ AC,
"auto",
"initial",
"none",
@@ -24843,18 +24843,18 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
grow: [{ grow: [
"",
- MC,
+ jC,
W,
U
] }],
shrink: [{ shrink: [
"",
- MC,
+ jC,
W,
U
] }],
order: [{ order: [
- NC,
+ MC,
"first",
"last",
"none",
@@ -24966,15 +24966,15 @@ var zte = /* @__PURE__ */ M(((e) => {
"font-size": [{ text: [
"base",
n,
- ZC,
- WC
+ XC,
+ UC
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- rw,
- KC
+ nw,
+ GC
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -24986,12 +24986,12 @@ var zte = /* @__PURE__ */ M(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- PC,
+ NC,
U
] }],
"font-family": [{ font: [
- QC,
- qC,
+ ZC,
+ KC,
t
] }],
"font-features": [{ "font-features": [U] }],
@@ -25007,10 +25007,10 @@ var zte = /* @__PURE__ */ M(((e) => {
U
] }],
"line-clamp": [{ "line-clamp": [
- MC,
+ jC,
"none",
W,
- GC
+ WC
] }],
leading: [{ leading: [
"none",
@@ -25048,15 +25048,15 @@ var zte = /* @__PURE__ */ M(((e) => {
],
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- MC,
+ jC,
"from-font",
"auto",
W,
- WC
+ UC
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- MC,
+ jC,
"auto",
W,
U
@@ -25080,7 +25080,7 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- NC,
+ MC,
W,
U
] }],
@@ -25158,7 +25158,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"l",
"tl"
] },
- NC,
+ MC,
W,
U
],
@@ -25169,13 +25169,13 @@ var zte = /* @__PURE__ */ M(((e) => {
],
conic: [
"",
- NC,
+ MC,
W,
U
]
},
- tw,
- YC
+ ew,
+ JC
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: ie() }],
@@ -25242,15 +25242,15 @@ var zte = /* @__PURE__ */ M(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- MC,
+ jC,
W,
U
] }],
"outline-w": [{ outline: [
"",
- MC,
- ZC,
- WC
+ jC,
+ XC,
+ UC
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -25258,33 +25258,33 @@ var zte = /* @__PURE__ */ M(((e) => {
"inner",
"none",
u,
- nw,
- XC
+ tw,
+ YC
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- nw,
- XC
+ tw,
+ YC
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: L() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [MC, WC] }],
+ "ring-offset-w": [{ "ring-offset": [jC, UC] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": L() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- nw,
- XC
+ tw,
+ YC
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- MC,
+ jC,
W,
U
] }],
@@ -25308,7 +25308,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [MC] }],
+ "mask-image-linear-pos": [{ "mask-linear": [jC] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": se() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": se() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -25348,7 +25348,7 @@ var zte = /* @__PURE__ */ M(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [MC] }],
+ "mask-image-conic-pos": [{ "mask-conic": [jC] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": se() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": se() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -25383,12 +25383,12 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
blur: [{ blur: ce() }],
brightness: [{ brightness: [
- MC,
+ jC,
W,
U
] }],
contrast: [{ contrast: [
- MC,
+ jC,
W,
U
] }],
@@ -25396,35 +25396,35 @@ var zte = /* @__PURE__ */ M(((e) => {
"",
"none",
p,
- nw,
- XC
+ tw,
+ YC
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- MC,
+ jC,
W,
U
] }],
"hue-rotate": [{ "hue-rotate": [
- MC,
+ jC,
W,
U
] }],
invert: [{ invert: [
"",
- MC,
+ jC,
W,
U
] }],
saturate: [{ saturate: [
- MC,
+ jC,
W,
U
] }],
sepia: [{ sepia: [
"",
- MC,
+ jC,
W,
U
] }],
@@ -25436,45 +25436,45 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
"backdrop-blur": [{ "backdrop-blur": ce() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- MC,
+ jC,
W,
U
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- MC,
+ jC,
W,
U
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- MC,
+ jC,
W,
U
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- MC,
+ jC,
W,
U
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- MC,
+ jC,
W,
U
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- MC,
+ jC,
W,
U
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- MC,
+ jC,
W,
U
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- MC,
+ jC,
W,
U
] }],
@@ -25497,7 +25497,7 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- MC,
+ jC,
"initial",
W,
U
@@ -25510,7 +25510,7 @@ var zte = /* @__PURE__ */ M(((e) => {
U
] }],
delay: [{ delay: [
- MC,
+ jC,
W,
U
] }],
@@ -25555,7 +25555,7 @@ var zte = /* @__PURE__ */ M(((e) => {
"translate-z": [{ "translate-z": z() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- NC,
+ MC,
W,
U
] }],
@@ -25699,10 +25699,10 @@ var zte = /* @__PURE__ */ M(((e) => {
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- MC,
- ZC,
- WC,
- GC
+ jC,
+ XC,
+ UC,
+ WC
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -25960,16 +25960,16 @@ var zte = /* @__PURE__ */ M(((e) => {
"selection"
]
};
-}, hw = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (gw(e, "cacheSize", t), gw(e, "prefix", n), gw(e, "experimentalParseClassName", r), _w(e.theme, a.theme), _w(e.classGroups, a.classGroups), _w(e.conflictingClassGroups, a.conflictingClassGroups), _w(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), gw(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), gw(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), vw(e.theme, i.theme), vw(e.classGroups, i.classGroups), vw(e.conflictingClassGroups, i.conflictingClassGroups), vw(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), yw(e, i, "postfixLookupClassGroups"), yw(e, i, "orderSensitiveModifiers"), e), gw = (e, t, n) => {
+}, mw = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (hw(e, "cacheSize", t), hw(e, "prefix", n), hw(e, "experimentalParseClassName", r), gw(e.theme, a.theme), gw(e.classGroups, a.classGroups), gw(e.conflictingClassGroups, a.conflictingClassGroups), gw(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), hw(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), hw(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), _w(e.theme, i.theme), _w(e.classGroups, i.classGroups), _w(e.conflictingClassGroups, i.conflictingClassGroups), _w(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), vw(e, i, "postfixLookupClassGroups"), vw(e, i, "orderSensitiveModifiers"), e), hw = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, gw = (e, t) => {
+ if (t) for (let n in t) hw(e, n, t[n]);
}, _w = (e, t) => {
- if (t) for (let n in t) gw(e, n, t[n]);
-}, vw = (e, t) => {
- if (t) for (let n in t) yw(e, t, n);
-}, yw = (e, t, n) => {
+ if (t) for (let n in t) vw(e, t, n);
+}, vw = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, bw = (e, ...t) => typeof e == "function" ? bC(mw, e, ...t) : bC(() => hw(mw(), e), ...t), xw = [
+}, yw = (e, ...t) => typeof e == "function" ? yC(pw, e, ...t) : yC(() => mw(pw(), e), ...t), bw = [
"large-title",
"display-1",
"display-2",
@@ -25983,18 +25983,18 @@ var zte = /* @__PURE__ */ M(((e) => {
"body-2",
"caption-1",
"caption-2"
-], Sw = [
+], xw = [
"regular",
"medium",
"semibold",
"bold"
-], Cw = bw({ extend: { classGroups: { "font-size": [{ text: xw.flatMap((e) => Sw.map((t) => `${e}-${t}`)) }] } } });
-function ww(e) {
+], Sw = yw({ extend: { classGroups: { "font-size": [{ text: bw.flatMap((e) => xw.map((t) => `${e}-${t}`)) }] } } });
+function Cw(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var Tw = ww({
+var ww = Cw({
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",
@@ -26013,16 +26013,16 @@ var Tw = ww({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function Ew({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function Tw({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
ref: r,
- className: Cw(Tw.base, Tw.variant[e], Tw.color[t], n),
+ className: Sw(ww.base, ww.variant[e], ww.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Dw = ww({
+var Ew = Cw({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -26081,40 +26081,40 @@ function G({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, L.jsxs)("button", {
ref: c,
type: s,
- className: Cw(Dw.base, Dw.size[t], Dw.variant[e], n && Dw.iconOnlySize[t], o),
+ className: Sw(Ew.base, Ew.size[t], Ew.variant[e], n && Ew.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: Dw.icon[t],
+ className: Ew.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Dw.label[t],
+ className: Ew.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: Dw.icon[t],
+ className: Ew.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function Ow({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function Dw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, L.jsxs)("a", {
ref: s,
- className: Cw(Dw.base, Dw.size[t], Dw.variant[e], n && Dw.iconOnlySize[t], o),
+ className: Sw(Ew.base, Ew.size[t], Ew.variant[e], n && Ew.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: Dw.icon[t],
+ className: Ew.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Dw.label[t],
+ className: Ew.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: Dw.icon[t],
+ className: Ew.icon[t],
"aria-hidden": !0
}) : null
]
@@ -26122,13 +26122,13 @@ function Ow({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/api.ts
-var kw = class extends Error {
+var Ow = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(d(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, Aw = (e) => {
+}, kw = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -26141,7 +26141,7 @@ var kw = class extends Error {
}
return "";
}, K = (e) => d(e);
-async function jw(e, t) {
+async function Aw(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -26150,7 +26150,7 @@ async function jw(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new kw(Aw(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Ow(kw(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function q(e, t, n = "POST", r) {
@@ -26167,52 +26167,52 @@ async function q(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new kw(Aw(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Ow(kw(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var Mw = "min-w-0", Nw = {
+var jw = "min-w-0", Mw = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Pw = {
+}, Nw = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Fw = {
+}, Pw = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Iw = {
+}, Fw = {
none: "",
default: "p-5"
-}, Lw = "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", Rw = "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 zw(e = {}) {
+}, Iw = "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", Lw = "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 Rw(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 [
- Mw,
- Nw[t],
- Pw[s],
- Iw[n],
- a ? Fw[a] : "",
- r ? Lw : "",
- i ? Rw : "",
+ jw,
+ Mw[t],
+ Nw[s],
+ Fw[n],
+ a ? Pw[a] : "",
+ r ? Iw : "",
+ i ? Lw : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var Bw = {
+var zw = {
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 Vw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function Bw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Bw[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${zw[i]}`,
children: [
a ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -26242,7 +26242,7 @@ function Vw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Hw({ label: e, inline: t = !1 }) {
+function Vw({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, L.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -26308,7 +26308,7 @@ function J({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function Uw({ children: e }) {
+function Hw({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -26316,21 +26316,21 @@ function Uw({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var Ww = 100, Gw = .4;
-function Kw({ 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 * Ww;
+var Uw = 100, Ww = .4;
+function Gw({ 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 * Uw;
return /* @__PURE__ */ (0, L.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${Ww} 1`,
+ viewBox: `0 0 ${Uw} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, L.jsx)("rect", {
- width: Ww,
+ width: Uw,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -26341,7 +26341,7 @@ function Kw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, L.jsx)("rect", {
x: a(e),
- width: Gw,
+ width: Ww,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -26350,7 +26350,7 @@ function Kw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function qw(e = "") {
+function Kw(e = "") {
let t = (0, I.useRef)(null), [n, r] = (0, I.useState)(""), [i, a] = (0, I.useState)(e);
(0, I.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -26388,11 +26388,11 @@ var X = new gt({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), Jw = "/api/tasks", Yw = ["tasks"], Xw = (e, t) => jw(`${Jw}?${new URLSearchParams({
+} } }), qw = "/api/tasks", Jw = ["tasks"], Yw = (e, t) => Aw(`${qw}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Zw(...e) {
+function Xw(...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) => {
@@ -26400,26 +26400,26 @@ function Zw(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Qw = 2e3, $w = 1e4, eT = (e) => e?.running.length ? Qw : $w, tT = (e) => jw(Jw, e);
-async function nT(e) {
+var Zw = 2e3, Qw = 1e4, $w = (e) => e?.running.length ? Zw : Qw, eT = (e) => Aw(qw, e);
+async function Zte(e) {
await X.fetchQuery({
- queryKey: Yw,
- queryFn: () => tT(e)
+ queryKey: Jw,
+ queryFn: () => eT(e)
});
}
-var rT = {
+var tT = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Xte = {
+}, Qte = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Zte = (e) => Xte[e] || e, Qte = {
+}, $te = (e) => Qte[e] || e, ene = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -26449,7 +26449,7 @@ var rT = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function $te(e) {
+function tne(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -26458,7 +26458,7 @@ function $te(e) {
}
return t;
}
-function ene(e, t) {
+function nne(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -26480,19 +26480,19 @@ function ene(e, t) {
}
return n;
}
-var tne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), iT = (e) => e.status === "pending" || e.status === "running";
-function nne(e) {
+var rne = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), nT = (e) => e.status === "pending" || e.status === "running";
+function ine(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 || sT(e.result_summary) || (iT(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || aT(e.result_summary) || (nT(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function aT(e) {
+function rT(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 oT(e) {
+function iT(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -26502,7 +26502,7 @@ function oT(e) {
minute: "2-digit"
});
}
-var rne = /* @__PURE__ */ new Set([
+var ane = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -26511,28 +26511,28 @@ var rne = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function sT(e) {
- return Object.entries(e || {}).filter(([e, t]) => !rne.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Qte[e] || e} ${t}`).join(" · ");
+function aT(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !ane.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ene[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var ine = {
+var one = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function cT({ status: e }) {
- return /* @__PURE__ */ (0, L.jsx)(Ew, {
- color: ine[e] ?? "neutral",
- children: Zte(e)
+function oT({ status: e }) {
+ return /* @__PURE__ */ (0, L.jsx)(Tw, {
+ color: one[e] ?? "neutral",
+ children: $te(e)
});
}
-function ane({ rows: e }) {
+function sne({ rows: e }) {
return /* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = nne(e);
+ let t = ine(e);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -26542,7 +26542,7 @@ function ane({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, L.jsx)(cT, { status: e.status }),
+ /* @__PURE__ */ (0, L.jsx)(oT, { status: e.status }),
t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -26552,12 +26552,12 @@ function ane({ rows: e }) {
})
});
}
-function lT({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function sT({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: zw({
+ className: Rw({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -26571,7 +26571,7 @@ function lT({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, L.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, L.jsx)(cT, { status: e.status })]
+ }), /* @__PURE__ */ (0, L.jsx)(oT, { status: e.status })]
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -26580,7 +26580,7 @@ function lT({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, L.jsx)(ane, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, L.jsx)(sne, { rows: i }) : null,
r ? /* @__PURE__ */ (0, L.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, L.jsx)("p", {
@@ -26591,15 +26591,15 @@ function lT({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function one({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = aT(e.elapsed_seconds), o = [rT[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(lT, {
+function cne({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = rT(e.elapsed_seconds), o = [tT[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, L.jsx)(sT, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: i,
value: r,
max: n
@@ -26614,20 +26614,20 @@ function one({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: i })
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: i })
});
}
-function uT({ run: e, followups: t, runs: n }) {
- let r = sT(e.result_summary), i = aT(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- rT[e.trigger] || e.trigger,
+function cT({ run: e, followups: t, runs: n }) {
+ let r = aT(e.result_summary), i = rT(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ tT[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${oT(a.finished_at)} – ${oT(e.finished_at)}`
+ `${iT(a.finished_at)} – ${iT(e.finished_at)}`
] : [
- rT[e.trigger] || e.trigger,
- oT(e.finished_at),
+ tT[e.trigger] || e.trigger,
+ iT(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(lT, {
+ return /* @__PURE__ */ (0, L.jsx)(sT, {
run: e,
meta: o,
footer: e.error,
@@ -26638,7 +26638,7 @@ function uT({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function dT({ title: e, children: t }) {
+function lT({ title: e, children: t }) {
let n = (0, I.useId)();
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-labelledby": n,
@@ -26650,41 +26650,41 @@ function dT({ title: e, children: t }) {
}), t]
});
}
-function fT({ live: e = !1, children: t }) {
+function uT({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function sne(e) {
+function lne(e) {
let t = kt({
- queryKey: Yw,
- queryFn: ({ signal: e }) => tT(e),
- refetchInterval: (e) => eT(e.state.data)
+ queryKey: Jw,
+ queryFn: ({ signal: e }) => eT(e),
+ refetchInterval: (e) => $w(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, I.useState)([]), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)(r);
- r !== c && (l(r), i.length && c && a(Zw(i, c)));
+ r !== c && (l(r), i.length && c && a(Xw(i, c)));
let u = At({
- mutationFn: ({ oldest: e }) => Xw(e),
+ mutationFn: ({ oldest: e }) => Yw(e),
onSuccess: (e, { shown: t }) => {
- a((n) => Zw(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Xw(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? K(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = Zw(n.finished || [], i), p = [
+ let f = Xw(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = $te(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 = tne(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(iT)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = ene(w, (e) => tne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ }, x = _.filter((e) => m.get(e.id)?.some(nT)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = nne(w, (e) => rne(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
d ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d
@@ -26693,20 +26693,20 @@ function sne(e) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, L.jsx)(Vw, {
+ E ? /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: ES,
+ icon: wS,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(dT, {
+ /* @__PURE__ */ (0, L.jsx)(lT, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(fT, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(uT, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(one, {
+ children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(cne, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(uT, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(cT, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -26715,17 +26715,17 @@ function sne(e) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, L.jsx)(dT, {
+ C.length ? /* @__PURE__ */ (0, L.jsx)(lT, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, L.jsx)(fT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(uT, {
+ children: /* @__PURE__ */ (0, L.jsx)(uT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(cT, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, L.jsxs)(dT, {
+ w.length || y ? /* @__PURE__ */ (0, L.jsxs)(lT, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, L.jsx)(fT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(uT, {
+ w.length ? /* @__PURE__ */ (0, L.jsx)(uT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(cT, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -26737,7 +26737,7 @@ function sne(e) {
y ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: mS,
+ leadingIcon: fS,
className: "self-start",
...Y(u.isPending),
onClick: b,
@@ -26750,56 +26750,56 @@ function sne(e) {
}
//#endregion
//#region src/jav-artwork.ts
-function cne(e) {
+function une(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function pT(e, t) {
- return e.is_jav && e.code && e.has_cover && (cne(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function dT(e, t) {
+ return e.is_jav && e.code && e.has_cover && (une(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function mT(e, t) {
+function fT(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var lne = (e, t) => [
+var dne = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], une = (e, t) => [
+], fne = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function dne(e, t, n, r, i) {
+async function pne(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
- let o = await jw(`/api/items?${a}`, i), s = {
+ let o = await Aw(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await jw("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await Aw("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var fne = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, pne = (e, t) => {
+var mne = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, hne = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function hT(e) {
- let t = mT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function pT(e) {
+ let t = fT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: lne(t, e.revision || 0),
+ queryKey: dne(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
- let o = await dne(t, i, n, r, a);
+ let o = await pne(t, i, n, r, a);
return e.cache(o.items), o;
},
initialPageParam: 0,
- getNextPageParam: fne(n)
+ getNextPageParam: mne(n)
};
}
-function gT(e) {
+function gne(e) {
return {
- queryKey: une(e.entityKey || "", e.revision || 0),
+ queryKey: fne(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -26814,34 +26814,12 @@ function gT(e) {
};
},
initialPageParam: 0,
- getNextPageParam: pne
+ getNextPageParam: hne
};
}
-async function mne(e, t) {
- if (e.mode === "items") return;
- if (e.mode === "entity") {
- let n = gT(e);
- if (e.initial) {
- X.setQueryData(n.queryKey, {
- pages: [{
- ...e.initial,
- items: e.initial.items || [],
- offset: 0
- }],
- pageParams: [0]
- });
- return;
- }
- await X.fetchInfiniteQuery({
- ...n,
- queryFn: ({ pageParam: e }) => n.queryFn({
- pageParam: e,
- signal: t
- })
- });
- return;
- }
- let n = hT(e);
+async function _ne(e, t) {
+ if (e.mode !== "catalog") return;
+ let n = pT(e);
await X.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -26850,7 +26828,7 @@ async function mne(e, t) {
})
});
}
-function hne(e, t, n) {
+function vne(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -26865,28 +26843,28 @@ function hne(e, t, n) {
return !0;
}) : [...e];
}
-var _T = (e, t) => !!e && !!pT(e, t);
-function gne(e, t) {
+var mT = (e, t) => !!e && !!dT(e, t);
+function yne(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
-function _ne(e, t) {
- let n = (e) => _T(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => _T(e, t)) || e[e.length - 1];
+function bne(e, t) {
+ let n = (e) => mT(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => mT(e, t)) || e[e.length - 1];
}
-function vne(e, { collapse: t, mix: n, javImage: r }) {
+function xne(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = hne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = vne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = _ne(e, r);
+ let t = bne(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -26899,16 +26877,16 @@ function vne(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function yne(e, t, n) {
+function Sne(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function bne(e, t) {
+function Cne(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function xne(e, t) {
+function wne(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -26923,7 +26901,7 @@ function xne(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function vT(e, t) {
+function hT(e, t) {
let [n, r] = (0, I.useState)(e ? "skeleton" : "none"), [i] = (0, I.useState)(() => e ? t() : ""), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
a.current && g(a.current);
@@ -26949,7 +26927,7 @@ function vT(e, t) {
fading: n === "fade"
};
}
-function yT({ message: e, onRetry: t }) {
+function gT({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -26963,21 +26941,21 @@ function yT({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var bT = {
+var _T = {
kind: "",
html: ""
};
-function xT(e, t, n, i, a) {
- let o = pT(e, i);
- if (!o) return bT;
+function vT(e, t, n, i, a) {
+ let o = dT(e, i);
+ if (!o) return _T;
let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, t, n), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${n ? "eager" : "lazy"}"${u}>`;
return {
kind: o === "cover" ? "cover" : "thumb",
html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${r(s)}" data-jav-thumb="${r(c)}" data-jav-image-layout="${t}" `)
};
}
-function ST(e, t, n, i, a) {
- if (e.is_jav) return xT(e, t, n, i, a);
+function Tne(e, t, n, i, a) {
+ if (e.is_jav) return vT(e, t, n, i, a);
let o = n ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -26985,49 +26963,29 @@ function ST(e, t, n, i, a) {
} : e.has_thumb || e.has_local_poster ? {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`
- } : bT;
-}
-//#endregion
-//#region src/react/components/art-slot.tsx
-function CT({ artwork: e, identity: t = e.html, relayout: n }) {
- let [r, i] = (0, I.useState)({
- identity: t,
- artwork: e
- });
- r.identity !== t && i({
- identity: t,
- artwork: e
- });
- let a = r.identity === t ? r.artwork : e, o = (0, I.useRef)(null), s = (0, I.useRef)(n);
- return s.current = n, (0, I.useLayoutEffect)(() => {
- o.current && s.current?.(o.current);
- }, [e.html]), /* @__PURE__ */ (0, L.jsx)("span", {
- ref: o,
- "data-media-art": a.kind,
- dangerouslySetInnerHTML: { __html: a.html }
- });
+ } : _T;
}
//#endregion
//#region src/react/components/media-card.tsx
-var wT = .75, Sne = 9 / 16;
-function TT({ name: e }) {
+var yT = .75, Ene = 9 / 16;
+function bT({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-var Cne = {
+var Dne = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, wne = (e) => e.is_jav ? "女优" : "艺人";
-function Tne(e, t, n) {
- return t === "short" || n.portrait ? Sne : n.active && e.is_jav && n.size === "big" ? wT : 16 / 9;
+}, One = (e) => e.is_jav ? "女优" : "艺人";
+function kne(e, t, n) {
+ return t === "short" || n.portrait ? Ene : n.active && e.is_jav && n.size === "big" ? yT : 16 / 9;
}
-function Ene(e, t) {
- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = wne(e);
+function Ane(e, t) {
+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = One(e);
return {
avatar: c ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-avatars": "",
@@ -27073,7 +27031,7 @@ function Ene(e, t) {
})
};
}
-function Dne() {
+function jne() {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -27092,7 +27050,7 @@ function Dne() {
})]
});
}
-function One({ item: e, actions: t }) {
+function Mne({ item: e, actions: t }) {
let [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-later": "",
@@ -27110,15 +27068,15 @@ function One({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function ET(e, t) {
+function xT(e, t) {
let n = e?.querySelector("video.hv");
!n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
+function Nne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
let d = (0, I.useRef)(null), f = (0, I.useRef)({
item: e,
helpers: c
@@ -27130,12 +27088,12 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
let p = (0, I.useCallback)((e) => {
let { item: t, helpers: n } = f.current;
d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);
- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = ST(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : ST(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = Ene(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = Tne(e, n.active && e.is_jav ? n.size : "small", !1, n.javImage, c.coverHtml), v = m?.title || e.name || "", y = c.displayName(e, v), b = m?.total_size ?? e.size, x = m?.total_duration ?? e.duration, S = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = Ane(e, c), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
e.watch_later && "later"
- ].filter(Boolean), k = (t) => {
+ ].filter(Boolean), D = (t) => {
let n = t.target, r = d.current;
if (!r) return;
if (o || t.shiftKey || t.ctrlKey || t.metaKey) {
@@ -27162,14 +27120,13 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
return;
}
u(e, r);
- }, A = /* @__PURE__ */ (0, L.jsxs)("div", {
+ }, O = /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(Tne(e, t, n)) },
+ style: { "--card-ratio": String(kne(e, t, n)) },
children: [
- v.html ? /* @__PURE__ */ (0, L.jsx)(CT, {
- artwork: v,
- identity: y,
- relayout: (e) => c.relayoutArt(e, _)
+ _.html ? /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-media-art": _.kind,
+ dangerouslySetInnerHTML: { __html: _.html }
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
@@ -27180,11 +27137,11 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(bT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
m ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-group": "",
@@ -27197,22 +27154,22 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-duration": "",
- children: i(C)
+ children: i(x)
}),
- w > 0 ? /* @__PURE__ */ (0, L.jsx)("div", {
+ S > 0 ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-progress": "",
role: "progressbar",
"aria-label": "观看进度",
"aria-valuemin": 0,
"aria-valuemax": 100,
- "aria-valuenow": Math.round(w * 100),
- children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${(w * 100).toFixed(1)}%` } })
+ "aria-valuenow": Math.round(S * 100),
+ children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${(S * 100).toFixed(1)}%` } })
}) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-scrub": "",
children: /* @__PURE__ */ (0, L.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, L.jsx)(Dne, {}),
- /* @__PURE__ */ (0, L.jsx)(One, {
+ /* @__PURE__ */ (0, L.jsx)(jne, {}),
+ /* @__PURE__ */ (0, L.jsx)(Mne, {
item: e,
actions: l
}),
@@ -27222,27 +27179,27 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), ET(d.current, -s);
+ e.stopPropagation(), xT(d.current, -s);
},
title: `后退 ${s} 秒`,
"aria-label": `后退 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), ET(d.current, s);
+ e.stopPropagation(), xT(d.current, s);
},
title: `前进 ${s} 秒`,
"aria-label": `前进 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "expand" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: "expand" })
})
]
})
@@ -27257,40 +27214,40 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
"data-stacked": g ? "" : void 0,
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
- onClick: k,
+ onClick: D,
children: [
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-open": "",
"data-open": "",
- "aria-label": `打开 ${x}${m ? "分卷" : h ? "版本" : "详情"}`
+ "aria-label": `打开 ${y}${m ? "分卷" : h ? "版本" : "详情"}`
}),
g ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-stack": "",
- children: A
- }) : A,
+ children: O
+ }) : O,
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-meta": "",
- children: [T, /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [C, /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-text": "",
children: [
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-title": "",
"data-open": "",
- dangerouslySetInnerHTML: { __html: c.titleHtml(e, b) }
+ dangerouslySetInnerHTML: { __html: c.titleHtml(e, v) }
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-byline": "",
children: [
- E,
+ w,
e.why ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-why": "",
children: e.why
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-size": "",
- children: Number(S) > 0 ? a(Number(S)) : "大小未知"
+ children: Number(b) > 0 ? a(Number(b)) : "大小未知"
}),
e.play_count ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-watch-count": "",
@@ -27298,13 +27255,13 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}) : null,
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-flags": "",
- children: O.map((e) => /* @__PURE__ */ (0, L.jsx)("i", { "data-flag": e }, e))
+ children: E.map((e) => /* @__PURE__ */ (0, L.jsx)("i", { "data-flag": e }, e))
})
]
}),
- D.length ? /* @__PURE__ */ (0, L.jsx)("div", {
+ T.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-tags": "",
- children: D.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {
+ children: T.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-media-tag": "",
disabled: !!e.follow_item_id,
@@ -27318,8 +27275,8 @@ function kne({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
]
});
}
-function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {
- let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : Cne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
+function Pne({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOpen: s }) {
+ let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : Dne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), o.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, v = (t) => {
if (c.current) {
@@ -27345,7 +27302,7 @@ function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, L.jsx)(bT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
}),
d ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -27357,11 +27314,11 @@ function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(bT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
@@ -27371,7 +27328,7 @@ function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
onClick: _,
"aria-busy": l || void 0,
"aria-disabled": l || void 0,
- children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: w(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(TT, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })
+ children: l ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: w(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, L.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(bT, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, L.jsx)("span", { children: g })] })
})
]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -27380,7 +27337,7 @@ function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, L.jsx)(TT, { name: m })
+ children: /* @__PURE__ */ (0, L.jsx)(bT, { name: m })
}), /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", {
@@ -27409,14 +27366,14 @@ function Ane({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
})]
});
}
-function jne(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(Ane, { ...e }) : /* @__PURE__ */ (0, L.jsx)(kne, { ...e });
+function Fne(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(Pne, { ...e }) : /* @__PURE__ */ (0, L.jsx)(Nne, { ...e });
}
-var DT = (0, I.memo)(jne), Mne = { "text-aa": 1.435 }, OT = /* @__PURE__ */ new Map();
-function kT(e) {
- let t = OT.get(e);
+var ST = (0, I.memo)(Fne), Ine = { "text-aa": 1.435 }, CT = /* @__PURE__ */ new Map();
+function wT(e) {
+ let t = CT.get(e);
if (t) return t;
- let n = Mne[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {
+ let n = Ine[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -27430,16 +27387,16 @@ function kT(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, OT.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, CT.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var Nne = 1100, Pne = 340, Fne = 5e3;
-function Ine(e, t) {
+var Lne = 1100, Rne = 340, zne = 5e3;
+function Bne(e, t) {
return new Promise((n) => {
let r = new Image(), i = !1, a = (e) => {
i || (i = !0, clearTimeout(s), r.onload = null, r.onerror = null, t.cancels.delete(o), n(e));
- }, o = () => a(!1), s = setTimeout(o, Fne);
+ }, o = () => a(!1), s = setTimeout(o, zne);
t.cancels.add(o), r.onerror = o, r.onload = () => {
if (!r.naturalWidth) {
a(!1);
@@ -27449,7 +27406,7 @@ function Ine(e, t) {
}, r.src = e;
});
}
-function Lne({ load: e, canFlip: t }) {
+function Vne({ load: e, canFlip: t }) {
let [n, r] = (0, I.useState)([]), [i, a] = (0, I.useState)(0), [o, s] = (0, I.useState)(null), c = (0, I.useRef)({
live: !1,
generation: 0,
@@ -27491,11 +27448,11 @@ function Lne({ load: e, canFlip: t }) {
return;
}
if (!n() || !l.current.canFlip() || i.length < 2) return;
- let o = await Promise.all(i.map((t) => Ine(t, e)));
+ let o = await Promise.all(i.map((t) => Bne(t, e)));
if (!n() || !l.current.canFlip()) return;
let u = i.filter((e, t) => o[t]);
u.length < 2 || (e.count = u.length, e.at = 0, r(u), a(0), s(null), d(420, () => {
- f(), e.cycle = setInterval(f, Nne);
+ f(), e.cycle = setInterval(f, Lne);
}));
};
return (0, I.useEffect)(() => u, [u]), {
@@ -27504,7 +27461,7 @@ function Lne({ load: e, canFlip: t }) {
leaving: o,
onPointerEnter: () => {
let e = c.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d(Pne, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d(Rne, () => {
e.armed = null, p();
});
},
@@ -27515,8 +27472,8 @@ function Lne({ load: e, canFlip: t }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var AT = kT("play");
-function Rne({ src: e }) {
+var TT = wT("play");
+function Hne({ src: e }) {
let [t, n] = (0, I.useState)(!1);
return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {
"data-mix-poster": "",
@@ -27527,8 +27484,8 @@ function Rne({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var jT = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function zne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+var ET = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Une({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, L.jsx)("button", {
@@ -27536,60 +27493,59 @@ function zne({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${jT} cursor-pointer outline-none`,
+ className: `${ET} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${jT} mt-0.5`,
+ className: `${ET} mt-0.5`,
children: t
});
}
-function MT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
- let x = Lne({
+function DT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, faceHtml: m, badge: h, glyph: g, wholeCard: _, ...v }) {
+ let y = Vne({
load: i,
canFlip: a
- }), S = (0, I.useRef)(x.onPointerLeave);
- S.current = x.onPointerLeave;
- let C = (0, I.useRef)(null), w = (0, I.useCallback)((e) => {
- C.current = e, e && (e._stopHover = () => S.current());
- }, []), T = l ? () => {
- C.current && l(C.current);
- } : void 0, E = p !== void 0 || f !== void 0;
+ }), b = (0, I.useRef)(y.onPointerLeave);
+ b.current = y.onPointerLeave;
+ let x = (0, I.useRef)(null), S = (0, I.useCallback)((e) => {
+ x.current = e, e && (e._stopHover = () => b.current());
+ }, []), C = l ? () => {
+ x.current && l(x.current);
+ } : void 0, w = p !== void 0 || f !== void 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
- ...b,
- ref: w,
+ ...v,
+ ref: S,
"data-mix-card": "",
- onMouseEnter: x.onPointerEnter,
- onMouseLeave: x.onPointerLeave,
- onClick: y ? T : void 0,
+ onMouseEnter: y.onPointerEnter,
+ onMouseLeave: y.onPointerLeave,
+ onClick: _ ? C : void 0,
className: "relative flex min-w-0 cursor-pointer flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-stack": "",
className: "relative isolate rounded-surface",
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-mix-cover": "",
- "data-media-pic": E ? "" : void 0,
+ "data-media-pic": w ? "" : void 0,
style: f === void 0 ? void 0 : { "--card-ratio": String(f) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface",
children: [
- p?.html ? /* @__PURE__ */ (0, L.jsx)(CT, {
- artwork: p,
- identity: m,
- relayout: h
- }) : r ? /* @__PURE__ */ (0, L.jsx)(Rne, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
+ p?.html ? /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-media-art": p.kind,
+ dangerouslySetInnerHTML: { __html: p.html }
+ }) : r ? /* @__PURE__ */ (0, L.jsx)(Hne, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
/* @__PURE__ */ (0, L.jsx)("div", {
"data-mix-faces": "",
- hidden: !x.faces.length,
- children: x.faces.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {
- "data-mix-face": t === x.current ? "on" : t === x.leaving ? "off" : "",
- children: g ? /* @__PURE__ */ (0, L.jsx)("span", {
+ hidden: !y.faces.length,
+ children: y.faces.map((e, t) => /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-mix-face": t === y.current ? "on" : t === y.leaving ? "off" : "",
+ children: m ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "",
- dangerouslySetInnerHTML: { __html: g(e) }
+ dangerouslySetInnerHTML: { __html: m(e) }
}) : /* @__PURE__ */ (0, L.jsx)("img", {
src: e,
alt: "",
@@ -27602,27 +27558,27 @@ function MT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
"data-mix-open": "",
"aria-label": u,
disabled: !l,
- onClick: y ? void 0 : T,
+ onClick: _ ? void 0 : C,
className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, L.jsx)(AT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(TT, {
"aria-hidden": !0,
className: "size-3.75"
- }), _ ?? `${n} 个视频`]
+ }), h ?? `${n} 个视频`]
})
]
})
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-start gap-2.25",
children: [
- v ? /* @__PURE__ */ (0, L.jsx)("span", {
+ g ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, L.jsx)(AT, {})
- }) : /* @__PURE__ */ (0, L.jsx)(zne, {
+ children: /* @__PURE__ */ (0, L.jsx)(TT, {})
+ }) : /* @__PURE__ */ (0, L.jsx)(Une, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -27647,21 +27603,21 @@ function MT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var NT = "";
-function Bne(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(Hne, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${mT(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, L.jsx)(Une, { ...e }, t);
+var OT = "";
+function kT(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(Gne, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${fT(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, L.jsx)(Kne, { ...e }, t);
}
-function Vne({ name: e }) {
+function Wne({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function Hne(e) {
- let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(DT, {
+function Gne(e) {
+ let { actions: t } = e, n = (0, I.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, L.jsx)(ST, {
item: i,
variant: r,
layout: e.layout,
@@ -27681,51 +27637,59 @@ function Hne(e) {
children: i
});
}
-function Une(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? gT(e) : hT(e), s = jt({
+function Kne(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? gne(e) : pT(e), s = i && e.initial ? {
+ pages: [{
+ ...e.initial,
+ items: e.initial.items || [],
+ offset: 0
+ }],
+ pageParams: [0]
+ } : void 0, c = jt({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
signal: t
}),
initialPageParam: 0,
- getNextPageParam: o.getNextPageParam
- }), c = (0, I.useRef)(!1);
+ getNextPageParam: o.getNextPageParam,
+ initialData: s
+ }), l = (0, I.useRef)(!1);
(0, I.useEffect)(() => {
- s.isPending || c.current || (c.current = !0, e.settled?.(e.revision));
- }, [s.isPending]);
- let { tiles: l, pageStarts: u } = (0, I.useMemo)(() => vne(s.data?.pages || [], {
+ c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
+ }, [c.isPending]);
+ let { tiles: u, pageStarts: f } = (0, I.useMemo)(() => xne(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
}), [
- s.data,
+ c.data,
e.groupCollapse,
e.mix,
a,
r.javImage
- ]), f = l.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(s.data?.pages[0]?.total || 0), m = vT(s.isPending, e.skeletonHtml), h = (0, I.useRef)(null), g = Gne(e, s.data, l, u, h);
+ ]), p = u.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(c.data?.pages[0]?.total || 0), h = hT(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = Jne(e, c.data, u, f, g);
(0, I.useLayoutEffect)(() => {
- if (!s.data) return;
- e.onCount?.(p, f);
+ if (!c.data) return;
+ e.onCount?.(m, p);
let t = a ? null : e.countRow?.querySelector("[data-count-readout]");
if (!t) return;
- let n = `${p.toLocaleString()} 个符合 · 显示 ${f}`;
- NT && (t.dataset.popCount = NT), NT = n, S(t, n);
+ let n = `${m.toLocaleString()} 个符合 · 显示 ${p}`;
+ OT && (t.dataset.popCount = OT), OT = n, S(t, n);
}, [
- s.data,
- p,
- f
+ c.data,
+ m,
+ p
]);
- let _ = (0, I.useCallback)((e, t) => n.open(e, t), [n]), v = (0, I.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, I.useCallback)((e) => n.openShort(e), [n]), b = (0, I.useCallback)(async () => {
- let e = await s.fetchNextPage({ cancelRefetch: !1 });
+ let v = (0, I.useCallback)((e, t) => n.open(e, t), [n]), y = (0, I.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, I.useCallback)((e) => n.openShort(e), [n]), x = (0, I.useCallback)(async () => {
+ let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [s.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(qne, {
+ }, [c.fetchNextPage]), C = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(Xne, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(DT, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(ST, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -27734,22 +27698,22 @@ function Une(e) {
seekSeconds: e.seekSeconds,
helpers: t,
actions: n,
- onOpen: a ? v : _
+ onOpen: a ? y : v
}, i.item.id);
return /* @__PURE__ */ (0, L.jsxs)("div", {
- ref: h,
+ ref: g,
"data-media-body": "",
- "data-grid-reveal": m.fading ? "" : void 0,
- children: [m.layer, (() => {
- if (s.isPending) return null;
- if (!s.data) return /* @__PURE__ */ (0, L.jsx)(yT, {
- message: d(s.error),
- onRetry: () => void s.refetch()
+ "data-grid-reveal": h.fading ? "" : void 0,
+ children: [h.layer, (() => {
+ if (c.isPending) return null;
+ if (!c.data) return /* @__PURE__ */ (0, L.jsx)(gT, {
+ message: d(c.error),
+ onRetry: () => void c.refetch()
});
- if (!l.length) {
+ if (!u.length) {
let t = e.emptyHtml?.({
trash: a,
- libraryEmpty: !!s.data.pages[0]?.libraryEmpty
+ libraryEmpty: !!c.data.pages[0]?.libraryEmpty
}) || "";
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-empty": "",
@@ -27759,23 +27723,23 @@ function Une(e) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: xne(l, g).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
+ children: wne(u, _).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
"data-media-grid": "",
- children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, L.jsx)(Kne, {
+ children: t.tiles.map(C)
+ }), t.strip ? /* @__PURE__ */ (0, L.jsx)(Yne, {
cut: t.strip,
props: e,
- onOpen: y
+ onOpen: b
}) : null] }, t.start))
- }), s.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(Wne, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(qne, {
entity: i,
- load: b,
+ load: x,
enabled: () => e.canLoadMore?.() !== !1
- }, s.data.pages.length) : null] });
+ }, c.data.pages.length) : null] });
})()]
});
}
-function Wne({ entity: e, load: t, enabled: n }) {
+function qne({ entity: e, load: t, enabled: n }) {
let r = (0, I.useRef)(null), i = (0, I.useRef)(!1), a = (0, I.useRef)(!1), [o, s] = (0, I.useState)({
busy: !1,
error: ""
@@ -27836,12 +27800,12 @@ function Wne({ entity: e, load: t, enabled: n }) {
...f,
onClick: () => void l(!0),
dangerouslySetInnerHTML: { __html: v("继续载入中…") }
- }), o.error ? /* @__PURE__ */ (0, L.jsx)(yT, {
+ }), o.error ? /* @__PURE__ */ (0, L.jsx)(gT, {
message: o.error,
onRetry: () => void l(!0)
}) : null] });
}
-function Gne(e, t, n, r, i) {
+function Jne(e, t, n, r, i) {
let [a, o] = (0, I.useState)([]), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(0), u = (0, I.useRef)(0), d = (0, I.useRef)([]);
return (0, I.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, I.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -27850,7 +27814,7 @@ function Gne(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- jw(`/api/items?${bne(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ Aw(`/api/items?${Cne(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -27866,7 +27830,7 @@ function Gne(e, t, n, r, i) {
}, [t]), (0, I.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = yne(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Sne(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -27876,7 +27840,7 @@ function Gne(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Kne({ cut: e, props: t, onOpen: n }) {
+function Yne({ cut: e, props: t, onOpen: n }) {
let r = (0, I.useRef)(null), { wireDrag: i } = t;
return (0, I.useEffect)(() => {
r.current && i(r.current);
@@ -27892,12 +27856,12 @@ function Kne({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, L.jsx)(Vne, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(Wne, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, L.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(DT, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(ST, {
item: e,
variant: "short",
layout: t.layout,
@@ -27911,9 +27875,9 @@ function Kne({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function PT(e, t, n, r) {
+function AT(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? xT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? vT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -27921,18 +27885,18 @@ function PT(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function qne({ seed: e, layout: t, helpers: n, actions: r }) {
+function Xne({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, I.useRef)(/* @__PURE__ */ new Map()), a = (0, I.useRef)(t);
a.current = t;
- let o = gne(e, n.tagLabel), s = (0, I.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => _T(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), PT(e, t, !0, n).html])), o.map((e) => String(e.id));
+ let o = yne(e, n.tagLabel), s = (0, I.useCallback)(async () => {
+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => mT(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(o.map((e) => [String(e.id), AT(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = PT(e, t, !1, n);
- return /* @__PURE__ */ (0, L.jsx)(MT, {
+ ]), c = t.active && !!e.is_jav;
+ return /* @__PURE__ */ (0, L.jsx)(DT, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -27941,13 +27905,8 @@ function qne({ seed: e, layout: t, helpers: n, actions: r }) {
glyph: !0,
wholeCard: !0,
poster: null,
- artwork: u,
- artworkIdentity: l === "small" ? u.html : PT(e, {
- ...t,
- size: "small"
- }, !1, n).html,
- relayoutArt: (e) => n.relayoutArt(e, l),
- ratio: c && t.size === "big" ? wT : 16 / 9,
+ artwork: AT(e, t, !1, n),
+ ratio: c && t.size === "big" ? yT : 16 / 9,
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -27960,12 +27919,12 @@ function qne({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var FT = Symbol("default");
-function IT({ values: e, children: t }) {
+var jT = Symbol("default");
+function MT({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ I.createElement(n.Provider, { value: r }, t);
return t;
}
-function LT(e) {
+function NT(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, I.useMemo)(() => {
let e, l, u;
@@ -27999,11 +27958,11 @@ function LT(e) {
c
]);
}
-function RT(e, t) {
+function PT(e, t) {
let n = (0, I.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || FT;
+ let e = t || jT;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -28012,8 +27971,8 @@ function RT(e, t) {
}
return n;
}
-function zT(e, t, n) {
- let { ref: r, ...i } = RT(n, e.slot) || {}, a = oh((0, I.useMemo)(() => Vm(t, r), [t, r])), o = H(i, e);
+function FT(e, t, n) {
+ let { ref: r, ...i } = PT(n, e.slot) || {}, a = oh((0, I.useMemo)(() => Vm(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -28031,7 +27990,7 @@ function zT(e, t, n) {
...e.style
}), [o, a];
}
-function BT(e = !0) {
+function IT(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -28039,12 +27998,12 @@ function BT(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function VT(e) {
+function LT(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Jne(e, t, n) {
+function Zne(e, t, n) {
let { render: r, ...i } = t, a = (0, I.useRef)(null), o = (0, I.useMemo)(() => Vm(n, a), [n, a]);
gp(() => {}, [e, r]);
let s = {
@@ -28053,19 +28012,19 @@ function Jne(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ I.createElement(e, s);
}
-var HT = {}, UT = new Proxy({}, { get(e, t) {
+var RT = {}, zT = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = HT[t];
- return n || (n = /*#__PURE__*/ (0, I.forwardRef)(Jne.bind(null, t)), HT[t] = n), n;
-} }), WT = /*#__PURE__*/ (0, I.createContext)(null), GT = /*#__PURE__*/ (0, I.createContext)(null), KT = /*#__PURE__*/ (0, I.createContext)(null), qT = {
+ let n = RT[t];
+ return n || (n = /*#__PURE__*/ (0, I.forwardRef)(Zne.bind(null, t)), RT[t] = n), n;
+} }), BT = /*#__PURE__*/ (0, I.createContext)(null), VT = /*#__PURE__*/ (0, I.createContext)(null), HT = /*#__PURE__*/ (0, I.createContext)(null), UT = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return JT(e, null, t);
+ return WT(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return JT(e, t, n);
+ return WT(e, t, n);
}
};
-function JT(e, t, n) {
+function WT(e, t, n) {
return zf({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -28076,11 +28035,11 @@ function JT(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Yne(e, t, n));
+ }), r, Qne(e, t, n));
}
});
}
-function Yne(e, t, n) {
+function Qne(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -28099,25 +28058,25 @@ function Yne(e, t, n) {
}
return s;
}
-var YT = /*#__PURE__*/ (0, I.createContext)(qT);
-function XT(e) {
+var GT = /*#__PURE__*/ (0, I.createContext)(UT);
+function KT(e) {
return (0, I.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var ZT = /*#__PURE__*/ (0, I.createContext)({}), Xne = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, ZT);
- let { elementType: n = "label", ...r } = e, i = UT[n];
+var qT = /*#__PURE__*/ (0, I.createContext)({}), $ne = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, qT);
+ let { elementType: n = "label", ...r } = e, i = zT[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Zne = /*#__PURE__*/ (0, I.createContext)(null), QT = /*#__PURE__*/ (0, I.createContext)({}), $T = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, QT);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Lg(e, t);
- i = $ne(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = ly(e), { hoverProps: l, isHovered: u } = hy({
+}), ere = /*#__PURE__*/ (0, I.createContext)(null), JT = /*#__PURE__*/ (0, I.createContext)({}), YT = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, JT);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Ig(e, t);
+ i = nre(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = cy(e), { hoverProps: l, isHovered: u } = my({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -28127,7 +28086,7 @@ var ZT = /*#__PURE__*/ (0, I.createContext)({}), Xne = /*#__PURE__*/ ph(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = LT({
+ }, f = NT({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -28136,15 +28095,15 @@ var ZT = /*#__PURE__*/ (0, I.createContext)({}), Xne = /*#__PURE__*/ ph(function
let g = (0, I.useRef)(r);
(0, I.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && h_(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && m_(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = gg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ I.createElement(UT.button, {
+ let _ = hg(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ I.createElement(zT.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28158,62 +28117,62 @@ var ZT = /*#__PURE__*/ (0, I.createContext)({}), Xne = /*#__PURE__*/ ph(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ I.createElement(Zne.Provider, { value: { id: m } }, f.children));
-}), Qne = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function $ne(e, t) {
+ }, /*#__PURE__*/ I.createElement(ere.Provider, { value: { id: m } }, f.children));
+}), tre = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function nre(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Qne.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !tre.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var eE = /*#__PURE__*/ (0, I.createContext)({}), tE = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, eE);
- let { children: n, level: r = 3, className: i, ...a } = e, o = UT[`h${r}`];
+var XT = /*#__PURE__*/ (0, I.createContext)({}), ZT = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, XT);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = zT[`h${r}`];
return /*#__PURE__*/ I.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), nE = /*#__PURE__*/ (0, I.createContext)({}), ere = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, nE);
- let { elementType: n = "span", ...r } = e, i = UT[n];
+}), QT = /*#__PURE__*/ (0, I.createContext)({}), rre = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, QT);
+ let { elementType: n = "span", ...r } = e, i = zT[n];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), rE = /*#__PURE__*/ (0, I.createContext)(null), iE = /*#__PURE__*/ (0, I.createContext)(null), aE = /*#__PURE__*/ (0, I.createContext)(null), oE = /*#__PURE__*/ (0, I.createContext)(null), tre = /*#__PURE__*/ (0, I.createContext)(null), sE = /*#__PURE__*/ (0, I.createContext)(null);
-function nre(e, t) {
- let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(tre), a = oh((0, I.useMemo)(() => Vm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...VT(e),
+}), $T = /*#__PURE__*/ (0, I.createContext)(null), eE = /*#__PURE__*/ (0, I.createContext)(null), tE = /*#__PURE__*/ (0, I.createContext)(null), nE = /*#__PURE__*/ (0, I.createContext)(null), ire = /*#__PURE__*/ (0, I.createContext)(null), rE = /*#__PURE__*/ (0, I.createContext)(null);
+function are(e, t) {
+ let { validationBehavior: n } = PT(eE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(ire), a = oh((0, I.useMemo)(() => Vm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...LT(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Tee(o, i, a) : L_(o, H_(e), a), a];
+ return [i ? Eee(o, i, a) : I_(o, V_(e), a), a];
}
-var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var ore = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zT(r, t, aE);
- let [i, a] = nre(e, n);
- return /*#__PURE__*/ I.createElement(sE.Provider, { value: {
+ [e, t] = FT(r, t, tE);
+ let [i, a] = are(e, n);
+ return /*#__PURE__*/ I.createElement(rE.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ I.createElement(ire, {
+ } }, /*#__PURE__*/ I.createElement(sre, {
...e,
ref: t
}));
-}), ire = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(sE), { isFocused: p, isFocusVisible: m, focusProps: h } = ly(), g = a || o, { hoverProps: _, isHovered: v } = hy({
+}), sre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, I.useContext)(rE), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = my({
...e,
isDisabled: g
- }), y = LT({
+ }), y = NT({
...e,
defaultClassName: u,
values: {
@@ -28228,8 +28187,8 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = gg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(UT.label, {
+ }), b = hg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(zT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28243,20 +28202,20 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), cE = /*#__PURE__*/ (0, I.createContext)({}), are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, cE);
+}), iE = /*#__PURE__*/ (0, I.createContext)({}), cre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, iE);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = hy({
+ let { hoverProps: l, isHovered: u } = my({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ly({ within: !0 }), m = LT({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = NT({
...e,
values: {
isHovered: u,
@@ -28267,7 +28226,7 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ I.createElement(UT.div, {
+ return /*#__PURE__*/ I.createElement(zT.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28280,18 +28239,18 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), lE = /*#__PURE__*/ (0, I.createContext)({}), ore = (e) => {
+}), aE = /*#__PURE__*/ (0, I.createContext)({}), lre = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, sre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, lE);
- let { hoverProps: n, isHovered: r } = hy({
+}, ure = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, aE);
+ let { hoverProps: n, isHovered: r } = my({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = ly({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = LT({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = NT({
...e,
values: {
isHovered: r,
@@ -28302,8 +28261,8 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ I.createElement(UT.input, {
- ...H(ore(e), o, n),
+ return /*#__PURE__*/ I.createElement(zT.input, {
+ ...H(lre(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28312,8 +28271,8 @@ var rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), uE = {};
-uE = {
+}), oE = {};
+oE = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28321,8 +28280,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var dE = {};
-dE = {
+var sE = {};
+sE = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28330,8 +28289,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var fE = {};
-fE = {
+var cE = {};
+cE = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28339,8 +28298,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var pE = {};
-pE = {
+var lE = {};
+lE = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28348,8 +28307,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var mE = {};
-mE = {
+var uE = {};
+uE = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28357,8 +28316,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var hE = {};
-hE = {
+var dE = {};
+dE = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28366,8 +28325,8 @@ hE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var gE = {};
-gE = {
+var fE = {};
+fE = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28375,8 +28334,8 @@ gE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var _E = {};
-_E = {
+var pE = {};
+pE = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28384,8 +28343,8 @@ _E = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var vE = {};
-vE = {
+var mE = {};
+mE = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28393,8 +28352,8 @@ vE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var yE = {};
-yE = {
+var hE = {};
+hE = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28402,8 +28361,8 @@ yE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var bE = {};
-bE = {
+var gE = {};
+gE = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28411,8 +28370,8 @@ bE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var xE = {};
-xE = {
+var _E = {};
+_E = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -28420,8 +28379,8 @@ xE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var SE = {};
-SE = {
+var vE = {};
+vE = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -28429,8 +28388,8 @@ SE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var CE = {};
-CE = {
+var yE = {};
+yE = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -28438,8 +28397,8 @@ CE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var wE = {};
-wE = {
+var bE = {};
+bE = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -28447,8 +28406,8 @@ wE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var TE = {};
-TE = {
+var xE = {};
+xE = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -28456,8 +28415,8 @@ TE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var EE = {};
-EE = {
+var SE = {};
+SE = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -28465,8 +28424,8 @@ EE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var DE = {};
-DE = {
+var CE = {};
+CE = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -28474,8 +28433,8 @@ DE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var OE = {};
-OE = {
+var wE = {};
+wE = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -28483,8 +28442,8 @@ OE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var kE = {};
-kE = {
+var TE = {};
+TE = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -28492,8 +28451,8 @@ kE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var AE = {};
-AE = {
+var EE = {};
+EE = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -28501,8 +28460,8 @@ AE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var jE = {};
-jE = {
+var DE = {};
+DE = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -28510,8 +28469,8 @@ jE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var ME = {};
-ME = {
+var OE = {};
+OE = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28519,8 +28478,8 @@ ME = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var NE = {};
-NE = {
+var kE = {};
+kE = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28528,8 +28487,8 @@ NE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var PE = {};
-PE = {
+var AE = {};
+AE = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -28537,8 +28496,8 @@ PE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var FE = {};
-FE = {
+var jE = {};
+jE = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -28546,8 +28505,8 @@ FE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var IE = {};
-IE = {
+var ME = {};
+ME = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -28555,8 +28514,8 @@ IE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var LE = {};
-LE = {
+var NE = {};
+NE = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -28564,8 +28523,8 @@ LE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var RE = {};
-RE = {
+var PE = {};
+PE = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -28573,8 +28532,8 @@ RE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var zE = {};
-zE = {
+var FE = {};
+FE = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -28582,8 +28541,8 @@ zE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var BE = {};
-BE = {
+var IE = {};
+IE = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -28591,8 +28550,8 @@ BE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var VE = {};
-VE = {
+var LE = {};
+LE = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -28600,8 +28559,8 @@ VE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var HE = {};
-HE = {
+var RE = {};
+RE = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -28609,8 +28568,8 @@ HE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var UE = {};
-UE = {
+var zE = {};
+zE = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -28618,52 +28577,52 @@ UE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var WE = {};
-WE = {
- "ar-AE": uE,
- "bg-BG": dE,
- "cs-CZ": fE,
- "da-DK": pE,
- "de-DE": mE,
- "el-GR": hE,
- "en-US": gE,
- "es-ES": _E,
- "et-EE": vE,
- "fi-FI": yE,
- "fr-FR": bE,
- "he-IL": xE,
- "hr-HR": SE,
- "hu-HU": CE,
- "it-IT": wE,
- "ja-JP": TE,
- "ko-KR": EE,
- "lt-LT": DE,
- "lv-LV": OE,
- "nb-NO": kE,
- "nl-NL": AE,
- "pl-PL": jE,
- "pt-BR": ME,
- "pt-PT": NE,
- "ro-RO": PE,
- "ru-RU": FE,
- "sk-SK": IE,
- "sl-SI": LE,
- "sr-SP": RE,
- "sv-SE": zE,
- "tr-TR": BE,
- "uk-UA": VE,
- "zh-CN": HE,
- "zh-TW": UE
+var BE = {};
+BE = {
+ "ar-AE": oE,
+ "bg-BG": sE,
+ "cs-CZ": cE,
+ "da-DK": lE,
+ "de-DE": uE,
+ "el-GR": dE,
+ "en-US": fE,
+ "es-ES": pE,
+ "et-EE": mE,
+ "fi-FI": hE,
+ "fr-FR": gE,
+ "he-IL": _E,
+ "hr-HR": vE,
+ "hu-HU": yE,
+ "it-IT": bE,
+ "ja-JP": xE,
+ "ko-KR": SE,
+ "lt-LT": CE,
+ "lv-LV": wE,
+ "nb-NO": TE,
+ "nl-NL": EE,
+ "pl-PL": DE,
+ "pt-BR": OE,
+ "pt-PT": kE,
+ "ro-RO": AE,
+ "ru-RU": jE,
+ "sk-SK": ME,
+ "sl-SI": NE,
+ "sr-SP": PE,
+ "sv-SE": FE,
+ "tr-TR": IE,
+ "uk-UA": LE,
+ "zh-CN": RE,
+ "zh-TW": zE
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var GE = /*#__PURE__*/ (0, I.createContext)({}), KE = /*#__PURE__*/ (0, I.createContext)(null), cre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { render: n } = (0, I.useContext)(KE);
+var VE = /*#__PURE__*/ (0, I.createContext)({}), HE = /*#__PURE__*/ (0, I.createContext)(null), dre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { render: n } = (0, I.useContext)(HE);
return /*#__PURE__*/ I.createElement(I.Fragment, null, n(e, t));
});
-function qE(e, t) {
+function UE(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, I.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(cre, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(dre, { target: e });
}, [
t?.target,
r,
@@ -28671,7 +28630,7 @@ function qE(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function JE(e, t, n) {
+function WE(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -28694,14 +28653,14 @@ function JE(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var YE = /*#__PURE__*/ (0, I.createContext)({}), lre = /*#__PURE__*/ (0, I.createContext)(null);
-function XE(e) {
+var GE = /*#__PURE__*/ (0, I.createContext)({}), fre = /*#__PURE__*/ (0, I.createContext)(null);
+function KE(e) {
let t = (0, I.useRef)({});
- return /*#__PURE__*/ I.createElement(lre.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ I.createElement(fre.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var ZE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), QE = /*#__PURE__*/ (0, I.createContext)({}), ure = /*#__PURE__*/ jh(class extends kf {
+var qE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), JE = /*#__PURE__*/ (0, I.createContext)({}), pre = /*#__PURE__*/ jh(class extends kf {
static {
this.type = "separator";
}
@@ -28714,14 +28673,14 @@ var ZE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), QE = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = zT(e, t, QE);
+ [e, t] = FT(e, t, JE);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = UT[c], { separatorProps: u } = gte({
+ let l = zT[c], { separatorProps: u } = vte({
...s,
elementType: n,
orientation: r
- }), d = gg(e, { global: !0 });
+ }), d = hg(e, { global: !0 });
return /*#__PURE__*/ I.createElement(l, {
render: e.render,
...H(d, u),
@@ -28733,13 +28692,13 @@ var ZE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), QE = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function $E(e) {
+function YE(e) {
let t = I.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var eD = class {
+var XE = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -28783,20 +28742,20 @@ var eD = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, tD = class e extends Set {
+}, ZE = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function dre(e, t) {
+function mre(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function nD(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = V_((0, I.useMemo)(() => rD(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => rD(e.defaultSelectedKeys, new tD()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
+function QE(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, I.useRef)(!1), [, s] = (0, I.useState)(!1), c = (0, I.useRef)(null), l = (0, I.useRef)(null), [, u] = (0, I.useState)(null), [d, f] = B_((0, I.useMemo)(() => $E(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => $E(e.defaultSelectedKeys, new ZE()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, I.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
@@ -28823,18 +28782,18 @@ function nD(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !dre(e, d)) && f(e);
+ (r || !mre(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function rD(e, t) {
- return e ? e === "all" ? "all" : new tD(e) : t;
+function $E(e, t) {
+ return e ? e === "all" ? "all" : new ZE(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var iD = class e {
+var eD = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -28890,7 +28849,7 @@ var iD = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Zv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28898,7 +28857,7 @@ var iD = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Zv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28917,10 +28876,10 @@ var iD = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new tD([t], t, t);
+ if (this.state.selectedKeys === "all") n = new ZE([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new tD(e, r, t);
+ n = new ZE(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -28928,7 +28887,7 @@ var iD = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Zv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Xv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -28954,19 +28913,19 @@ var iD = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new tD(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new ZE(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new tD([t], t, t) : new tD();
+ let n = this.canSelectItem(t) ? new ZE([t], t, t) : new ZE();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new tD();
+ let t = new ZE();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -28978,7 +28937,7 @@ var iD = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Jv(qv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(qv(Kv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -28989,7 +28948,7 @@ var iD = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new tD());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new ZE());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -29030,9 +28989,9 @@ var iD = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, fre = class {
+}, hre = class {
build(e, t) {
- return this.context = t, aD(() => this.iterateCollection(e));
+ return this.context = t, tD(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29114,10 +29073,10 @@ var iD = class e {
...a,
key: l,
index: s,
- wrapper: pre(e.wrapper, a.wrapper)
+ wrapper: gre(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${oD(t.type)}> in <${oD(r?.type ?? "unknown parent type")}>. Only <${oD(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${nD(t.type)}> in <${nD(r?.type ?? "unknown parent type")}>. Only <${nD(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29139,7 +29098,7 @@ var iD = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: aD(function* () {
+ childNodes: tD(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29158,7 +29117,7 @@ var iD = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function aD(e) {
+function tD(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29166,18 +29125,18 @@ function aD(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function pre(e, t) {
+function gre(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function oD(e) {
+function nD(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function sD(e, t, n) {
- let r = (0, I.useMemo)(() => new fre(), []), { children: i, items: a, collection: o } = e;
+function rD(e, t, n) {
+ let r = (0, I.useMemo)(() => new hre(), []), { children: i, items: a, collection: o } = e;
return (0, I.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29192,27 +29151,27 @@ function sD(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function cD(e) {
- let { filter: t, layoutDelegate: n } = e, r = nD(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = sD(e, (0, I.useCallback)((e) => t ? new eD(t(e)) : new eD(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new iD(a, r, { layoutDelegate: n }), [
+function iD(e) {
+ let { filter: t, layoutDelegate: n } = e, r = QE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = rD(e, (0, I.useCallback)((e) => t ? new XE(t(e)) : new XE(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new eD(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return lD(a, o), {
+ return aD(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function mre(e, t) {
+function _re(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return lD(n, r), {
+ return aD(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function lD(e, t) {
+function aD(e, t) {
let n = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29240,7 +29199,7 @@ function lD(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function uD(e, t) {
+function oD(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = qh((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -29248,7 +29207,7 @@ function uD(e, t) {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: y_(t?.current),
+ root: v_(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -29264,42 +29223,42 @@ function uD(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var dD = /*#__PURE__*/ (0, I.createContext)(null), fD = /*#__PURE__*/ (0, I.createContext)(null), hre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, dD);
- let n = (0, I.useContext)(fD);
- return n ? /*#__PURE__*/ I.createElement(pD, {
+var sD = /*#__PURE__*/ (0, I.createContext)(null), cD = /*#__PURE__*/ (0, I.createContext)(null), vre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, sD);
+ let n = (0, I.useContext)(cD);
+ return n ? /*#__PURE__*/ I.createElement(lD, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(gre, {
+ }) : /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(yre, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function gre({ props: e, listBoxRef: t, collection: n }) {
+function yre({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, I.useContext)(YT), i = cD({
+ let { layoutDelegate: r } = (0, I.useContext)(GT), i = iD({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ I.createElement(pD, {
+ return /*#__PURE__*/ I.createElement(lD, {
state: i,
props: e,
listBoxRef: t
});
}
-function pD({ state: e, props: t, listBoxRef: n }) {
- [t, n] = zT(t, n, WT);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = mre(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ag(), { disabledBehavior: p, disabledKeys: m } = l, h = ny({
+function lD({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = FT(t, n, BT);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = _re(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = ag(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(YT), b = (0, I.useMemo)(() => t.keyboardDelegate || new nv({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(GT), b = (0, I.useMemo)(() => t.keyboardDelegate || new tv({
collection: c,
collator: h,
ref: n,
@@ -29320,7 +29279,7 @@ function pD({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = qee({
+ ]), { listBoxProps: x } = Jee({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -29352,7 +29311,7 @@ function pD({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = ly(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = cy(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -29360,7 +29319,7 @@ function pD({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = LT({
+ }, N = NT({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29370,8 +29329,8 @@ function pD({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = gg(t, { global: !0 });
- return /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(UT.div, {
+ let te = hg(t, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(zT.div, {
...H(te, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29382,55 +29341,55 @@ function pD({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [dD, t],
- [fD, s],
- [GE, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [sD, t],
+ [cD, s],
+ [VE, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [QE, { elementType: "div" }],
- [KE, { render: yre }],
- [KT, {
+ [JE, { elementType: "div" }],
+ [HE, { render: Sre }],
+ [HT, {
name: "ListBoxSection",
- render: _re
+ render: bre
}]
- ] }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(y, {
+ ] }, /*#__PURE__*/ I.createElement(KE, null, /*#__PURE__*/ I.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: JE(l, r, C),
- renderDropIndicator: qE(r, C)
+ persistedKeys: WE(l, r, C),
+ renderDropIndicator: UE(r, C)
}))), ee, E));
}
-function _re(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, I.useContext)(fD), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(GE), { CollectionBranch: s } = (0, I.useContext)(YT), [c, l] = BT(), { headingProps: u, groupProps: d } = Jee({
+function bre(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, I.useContext)(cD), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(VE), { CollectionBranch: s } = (0, I.useContext)(GT), [c, l] = IT(), { headingProps: u, groupProps: d } = Yee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = LT({
+ }), f = NT({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = gg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ I.createElement(UT.section, {
+ }), p = hg(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ I.createElement(zT.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ I.createElement(YE.Provider, { value: {
+ }, /*#__PURE__*/ I.createElement(GE.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ I.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: qE(a, o)
+ renderDropIndicator: UE(a, o)
})));
}
-var vre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
- let r = oh(t), i = (0, I.useContext)(fD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(GE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Yee({
+var xre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
+ let r = oh(t), i = (0, I.useContext)(cD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(VE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xee({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = hy({
+ }, i, r), { hoverProps: p, isHovered: m } = my({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -29446,7 +29405,7 @@ var vre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = LT({
+ let y = o && o.isDragging(n.key), b = NT({
...e,
id: void 0,
children: e.children,
@@ -29464,7 +29423,7 @@ var vre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
(0, I.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? UT.a : UT.div, S = gg(e, { global: !0 });
+ let x = e.href ? zT.a : zT.div, S = hg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ I.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -29478,29 +29437,29 @@ var vre = /*#__PURE__*/ jh(Mf, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ I.createElement(IT, { values: [[nE, { slots: {
- [FT]: u,
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[QT, { slots: {
+ [jT]: u,
label: u,
description: d
- } }], [ZE, { isSelected: f.isSelected }]] }, b.children));
+ } }], [qE, { isSelected: f.isSelected }]] }, b.children));
});
-function yre(e, t) {
+function Sre(e, t) {
t = oh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(GE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ I.createElement(xre, {
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(VE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ I.createElement(wre, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function bre(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = LT({
+function Cre(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = NT({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(zT.div, {
...n,
...a,
role: "option",
@@ -29508,10 +29467,10 @@ function bre(e, t) {
"data-drop-target": r || void 0
}));
}
-var xre = /*#__PURE__*/ (0, I.forwardRef)(bre);
+var wre = /*#__PURE__*/ (0, I.forwardRef)(Cre);
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(fD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- uD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(cD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ oD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29521,7 +29480,7 @@ jh(jf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = LT({
+ let l = NT({
...s,
id: void 0,
children: n.rendered,
@@ -29534,7 +29493,7 @@ jh(jf, function(e, t, n) {
width: 0,
height: 0
},
- inert: $E(!0)
+ inert: YE(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29543,8 +29502,8 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
- ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(zT.div, {
+ ...H(hg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -29552,11 +29511,11 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Sre = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
+var Tre = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function mD(e) {
- let [t, n] = V_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
+function uD(e) {
+ let [t, n] = B_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -29575,13 +29534,13 @@ function mD(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function hD(e, t = !0) {
+function dD(e, t = !0) {
let [n, r] = (0, I.useState)(!0), i = n && t;
return gp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), _D(e, i, (0, I.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), pD(e, i, (0, I.useCallback)(() => r(!1), [])), i;
}
-function gD(e, t) {
+function fD(e, t) {
let [n, r] = (0, I.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -29591,11 +29550,11 @@ function gD(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return _D(e, i, (0, I.useCallback)(() => {
+ return pD(e, i, (0, I.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function _D(e, t, n) {
+function pD(e, t, n) {
gp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -29624,9 +29583,9 @@ function _D(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, vD);
- let n = (0, I.useContext)(AD), r = mD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = gD(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = mh(), { direction: c } = ag();
+var mD = /*#__PURE__*/ (0, I.createContext)(null), hD = /*#__PURE__*/ (0, I.createContext)(null), gD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, mD);
+ let n = (0, I.useContext)(ED), r = uD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fD(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = mh(), { direction: c } = ag();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -29637,7 +29596,7 @@ var vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.crea
defaultChildren: null
})), /*#__PURE__*/ I.createElement(I.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Cre, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Ere, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -29646,13 +29605,13 @@ var vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.crea
dir: c
});
});
-function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(yD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ute({
+function Ere({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = (0, I.useContext)(hD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = fte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = hD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = LT({
+ }, e), m = i.popoverRef, h = dD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = NT({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -29678,7 +29637,7 @@ function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, I.useState)(null), w = (0, I.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- gp(w, [w]), ub({
+ gp(w, [w]), lb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29687,8 +29646,8 @@ function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ I.createElement(UT.div, {
- ...H(gg(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ I.createElement(zT.div, {
+ ...H(hg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -29703,17 +29662,17 @@ function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ I.createElement(qb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Sre.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ I.createElement(Gb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Tre.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ I.createElement(qb, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ I.createElement(sy, {
+ } }, x), /*#__PURE__*/ I.createElement(Gb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ I.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ I.createElement(sy, {
+ }, E) : /*#__PURE__*/ I.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -29728,15 +29687,15 @@ function Cre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ I.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ I.createElement(yD.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ I.createElement(hD.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var wre = /*#__PURE__*/ (0, I.createContext)({});
+var Dre = /*#__PURE__*/ (0, I.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function xD(e) {
- let t = mD(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
+function _D(e) {
+ let t = uD(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -29762,7 +29721,7 @@ function xD(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Tre = class {
+var Ore = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -29806,8 +29765,8 @@ var Tre = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Ere(e) {
- let { onExpandedChange: t } = e, [n, r] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = nD(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = sD(e, (0, I.useCallback)((e) => new Tre(e, { expandedKeys: n }), [n]), null);
+function kre(e) {
+ let { onExpandedChange: t } = e, [n, r] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = QE(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = rD(e, (0, I.useCallback)((e) => new Ore(e, { expandedKeys: n }), [n]), null);
return (0, I.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -29815,32 +29774,32 @@ function Ere(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Dre(n, e));
+ r(Are(n, e));
},
setExpandedKeys: r,
- selectionManager: new iD(o, i)
+ selectionManager: new eD(o, i)
};
}
-function Dre(e, t) {
+function Are(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var SD = /*#__PURE__*/ (0, I.createContext)(null), CD = /*#__PURE__*/ (0, I.createContext)(null), wD = /*#__PURE__*/ (0, I.createContext)(null), TD = /*#__PURE__*/ (0, I.createContext)(null);
-function Ore(e) {
- let t = xD(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({
+var vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.createContext)(null), xD = /*#__PURE__*/ (0, I.createContext)(null);
+function jre(e) {
+ let t = _D(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Bv({
...e,
type: "menu"
}, t, n), a = (0, I.useRef)(null);
- return mh() ? null : /*#__PURE__*/ I.createElement(IT, { values: [
- [SD, {
+ return mh() ? null : /*#__PURE__*/ I.createElement(MT, { values: [
+ [vD, {
...i,
ref: a
}],
- [AD, t],
- [wD, t],
- [vD, {
+ [ED, t],
+ [bD, t],
+ [mD, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -29848,13 +29807,13 @@ function Ore(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ I.createElement(Lee, {
+ ] }, /*#__PURE__*/ I.createElement(Ree, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var kre = /*#__PURE__*/ (0, I.createContext)(null);
+var Mre = /*#__PURE__*/ (0, I.createContext)(null);
(class extends kf {
static {
this.type = "submenutrigger";
@@ -29868,24 +29827,24 @@ var kre = /*#__PURE__*/ (0, I.createContext)(null);
return null;
}
});
-var Are = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return [e, t] = zT(e, t, SD), /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(jre, {
+var Nre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return [e, t] = FT(e, t, vD), /*#__PURE__*/ I.createElement(Ch, { content: /*#__PURE__*/ I.createElement(Fh, e) }, (n) => /*#__PURE__*/ I.createElement(Pre, {
props: e,
collection: n,
menuRef: t
}));
});
-function jre({ props: e, collection: t, menuRef: n }) {
- [e, n] = zT(e, n, WT);
- let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Ere({
+function Pre({ props: e, collection: t, menuRef: n }) {
+ [e, n] = FT(e, n, BT);
+ let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = kre({
...e,
collection: a,
children: void 0
- }), s = (0, I.useContext)(wD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(YT), { menuProps: u } = ob({
+ }), s = (0, I.useContext)(bD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(GT), { menuProps: u } = ab({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = LT({
+ }, o, n), d = NT({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -29895,36 +29854,36 @@ function jre({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(UT.div, {
+ let p = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(zT.div, {
...H(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [CD, o],
- [QE, { elementType: "div" }],
- [KT, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [yD, o],
+ [JE, { elementType: "div" }],
+ [HT, {
name: "MenuSection",
- render: ED
+ render: SD
}],
- [kre, {
+ [Mre, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [OD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [WT, null],
- [GT, null],
- [TD, o.selectionManager],
- [wD, s ?? xD({})]
- ] }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(l, {
+ [wD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [BT, null],
+ [VT, null],
+ [xD, o.selectionManager],
+ [bD, s ?? _D({})]
+ ] }, /*#__PURE__*/ I.createElement(KE, null, /*#__PURE__*/ I.createElement(l, {
collection: o.collection,
- persistedKeys: XT(o.selectionManager.focusedKey),
+ persistedKeys: KT(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Mre = class extends iD {
+var Fre = class extends eD {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -29944,11 +29903,11 @@ var Mre = class extends iD {
return this.parent.childFocusStrategy;
}
};
-function ED(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, I.useContext)(CD), { CollectionBranch: a } = (0, I.useContext)(YT), [o, s] = BT(), { headingProps: c, groupProps: l } = cb({
+function SD(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, I.useContext)(yD), { CollectionBranch: a } = (0, I.useContext)(GT), [o, s] = IT(), { headingProps: c, groupProps: l } = sb({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = LT({
+ }), u = NT({
...e,
id: void 0,
children: void 0,
@@ -29956,31 +29915,31 @@ function ED(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, I.useContext)(TD), f = nD(e), p = e.selectionMode == null ? d : new Mre(d, f), m = RT(OD)?.shouldCloseOnSelect, h = gg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ I.createElement(UT.section, {
+ }), d = (0, I.useContext)(xD), f = QE(e), p = e.selectionMode == null ? d : new Fre(d, f), m = PT(wD)?.shouldCloseOnSelect, h = hg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ I.createElement(zT.section, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [YE, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [GE, {
...c,
ref: o
}],
- [TD, p],
- [OD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [xD, p],
+ [wD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ I.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var DD = /*#__PURE__*/ Mh(Nf, ED), OD = /*#__PURE__*/ (0, I.createContext)(null), kD = /*#__PURE__*/ jh(Mf, function(e, t, n) {
- [e, t] = zT(e, t, OD);
- let r = RT(OD)?.id, i = (0, I.useContext)(CD), a = oh(t), o = (0, I.useContext)(TD), { isVirtualized: s } = (0, I.useContext)(YT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = sb({
+var CD = /*#__PURE__*/ Mh(Nf, SD), wD = /*#__PURE__*/ (0, I.createContext)(null), TD = /*#__PURE__*/ jh(Mf, function(e, t, n) {
+ [e, t] = FT(e, t, wD);
+ let r = PT(wD)?.id, i = (0, I.useContext)(yD), a = oh(t), o = (0, I.useContext)(xD), { isVirtualized: s } = (0, I.useContext)(GT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ob({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = hy({ isDisabled: f.isDisabled }), h = LT({
+ }, i, a), { hoverProps: p, isHovered: m } = my({ isDisabled: f.isDisabled }), h = NT({
...e,
id: void 0,
children: n.rendered,
@@ -29994,7 +29953,7 @@ var DD = /*#__PURE__*/ Mh(Nf, ED), OD = /*#__PURE__*/ (0, I.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? UT.a : UT.div, _ = gg(e, { global: !0 });
+ }), g = e.href ? zT.a : zT.div, _ = hg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -30007,19 +29966,19 @@ var DD = /*#__PURE__*/ Mh(Nf, ED), OD = /*#__PURE__*/ (0, I.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [nE, { slots: {
- [FT]: l,
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [QT, { slots: {
+ [jT]: l,
label: l,
description: u
} }],
- [wre, d],
- [ZE, { isSelected: f.isSelected }]
+ [Dre, d],
+ [qE, { isSelected: f.isSelected }]
] }, h.children));
});
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(CD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- uD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(yD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ oD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -30029,7 +29988,7 @@ jh(jf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = LT({
+ let l = NT({
...s,
id: void 0,
children: n.rendered,
@@ -30042,7 +30001,7 @@ jh(jf, function(e, t, n) {
width: 0,
height: 0
},
- inert: $E(!0)
+ inert: YE(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -30051,8 +30010,8 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(UT.div, {
- ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(zT.div, {
+ ...H(hg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -30060,56 +30019,56 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Nre = /*#__PURE__*/ (0, I.createContext)(null), AD = /*#__PURE__*/ (0, I.createContext)(null), jD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var Ire = /*#__PURE__*/ (0, I.createContext)(null), ED = /*#__PURE__*/ (0, I.createContext)(null), DD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = zT(e, t, Nre);
- let { dialogProps: r, titleProps: i, contentProps: a } = zee({
+ [e, t] = FT(e, t, Ire);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Bee({
...e,
"aria-labelledby": n
- }, t), o = (0, I.useContext)(AD);
+ }, t), o = (0, I.useContext)(ED);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = LT({
+ let s = NT({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(UT.section, {
+ }), c = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(zT.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [eE, { slots: {
- [FT]: {},
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [XT, { slots: {
+ [jT]: {},
title: {
...i,
level: 2
}
} }],
- [nE, { slots: {
- [FT]: {},
+ [QT, { slots: {
+ [jT]: {},
description: a
} }],
- [QT, { slots: {
- [FT]: {},
+ [JT, { slots: {
+ [jT]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), MD = typeof document < "u" && window.visualViewport;
-function Pre() {
+}), OD = typeof document < "u" && window.visualViewport;
+function Lre() {
let e = nm(), [t, n] = (0, I.useState)(() => e ? {
width: 0,
height: 0
- } : ND());
+ } : kD());
return (0, I.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- MD && MD.scale > 1 || e(ND());
+ OD && OD.scale > 1 || e(kD());
}, r, i = (t) => {
- MD && MD.scale > 1 || Gh(V(t)) && (r = requestAnimationFrame(() => {
+ OD && OD.scale > 1 || Gh(V(t)) && (r = requestAnimationFrame(() => {
let t = rp();
(!t || !Gh(t)) && e({
width: document.documentElement.clientWidth,
@@ -30117,26 +30076,26 @@ function Pre() {
});
}));
};
- return e(ND()), Op() && Ap() && window.addEventListener("blur", i, !0), MD ? MD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Op() && Ap() && window.removeEventListener("blur", i, !0), MD ? MD.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(kD()), Op() && Ap() && window.addEventListener("blur", i, !0), OD ? OD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Op() && Ap() && window.removeEventListener("blur", i, !0), OD ? OD.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function ND() {
+function kD() {
return {
- width: MD ? Math.min(MD.width * MD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: MD ? MD.height * MD.scale : document.documentElement.clientHeight
+ width: OD ? Math.min(OD.width * OD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: OD ? OD.height * OD.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Fre = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.createContext)(null), Ire = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- if ((0, I.useContext)(PD)) return /*#__PURE__*/ I.createElement(ID, {
+var Rre = /*#__PURE__*/ (0, I.createContext)(null), AD = /*#__PURE__*/ (0, I.createContext)(null), zre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ if ((0, I.useContext)(AD)) return /*#__PURE__*/ I.createElement(MD, {
...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__*/ I.createElement(FD, {
+ return /*#__PURE__*/ I.createElement(jD, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30146,15 +30105,15 @@ var Fre = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ I.createElement(ID, {
+ }, /*#__PURE__*/ I.createElement(MD, {
...f,
modalRef: t
}, s));
});
-function Lre(e, t) {
- [e, t] = zT(e, t, Fre);
- let n = (0, I.useContext)(AD), r = mD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oh(t), o = (0, I.useRef)(null), s = gD(a, i.isOpen), c = gD(o, i.isOpen), l = s || c || e.isExiting || !1, u = nm();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(Rre, {
+function Bre(e, t) {
+ [e, t] = FT(e, t, Rre);
+ let n = (0, I.useContext)(ED), r = uD(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oh(t), o = (0, I.useRef)(null), s = fD(a, i.isOpen), c = fD(o, i.isOpen), l = s || c || e.isExiting || !1, u = nm();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(Vre, {
...e,
state: i,
isExiting: l,
@@ -30162,9 +30121,9 @@ function Lre(e, t) {
modalRef: o
});
}
-var FD = /*#__PURE__*/ (0, I.forwardRef)(Lre);
-function Rre({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Qee(t, r, n), o = hD(t.overlayRef) || t.isEntering || !1, s = LT({
+var jD = /*#__PURE__*/ (0, I.forwardRef)(Bre);
+function Vre({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = ete(t, r, n), o = dD(t.overlayRef) || t.isEntering || !1, s = NT({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30172,9 +30131,9 @@ function Rre({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = Pre(), l, u;
+ }), c = Lre(), l, u;
if (typeof document < "u") {
- let e = v_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = __(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -30184,25 +30143,25 @@ function Rre({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ I.createElement(sy, {
+ return /*#__PURE__*/ I.createElement(oy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ I.createElement(UT.div, {
- ...H(gg(t, { global: !0 }), a),
+ }, /*#__PURE__*/ I.createElement(zT.div, {
+ ...H(hg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [[PD, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[AD, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [AD, r]] }, s.children)));
+ }], [ED, r]] }, s.children)));
}
-function ID(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(PD), a = (0, I.useContext)(AD), o = oh((0, I.useMemo)(() => Vm(e.modalRef, n), [e.modalRef, n])), s = hD(o), c = LT({
+function MD(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(AD), a = (0, I.useContext)(ED), o = oh((0, I.useMemo)(() => Vm(e.modalRef, n), [e.modalRef, n])), s = dD(o), c = NT({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30211,19 +30170,19 @@ function ID(e) {
state: a
}
});
- return /*#__PURE__*/ I.createElement(UT.div, {
- ...H(gg(e, { global: !0 }), t),
+ return /*#__PURE__*/ I.createElement(zT.div, {
+ ...H(hg(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ I.createElement(qb, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ I.createElement(Gb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var zre = Math.round(Math.random() * 1e10), Bre = 0;
-function Vre(e) {
- let t = (0, I.useMemo)(() => e.name || `radio-group-${zre}-${++Bre}`, [e.name]), [n, r] = V_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = M_({
+var Hre = Math.round(Math.random() * 1e10), Ure = 0;
+function Wre(e) {
+ let t = (0, I.useMemo)(() => e.name || `radio-group-${Hre}-${++Ure}`, [e.name]), [n, r] = B_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = j_({
...e,
value: n
}), c = (t) => {
@@ -30246,16 +30205,16 @@ function Vre(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.createContext)(null), LD = /*#__PURE__*/ (0, I.createContext)(null), RD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, Hre);
- let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = Vre({
+var Gre = /*#__PURE__*/ (0, I.createContext)(null), Kre = /*#__PURE__*/ (0, I.createContext)(null), ND = /*#__PURE__*/ (0, I.createContext)(null), PD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, Gre);
+ let { validationBehavior: n } = PT(eE) || {}, r = e.validationBehavior ?? n ?? "native", i = Wre({
...e,
validationBehavior: r
- }), [a, o] = BT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = fte({
+ }), [a, o] = IT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = mte({
...e,
label: o,
validationBehavior: r
- }, i), f = LT({
+ }, i), f = NT({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30266,8 +30225,8 @@ var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(UT.div, {
+ }), p = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(zT.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30276,39 +30235,39 @@ var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [LD, i],
- [ZT, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [ND, i],
+ [qT, {
...c,
ref: a,
elementType: "span"
}],
- [nE, { slots: {
+ [QT, { slots: {
description: l,
errorMessage: u
} }],
- [rE, d]
- ] }, /*#__PURE__*/ I.createElement(XE, null, f.children)));
-}), zD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [$T, d]
+ ] }, /*#__PURE__*/ I.createElement(KE, null, f.children)));
+}), FD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zT(r, t, Ure);
- let i = I.useContext(LD), a = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = dte({
- ...VT(e),
+ [e, t] = FT(r, t, Kre);
+ let i = I.useContext(ND), a = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = pte({
+ ...LT(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ I.createElement(BD.Provider, { value: {
+ return /*#__PURE__*/ I.createElement(ID.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ I.createElement(Wre, {
+ } }, /*#__PURE__*/ I.createElement(qre, {
...e,
ref: t
}));
-}), BD = /*#__PURE__*/ (0, I.createContext)(null), Wre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(BD), l = I.useContext(LD), { isFocused: u, isFocusVisible: d, focusProps: f } = ly(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = hy({
+}), ID = /*#__PURE__*/ (0, I.createContext)(null), qre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, I.useContext)(ID), l = I.useContext(ND), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = my({
...e,
isDisabled: p
- }), g = LT({
+ }), g = NT({
...e,
defaultClassName: s,
values: {
@@ -30322,8 +30281,8 @@ var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = gg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(UT.label, {
+ }), _ = hg(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(zT.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30335,19 +30294,19 @@ var Hre = /*#__PURE__*/ (0, I.createContext)(null), Ure = /*#__PURE__*/ (0, I.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Gre(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = mD(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Jre(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = uD(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = V_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = B_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -30359,12 +30318,12 @@ function Gre(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = cD({
+ }, d = iD({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, I.useMemo)(() => Kre(l), [l]),
+ selectedKeys: (0, I.useMemo)(() => Yre(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30374,7 +30333,7 @@ function Gre(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = M_({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, I.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = j_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, I.useState)(!1), [_] = (0, I.useState)(l);
@@ -30401,16 +30360,16 @@ function Gre(e) {
setFocused: g
};
}
-function Kre(e) {
+function Yre(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 qre(e) {
+function Xre(e) {
return e && e.__esModule ? e.default : e;
}
-var VD = /*#__PURE__*/ (0, I.createContext)(null), HD = /*#__PURE__*/ (0, I.createContext)(null), Jre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, VD);
+var LD = /*#__PURE__*/ (0, I.createContext)(null), RD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, LD);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, I.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -30425,24 +30384,24 @@ var VD = /*#__PURE__*/ (0, I.createContext)(null), HD = /*#__PURE__*/ (0, I.crea
i,
a
]);
- return /*#__PURE__*/ I.createElement(Ch, { content: o }, (n) => /*#__PURE__*/ I.createElement(Xre, {
+ return /*#__PURE__*/ I.createElement(Ch, { content: o }, (n) => /*#__PURE__*/ I.createElement($re, {
props: e,
collection: n,
selectRef: t
}));
-}), Yre = [
- ZT,
- QT,
- nE
+}), Qre = [
+ qT,
+ JT,
+ QT
];
-function Xre({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = RT(iE) || {}, i = e.validationBehavior ?? r ?? "native", a = Gre({
+function $re({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = PT(eE) || {}, i = e.validationBehavior ?? r ?? "native", a = Jre({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = ly({ within: !0 }), c = (0, I.useRef)(null), [l, u] = BT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = pte({
- ...VT(e),
+ }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, I.useRef)(null), [l, u] = IT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = hte({
+ ...LT(e),
label: u,
validationBehavior: i
}, a, c), y = (0, I.useMemo)(() => ({
@@ -30459,48 +30418,48 @@ function Xre({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = LT({
+ ]), b = NT({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = gg(e, { global: !0 });
+ }), x = hg(e, { global: !0 });
delete x.id;
let S = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(IT, { values: [
- [VD, e],
- [HD, a],
- [UD, p],
- [ZT, {
+ return /*#__PURE__*/ I.createElement(MT, { values: [
+ [LD, e],
+ [RD, a],
+ [zD, p],
+ [qT, {
...d,
ref: l,
elementType: "span"
}],
- [QT, {
+ [JT, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [AD, a],
- [vD, {
+ [ED, a],
+ [mD, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Yre
+ clearContexts: Qre
}],
- [dD, {
+ [sD, {
...m,
ref: S
}],
- [fD, a],
- [nE, { slots: {
+ [cD, a],
+ [QT, { slots: {
description: h,
errorMessage: g
} }],
- [rE, v]
- ] }, /*#__PURE__*/ I.createElement(UT.div, {
+ [$T, v]
+ ] }, /*#__PURE__*/ I.createElement(zT.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -30510,14 +30469,14 @@ function Xre({ 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__*/ I.createElement(hte, {
+ }, b.children, /*#__PURE__*/ I.createElement(_te, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, UD);
- let n = (0, I.useContext)(HD), { placeholder: r } = RT(VD), i = n.selectedItems.map((e) => {
+for (var zD = /*#__PURE__*/ (0, I.createContext)(null), eie = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, zD);
+ let n = (0, I.useContext)(RD), { placeholder: r } = PT(LD), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -30529,7 +30488,7 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Bee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Vee(), o = (0, I.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, I.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -30544,7 +30503,7 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
a,
o,
i
- ]), u = mg(qre(WE), "react-aria-components"), d = LT({
+ ]), u = pg(Xre(BE), "react-aria-components"), d = NT({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -30555,33 +30514,33 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(UT.span, {
+ }), f = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(zT.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ I.createElement(nE.Provider, { value: void 0 }, d.children));
-}), Qre = /*#__PURE__*/ (0, I.createContext)(null), WD = /*#__PURE__*/ (0, I.createContext)(null), $re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ I.createElement(QT.Provider, { value: void 0 }, d.children));
+}), tie = /*#__PURE__*/ (0, I.createContext)(null), BD = /*#__PURE__*/ (0, I.createContext)(null), nie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = zT(r, t, Qre);
- let i = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = H_(e), o = _te({
- ...VT(e),
+ [e, t] = FT(r, t, tie);
+ let i = oh((0, I.useMemo)(() => Vm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = V_(e), o = yte({
+ ...LT(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ I.createElement(IT, { values: [[WD, a], [GD, {
+ return /*#__PURE__*/ I.createElement(MT, { values: [[BD, a], [VD, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ I.createElement(eie, {
+ }]] }, /*#__PURE__*/ I.createElement(rie, {
...e,
ref: t
}));
-}), GD = /*#__PURE__*/ (0, I.createContext)(null), eie = /*#__PURE__*/ (0, I.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, I.useContext)(GD), { isFocused: f, isFocusVisible: p, focusProps: m } = ly(), h = a || o, g = (0, I.useContext)(WD), { hoverProps: _, isHovered: v } = hy({
+}), VD = /*#__PURE__*/ (0, I.createContext)(null), rie = /*#__PURE__*/ (0, I.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, I.useContext)(VD), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, I.useContext)(BD), { hoverProps: _, isHovered: v } = my({
...e,
isDisabled: h
- }), y = LT({
+ }), y = NT({
...e,
defaultClassName: u,
values: {
@@ -30596,8 +30555,8 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
isRequired: d || !1,
state: g
}
- }), b = gg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(UT.label, {
+ }), b = hg(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(zT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -30610,11 +30569,11 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ I.createElement(K_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(G_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), KD = 10, qD = 5, tie = class {
+}), HD = 10, UD = 5, iie = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -30624,7 +30583,7 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > qD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > KD && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > UD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > HD && (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);
@@ -30703,11 +30662,11 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > qD && i) {
+ if (Math.abs(r - c.lastSwitchY) > UD && 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 > KD && a) {
+ if (l > HD && 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;
}
@@ -30722,7 +30681,7 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
boundaryContext: null
};
}
-}, nie = class {
+}, aie = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -30792,8 +30751,8 @@ for (var UD = /*#__PURE__*/ (0, I.createContext)(null), Zre = /*#__PURE__*/ ph(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, JD = "row-header-column-" + Math.random().toString(36).slice(2), YD = "row-header-column-" + Math.random().toString(36).slice(2); JD === YD;) YD = "row-header-column-" + Math.random().toString(36).slice(2);
-function XD(e, t) {
+}, WD = "row-header-column-" + Math.random().toString(36).slice(2), GD = "row-header-column-" + Math.random().toString(36).slice(2); WD === GD;) GD = "row-header-column-" + Math.random().toString(36).slice(2);
+function KD(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -30877,13 +30836,13 @@ function XD(e, t) {
textValue: ""
}));
}
-var rie = class extends nie {
+var oie = class extends aie {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: JD,
+ key: WD,
value: null,
textValue: "",
level: 0,
@@ -30898,7 +30857,7 @@ var rie = class extends nie {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: YD,
+ key: GD,
value: null,
textValue: "",
level: 0,
@@ -30925,7 +30884,7 @@ var rie = class extends nie {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = XD(s, a);
+ let l = KD(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -30951,10 +30910,10 @@ var rie = class extends nie {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return Jv(this.body.childNodes)?.key ?? null;
+ return qv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return Xv(this.body.childNodes)?.key ?? null;
+ return Yv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -30986,19 +30945,19 @@ var rie = class extends nie {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function iie(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || nD(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function sie(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || QE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = qv(n, t);
- e = r === "last" ? Xv(i)?.key ?? null : Jv(i)?.key ?? null;
+ let i = Kv(n, t);
+ e = r === "last" ? Yv(i)?.key ?? null : qv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, I.useMemo)(() => new iD(t, r), [t, r]), s = (0, I.useRef)(null);
+ let o = (0, I.useMemo)(() => new eD(t, r), [t, r]), s = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -31018,7 +30977,7 @@ function iie(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...qv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...Kv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -31037,11 +30996,11 @@ function iie(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var aie = {
+var cie = {
ascending: "descending",
descending: "ascending"
};
-function oie(e) {
+function lie(e) {
let [t, n] = (0, I.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, I.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -31052,11 +31011,11 @@ function oie(e) {
i,
r,
a
- ]), c = sD(e, (0, I.useCallback)((e) => new rie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = iie({
+ ]), c = rD(e, (0, I.useCallback)((e) => new oie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = sie({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -31068,7 +31027,7 @@ function oie(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? aie[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? cie[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -31081,7 +31040,7 @@ function oie(e) {
treeColumn: o
};
}
-function sie(e, t) {
+function uie(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -31091,7 +31050,7 @@ function sie(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var cie = class extends Pf {
+var die = class extends Pf {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -31106,7 +31065,7 @@ var cie = class extends Pf {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new rO(-2);
+ return new $D(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31132,7 +31091,7 @@ var cie = class extends Pf {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = XD(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 = KD(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;
@@ -31213,11 +31172,11 @@ var cie = class extends Pf {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new eO(-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 XD(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, lie = /*#__PURE__*/ (0, I.createContext)(null), uie = /*#__PURE__*/ (0, I.createContext)(null), ZD = /*#__PURE__*/ (0, I.createContext)(null), QD = /*#__PURE__*/ (0, I.createContext)(null), die = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, uie);
- let n = nD(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
+}, fie = /*#__PURE__*/ (0, I.createContext)(null), pie = /*#__PURE__*/ (0, I.createContext)(null), qD = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.createContext)(null), mie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, pie);
+ let n = QE(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31227,26 +31186,26 @@ var cie = class extends Pf {
i,
a,
o
- ]), c = /*#__PURE__*/ I.createElement(mie.Provider, { value: s }, /*#__PURE__*/ I.createElement(Fh, e));
+ ]), c = /*#__PURE__*/ I.createElement(_ie.Provider, { value: s }, /*#__PURE__*/ I.createElement(Fh, e));
return /*#__PURE__*/ I.createElement(Ch, {
content: c,
- createCollection: () => new cie()
- }, (r) => /*#__PURE__*/ I.createElement(pie, {
+ createCollection: () => new die()
+ }, (r) => /*#__PURE__*/ I.createElement(gie, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), fie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}), hie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.table, {
+ }) : /*#__PURE__*/ I.createElement(zT.table, {
...e,
ref: t
});
-}), $D = {
+}), YD = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31256,26 +31215,26 @@ var cie = class extends Pf {
rtl: "ArrowRight"
}
};
-function pie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = zT(e, t, WT);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(lie);
+function gie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = FT(e, t, BT);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(fie);
t = oh((0, I.useMemo)(() => Vm(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = V_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = B_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, I.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = oie({
+ let d = lie({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = sie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(YT), { dragAndDropHooks: _ } = e, { gridProps: v } = Cte({
+ }), f = uie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(GT), { dragAndDropHooks: _ } = e, { gridProps: v } = Tte({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, I.useRef)(b), (0, I.useRef)(x), (0, I.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ag(), [k] = (0, I.useState)(() => new tie());
+ let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = ag(), [k] = (0, I.useState)(() => new iie());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31290,7 +31249,7 @@ function pie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new nv({
+ let e = new tv({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -31310,12 +31269,12 @@ function pie({ 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 === $D.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === $D.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === YD.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === YD.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = ly(), N = LT({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = NT({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31331,19 +31290,19 @@ function pie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let F = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(IT, { values: [
- [ZD, f],
- [QD, P],
- [GE, {
+ let F = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(MT, { values: [
+ [qD, f],
+ [JD, P],
+ [VE, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [KE, { render: wie }],
- [WT, null],
- [GT, null]
- ] }, /*#__PURE__*/ I.createElement(Ug, null, /*#__PURE__*/ I.createElement(fie, {
+ [HE, { render: Die }],
+ [BT, null],
+ [VT, null]
+ ] }, /*#__PURE__*/ I.createElement(Hg, null, /*#__PURE__*/ I.createElement(hie, {
...H(F, N, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -31353,46 +31312,46 @@ function pie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(g, {
+ }, /*#__PURE__*/ I.createElement(KE, null, /*#__PURE__*/ I.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: JE(y, _, C)
+ persistedKeys: WE(y, _, C)
})))), E);
}
-var mie = /*#__PURE__*/ (0, I.createContext)(null), eO = class extends kf {
+var _ie = /*#__PURE__*/ (0, I.createContext)(null), XD = class extends kf {
static {
this.type = "tableheader";
}
-}, hie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}, vie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.thead, {
+ }) : /*#__PURE__*/ I.createElement(zT.thead, {
...e,
ref: t
});
-}), tO = /*#__PURE__*/ Mh(eO, (e, t) => {
- let n = (0, I.useContext)(ZD).collection, r = zf({
+}), ZD = /*#__PURE__*/ Mh(XD, (e, t) => {
+ let n = (0, I.useContext)(qD).collection, r = zf({
items: n.headerRows,
children: (0, I.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ I.createElement(_ie, { item: e });
+ case "headerrow": return /*#__PURE__*/ I.createElement(bie, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = uS(), { hoverProps: a, isHovered: o } = hy({
+ }), { rowGroupProps: i } = cS(), { hoverProps: a, isHovered: o } = my({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = LT({
+ }), s = NT({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ I.createElement(hie, {
- ...H(gg(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ I.createElement(vie, {
+ ...H(hg(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
@@ -31400,8 +31359,8 @@ var mie = /*#__PURE__*/ (0, I.createContext)(null), eO = class extends kf {
}, (e) => /*#__PURE__*/ I.createElement(Fh, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), gie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
+}, e.children)), yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
return n ? /*#__PURE__*/ I.createElement("div", {
...e,
ref: t
@@ -31410,41 +31369,41 @@ var mie = /*#__PURE__*/ (0, I.createContext)(null), eO = class extends kf {
ref: t
});
});
-function _ie({ item: e }) {
- let t = (0, I.useRef)(null), n = (0, I.useContext)(ZD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(YT), { rowProps: a } = Dte({
+function bie({ item: e }) {
+ let t = (0, I.useRef)(null), n = (0, I.useContext)(qD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(GT), { rowProps: a } = kte({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Pte(n);
- return /*#__PURE__*/ I.createElement(gie, {
+ }, n, t), { checkboxProps: o } = Ite(n);
+ return /*#__PURE__*/ I.createElement(yie, {
...a,
ref: t
- }, /*#__PURE__*/ I.createElement(IT, { values: [[aE, { slots: { selection: o } }], [oE, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[tE, { slots: { selection: o } }], [nE, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var vie = class extends kf {
+var xie = class extends kf {
static {
this.type = "column";
}
-}, yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}, Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.th, {
+ }) : /*#__PURE__*/ I.createElement(zT.th, {
...e,
ref: t
});
-}), nO = /*#__PURE__*/ jh(vie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(ZD), { isVirtualized: a } = (0, I.useContext)(YT), { columnHeaderProps: o, isPressed: s } = Ete({
+}), QD = /*#__PURE__*/ jh(xie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(qD), { isVirtualized: a } = (0, I.useContext)(GT), { columnHeaderProps: o, isPressed: s } = Ote({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ly(), d = (0, I.useContext)(QD), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, I.useContext)(JD), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = hy({ isDisabled: !e.allowsSorting }), h = LT({
+ let { hoverProps: p, isHovered: m } = my({ isDisabled: !e.allowsSorting }), h = NT({
...e,
id: void 0,
children: n.rendered,
@@ -31470,8 +31429,8 @@ var vie = class extends kf {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = gg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ I.createElement(yie, {
+ let _ = hg(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ I.createElement(Sie, {
...H(_, o, u, p),
...h,
style: g,
@@ -31483,28 +31442,28 @@ var vie = class extends kf {
"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__*/ I.createElement(IT, { values: [[bie, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[Cie, {
column: n,
triggerRef: r
- }], [YT, qT]] }, h.children));
-}), bie = /*#__PURE__*/ (0, I.createContext)(null), rO = class extends Af {
+ }], [GT, UT]] }, h.children));
+}), Cie = /*#__PURE__*/ (0, I.createContext)(null), $D = class extends Af {
static {
this.type = "tablebody";
}
-}, xie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}, wie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.tbody, {
+ }) : /*#__PURE__*/ I.createElement(zT.tbody, {
...e,
ref: t
});
-}), iO = /*#__PURE__*/ Mh(rO, (e, t, n) => {
- let r = (0, I.useContext)(ZD), { isVirtualized: i } = (0, I.useContext)(YT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(YT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(GE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), eO = /*#__PURE__*/ Mh($D, (e, t, n) => {
+ let r = (0, I.useContext)(qD), { isVirtualized: i } = (0, I.useContext)(GT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(GT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(VE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = LT({
+ }, p = NT({
...e,
id: void 0,
children: void 0,
@@ -31513,25 +31472,25 @@ var vie = class extends kf {
}), 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__*/ I.createElement(oO, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(nO, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ I.createElement(cO, {
+ }, /*#__PURE__*/ I.createElement(iO, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = uS(), _ = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(xie, {
+ let { rowGroupProps: g } = cS(), _ = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(wie, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ I.createElement(kie, null), /*#__PURE__*/ I.createElement(o, {
+ }, l && /*#__PURE__*/ I.createElement(Mie, null), /*#__PURE__*/ I.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: qE(s, c)
+ renderDropIndicator: UE(s, c)
}), m);
});
(class extends Af {
@@ -31539,7 +31498,7 @@ var vie = class extends kf {
this.type = "tablefooter";
}
});
-var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Sie = class extends kf {
+var tO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Tie = class extends kf {
static {
this.type = "item";
}
@@ -31551,31 +31510,31 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
}
return null;
}
-}, oO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}, nO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.tr, {
+ }) : /*#__PURE__*/ I.createElement(zT.tr, {
...e,
ref: t
});
-}), sO = /*#__PURE__*/ Mh(Sie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(ZD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(GE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(YT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ate({
+}), rO = /*#__PURE__*/ Mh(Tie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(qD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(VE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(GT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Mte({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ly(), { isFocusVisible: _, focusProps: v } = ly({ within: !0 }), { hoverProps: y, isHovered: b } = hy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = cy(), { isFocusVisible: _, focusProps: v } = cy({ within: !0 }), { hoverProps: y, isHovered: b } = my({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Nte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Fte({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = G_();
+ let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = W_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -31585,7 +31544,7 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
(0, I.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = LT({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = NT({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -31606,11 +31565,11 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
isExpanded: j,
level: n.level + 1
}
- }), N = gg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(oO, {
+ }), N = hg(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(nO, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(cO, {
+ }, /*#__PURE__*/ I.createElement(iO, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -31619,7 +31578,7 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ I.createElement(oO, {
+ }))), /*#__PURE__*/ I.createElement(nO, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -31635,17 +31594,17 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [aE, { slots: {
- [FT]: {},
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [tE, { slots: {
+ [jT]: {},
selection: x
} }],
- [oE, { slots: {
- [FT]: {},
+ [nE, { slots: {
+ [jT]: {},
selection: x
} }],
- [QT, { slots: {
- [FT]: {},
+ [JT, { slots: {
+ [jT]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -31653,8 +31612,8 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
style: { pointerEvents: "none" }
}
} }],
- [ZE, { isSelected: p.isSelected }],
- [aO, { isFocusVisibleWithinRow: _ }]
+ [qE, { isSelected: p.isSelected }],
+ [tO, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ I.createElement(l, {
collection: i.collection,
parent: n
@@ -31667,29 +31626,29 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
items: e.columns,
idScope: e.id
}, e.children);
-}), Cie = class extends kf {
+}), Eie = class extends kf {
static {
this.type = "cell";
}
-}, cO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}, iO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.td, {
+ }) : /*#__PURE__*/ I.createElement(zT.td, {
...e,
ref: t
});
-}), lO = /*#__PURE__*/ jh(Cie, (e, t, n) => {
- let r = oh(t), i = (0, I.useContext)(ZD), { dragState: a } = (0, I.useContext)(GE), { isVirtualized: o } = (0, I.useContext)(YT);
+}), aO = /*#__PURE__*/ jh(Eie, (e, t, n) => {
+ let r = oh(t), i = (0, I.useContext)(qD), { dragState: a } = (0, I.useContext)(VE), { isVirtualized: o } = (0, I.useContext)(GT);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = wte({
+ let { gridCellProps: s, isPressed: c } = Ete({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ly(), { hoverProps: f, isHovered: p } = hy({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(aO), 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 = LT({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = my({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(tO), 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 = NT({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -31708,8 +31667,8 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = gg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ I.createElement(cO, {
+ }), S = hg(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ I.createElement(iO, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -31723,14 +31682,14 @@ var aO = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Si
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ I.createElement(YT.Provider, { value: qT }, x.children));
+ }, /*#__PURE__*/ I.createElement(GT.Provider, { value: UT }, x.children));
});
-function wie(e, t) {
+function Die(e, t) {
t = oh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(GE), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(VE), i = (0, I.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__*/ I.createElement(Oie, {
+ return /*#__PURE__*/ I.createElement(jie, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -31739,40 +31698,40 @@ function wie(e, t) {
ref: t
});
}
-var Tie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+var Oie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.tr, {
+ }) : /*#__PURE__*/ I.createElement(zT.tr, {
...e,
ref: t
});
-}), Eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(YT);
- return n ? /*#__PURE__*/ I.createElement(UT.div, {
+}), kie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(GT);
+ return n ? /*#__PURE__*/ I.createElement(zT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(UT.td, {
+ }) : /*#__PURE__*/ I.createElement(zT.td, {
...e,
ref: t
});
});
-function Die(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(ZD), { visuallyHiddenProps: c } = G_(), l = LT({
+function Aie(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(qD), { visuallyHiddenProps: c } = W_(), l = NT({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(Tie, {
- ...gg(e, { global: !0 }),
+ return /*#__PURE__*/ I.createElement(Oie, {
+ ...hg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ I.createElement(Eie, {
+ }, /*#__PURE__*/ I.createElement(kie, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -31783,14 +31742,14 @@ function Die(e, t) {
ref: i
}), l.children));
}
-var Oie = /*#__PURE__*/ (0, I.forwardRef)(Die);
-function kie() {
- let e = (0, I.useContext)(ZD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(GE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = G_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(oO, {
+var jie = /*#__PURE__*/ (0, I.forwardRef)(Aie);
+function Mie() {
+ let e = (0, I.useContext)(qD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(VE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = W_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(nO, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(cO, {
+ }, /*#__PURE__*/ I.createElement(iO, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -31802,8 +31761,8 @@ function kie() {
})));
}
jh(jf, function(e, t, n) {
- let r = (0, I.useContext)(ZD), { isVirtualized: i } = (0, I.useContext)(YT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
- uD((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(qD), { isVirtualized: i } = (0, I.useContext)(GT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
+ oD((0, I.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -31813,7 +31772,7 @@ jh(jf, function(e, t, n) {
s,
r?.collection
]), u);
- let d = LT({
+ let d = NT({
...c,
id: void 0,
children: n.rendered,
@@ -31821,10 +31780,10 @@ jh(jf, 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__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(oO, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(nO, {
style: { height: 0 },
- inert: $E(!0)
- }, /*#__PURE__*/ I.createElement(cO, { style: {
+ inert: YE(!0)
+ }, /*#__PURE__*/ I.createElement(iO, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ I.createElement("div", {
@@ -31835,14 +31794,14 @@ jh(jf, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ I.createElement(oO, {
- ...H(gg(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ I.createElement(nO, {
+ ...H(hg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(cO, {
+ }, /*#__PURE__*/ I.createElement(iO, {
role: "rowheader",
...p,
style: m
@@ -31850,8 +31809,8 @@ jh(jf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Aie(e) {
- let [t, n] = V_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = cD({
+function Nie(e) {
+ let [t, n] = B_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = iD({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -31874,24 +31833,24 @@ function Aie(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function jie(e) {
- let t = Aie({
+function Pie(e) {
+ let t = Nie({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? uO(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? oO(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = uO(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 = oO(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 uO(e, t) {
+function oO(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);
@@ -31901,24 +31860,24 @@ function uO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var dO = /*#__PURE__*/ (0, I.createContext)(null), fO = /*#__PURE__*/ (0, I.createContext)(null), pO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = zT(e, t, dO);
+var sO = /*#__PURE__*/ (0, I.createContext)(null), cO = /*#__PURE__*/ (0, I.createContext)(null), lO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = FT(e, t, sO);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, I.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ I.createElement(Ch, { content: n }, (n) => /*#__PURE__*/ I.createElement(Mie, {
+ }) : n, [n, r]), /*#__PURE__*/ I.createElement(Ch, { content: n }, (n) => /*#__PURE__*/ I.createElement(Fie, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Mie({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = jie({
+function Fie({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Pie({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = ly({ within: !0 }), c = (0, I.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = cy({ within: !0 }), c = (0, I.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -31926,12 +31885,12 @@ function Mie({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = LT({
+ ]), l = NT({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(UT.div, {
+ }), u = hg(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(zT.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -31939,20 +31898,20 @@ function Mie({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [[dO, e], [fO, i]] }, l.children));
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[sO, e], [cO, i]] }, l.children));
}
-var mO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return (0, I.useContext)(fO) ? /*#__PURE__*/ I.createElement(Nie, {
+var uO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return (0, I.useContext)(cO) ? /*#__PURE__*/ I.createElement(Iie, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ I.createElement(Fh, e);
});
-function Nie({ props: e, forwardedRef: t }) {
- let n = (0, I.useContext)(fO), { CollectionRoot: r } = (0, I.useContext)(YT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = RT(dO), o = oh(t), { tabListProps: s } = Lte({
+function Iie({ props: e, forwardedRef: t }) {
+ let n = (0, I.useContext)(cO), { CollectionRoot: r } = (0, I.useContext)(GT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = PT(sO), o = oh(t), { tabListProps: s } = zte({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = LT({
+ }, n, o), c = NT({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -31960,30 +31919,30 @@ function Nie({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = gg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ I.createElement(UT.div, {
+ }), l = hg(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ I.createElement(zT.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ I.createElement(XE, null, /*#__PURE__*/ I.createElement(r, {
+ }, /*#__PURE__*/ I.createElement(KE, null, /*#__PURE__*/ I.createElement(r, {
collection: n.collection,
- persistedKeys: XT(n.selectionManager.focusedKey)
+ persistedKeys: KT(n.selectionManager.focusedKey)
})));
}
-var hO = /*#__PURE__*/ jh(class extends kf {
+var dO = /*#__PURE__*/ jh(class extends kf {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, I.useContext)(fO), i = oh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Fte({
+ let r = (0, I.useContext)(cO), i = oh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Lte({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ly(), { hoverProps: f, isHovered: p } = hy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = my({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = LT({
+ }), m = NT({
...e,
id: void 0,
children: n.rendered,
@@ -31996,7 +31955,7 @@ var hO = /*#__PURE__*/ jh(class extends kf {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? UT.a : UT.div, g = gg(e, { global: !0 });
+ }), h = n.props.href ? zT.a : zT.div, g = hg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ I.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -32006,58 +31965,58 @@ var hO = /*#__PURE__*/ jh(class extends kf {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ I.createElement(ZE.Provider, { value: { isSelected: o } }, m.children));
-}), gO = /*#__PURE__*/ ph(function(e, t) {
- let n = (0, I.useContext)(fO), r = oh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ I.createElement(qE.Provider, { value: { isSelected: o } }, m.children));
+}), fO = /*#__PURE__*/ ph(function(e, t) {
+ let n = (0, I.useContext)(cO), r = oh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = gD(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Pie, {
+ let s = fD(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Lie, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Pie(e) {
- let t = (0, I.useContext)(fO), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Rte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ly(), d = t.selectedKey === e.id, f = hD(r) && !i, p = LT({
+function Lie(e) {
+ let t = (0, I.useContext)(cO), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Bte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = dD(r) && !i, p = NT({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: $E(!d),
+ isInert: YE(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = gg(o, { global: !0 });
+ }), m = hg(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ I.createElement(UT.div, {
+ return /*#__PURE__*/ I.createElement(zT.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: $E(!d || e.inert),
+ inert: YE(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [[dO, null], [fO, null]] }, /*#__PURE__*/ I.createElement(YT.Provider, { value: qT }, p.children)));
+ }, /*#__PURE__*/ I.createElement(MT, { values: [[sO, null], [cO, null]] }, /*#__PURE__*/ I.createElement(GT.Provider, { value: UT }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Fie = /*#__PURE__*/ (0, I.createContext)({}), Iie = /*#__PURE__*/ (0, I.createContext)(null), Lie = /*#__PURE__*/ ph(function(e, t) {
- [e, t] = zT(e, t, Iie);
- let { validationBehavior: n } = RT(iE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
- [e, i] = zT(e, i, GT);
- let [a, o] = BT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Eee({
- ...VT(e),
+var Rie = /*#__PURE__*/ (0, I.createContext)({}), zie = /*#__PURE__*/ (0, I.createContext)(null), Bie = /*#__PURE__*/ ph(function(e, t) {
+ [e, t] = FT(e, t, zie);
+ let { validationBehavior: n } = PT(eE) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
+ [e, i] = FT(e, i, VT);
+ let [a, o] = IT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Dee({
+ ...LT(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, I.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = LT({
+ }, [i]), h = NT({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -32066,8 +32025,8 @@ var Fie = /*#__PURE__*/ (0, I.createContext)({}), Iie = /*#__PURE__*/ (0, I.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = gg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ I.createElement(UT.div, {
+ }), g = hg(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ I.createElement(zT.div, {
...g,
...h,
ref: t,
@@ -32076,31 +32035,31 @@ var Fie = /*#__PURE__*/ (0, I.createContext)({}), Iie = /*#__PURE__*/ (0, I.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ I.createElement(IT, { values: [
- [ZT, {
+ }, /*#__PURE__*/ I.createElement(MT, { values: [
+ [qT, {
...l,
ref: a
}],
- [lE, {
+ [aE, {
...u,
ref: m
}],
- [Fie, {
+ [Rie, {
...u,
ref: m
}],
- [cE, {
+ [iE, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [nE, { slots: {
+ [QT, { slots: {
description: d,
errorMessage: f
} }],
- [rE, p]
+ [$T, p]
] }, h.children));
-}), _O = ww({
+}), pO = Cw({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -32121,21 +32080,21 @@ var Fie = /*#__PURE__*/ (0, I.createContext)({}), Iie = /*#__PURE__*/ (0, I.crea
small: "size-4 shrink-0"
}
});
-function vO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function mO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
ref: i,
type: r,
- className: Cw(_O.base, _O.size[t], n),
+ className: Sw(pO.base, pO.size[t], n),
...a,
children: /* @__PURE__ */ (0, L.jsx)(e, {
- className: _O.icon[t],
+ className: pO.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var Rie = ww({
+var Vie = Cw({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -32197,23 +32156,23 @@ var Rie = ww({
}
}
});
-function zie({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Rie[t];
+function Hie({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Vie[t];
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: Cw("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Cw("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Sw("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Sw("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, L.jsx)("span", {
- className: Cw("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, L.jsx)("span", { className: Cw("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: Sw("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, L.jsx)("span", { className: Sw("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
-function yO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)($re, {
+function hO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsx)(nie, {
ref: i,
...a,
- className: (t) => Cw("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zie, {
+ className: (t) => Sw("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Hie, {
state: e,
size: n,
shape: r
@@ -32223,7 +32182,7 @@ function yO({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
})] })
});
}
-function bO(e) {
+function gO(e) {
return {
x0: 0,
y0: 0,
@@ -32231,7 +32190,7 @@ function bO(e) {
y1: e.height
};
}
-function xO(e) {
+function _O(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -32239,40 +32198,40 @@ function xO(e) {
y1: Math.round(e.y1)
};
}
-function SO(e) {
+function vO(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function CO(e, t) {
- if (!SO(e)) return {
+function yO(e, t) {
+ if (!vO(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return bO(e);
+ if (t == null || !(t > 0)) return gO(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 xO({
+ return _O({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function Bie(e, t) {
- if (!SO(e) || !(t > 0)) return bO(e);
+function Uie(e, t) {
+ if (!vO(e) || !(t > 0)) return gO(e);
let n = Math.min(e.width, e.height * t);
- return xO({
+ return _O({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function Vie(e, t, n) {
- if (!SO(t) || !(n > 0)) return bO(t);
- let r = wO(e, t), i = CO({
+function Wie(e, t, n) {
+ if (!vO(t) || !(n > 0)) return gO(t);
+ let r = bO(e, t), i = yO({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -32283,8 +32242,8 @@ function Vie(e, t, n) {
y1: r.y0 + i.y1
};
}
-function wO(e, t, n = null, r = "width") {
- if (!SO(t)) return {
+function bO(e, t, n = null, r = "width") {
+ if (!vO(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -32293,43 +32252,43 @@ function wO(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 xO({
+ return _O({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function TO(e, t, n, r) {
+function xO(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 xO({
+ return _O({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function EO(e, t, n, r = null) {
- if (!SO(n) || !(t > 0)) return e;
+function SO(e, t, n, r = null) {
+ if (!vO(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 wO({
+ return bO({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function Hie(e, t, n, r, i = null) {
+function Gie(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 wO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return bO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function Uie(e, t) {
- return SO(t) ? {
+function Kie(e, t) {
+ return vO(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -32341,8 +32300,8 @@ function Uie(e, t) {
height: 0
};
}
-function Wie(e, t) {
- if (!SO(t)) return {
+function qie(e, t) {
+ if (!vO(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -32352,7 +32311,7 @@ function Wie(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function Gie(e, t) {
+function Jie(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}%`,
@@ -32361,25 +32320,25 @@ function Gie(e, t) {
height: `${t.height / r * 100}%`
};
}
-function DO(e, t, n) {
+function CO(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var Kie = {
+var Yie = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function OO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- return /* @__PURE__ */ (0, L.jsx)(FD, {
+function wO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ return /* @__PURE__ */ (0, L.jsx)(jD, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, L.jsx)(Ire, {
- className: `flex max-h-full w-full ${Kie[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, L.jsx)(jD, {
+ children: /* @__PURE__ */ (0, L.jsx)(zre, {
+ className: `flex max-h-full w-full ${Yie[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, L.jsx)(DD, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -32387,7 +32346,7 @@ function OO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function kO({ children: e }) {
+function TO({ children: e }) {
return /* @__PURE__ */ (0, L.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",
@@ -32396,19 +32355,19 @@ function kO({ children: e }) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function qie(e) {
+function Xie(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 Jie(e) {
+function Zie(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return qie(n ?? t.body);
+ return Xie(n ?? t.body);
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function AO() {
+function EO() {
let e = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
m(e.current);
@@ -32416,8 +32375,8 @@ function AO() {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var Yie = .02, jO = 1.08;
-function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var Qie = .02, DO = 1.08;
+function OO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, I.useRef)(null), c = (0, I.useRef)(null), [l, u] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
u(!1);
@@ -32428,8 +32387,8 @@ function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: DO(e, n.clientWidth, r.width),
- dy: DO(t, n.clientHeight, r.height)
+ dx: CO(e, n.clientWidth, r.width),
+ dy: CO(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -32447,29 +32406,29 @@ function MO({ 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(TO(n.box, o.dx, o.dy, r));
+ i(xO(n.box, o.dx, o.dy, r));
return;
}
- i(Hie(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(Gie(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) * Yie), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * Qie), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(TO(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(xO(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(EO(n, e.key === "-" ? 1 / jO : jO, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(SO(n, e.key === "-" ? 1 / DO : DO, r, t)));
}
- let g = n && r ? Uie(wO(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? Kie(bO(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -32488,7 +32447,7 @@ function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- SO({
+ vO({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -32527,7 +32486,7 @@ function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(EO(n, e.deltaY > 0 ? jO : 1 / jO, r, t));
+ !n || !r || i(SO(n, e.deltaY > 0 ? DO : 1 / DO, 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, L.jsx)("span", {
@@ -32549,11 +32508,11 @@ function MO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var Xie = "/api/cover-crop", Zie = (e, t) => q(Xie, {
+var $ie = "/api/cover-crop", eae = (e, t) => q($ie, {
code: e,
box: t
-}), NO = .704;
-function PO({ className: e }) {
+}), kO = .704;
+function AO({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32566,7 +32525,7 @@ function PO({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-crop" })
});
}
-function Qie({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function tae({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("button", {
ref: o,
@@ -32577,15 +32536,15 @@ function Qie({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, L.jsx)(PO, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, L.jsx)(iy, {
- getContainer: () => Jie(o.current),
- children: /* @__PURE__ */ (0, L.jsx)(OO, {
+ children: /* @__PURE__ */ (0, L.jsx)(AO, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, L.jsx)(ry, {
+ getContainer: () => Zie(o.current),
+ children: /* @__PURE__ */ (0, L.jsx)(wO, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, L.jsx)($ie, {
+ children: /* @__PURE__ */ (0, L.jsx)(nae, {
code: e,
coverUrl: t,
box: n,
@@ -32595,9 +32554,9 @@ function Qie({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = AO(), f = At({
- mutationFn: (t) => Zie(e, t),
+function nae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(null), [l, u] = (0, I.useState)(!0), d = EO(), f = At({
+ mutationFn: (t) => eae(e, t),
onSuccess: () => {
i(), r();
}
@@ -32609,19 +32568,19 @@ function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Bie(e, NO);
- c(wO(t, e, null));
+ } : Uie(e, kO);
+ c(bO(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(kO, { children: /* @__PURE__ */ (0, L.jsx)(PO, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(TO, { children: /* @__PURE__ */ (0, L.jsx)(AO, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(tE, {
+ /* @__PURE__ */ (0, L.jsx)(ZT, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -32636,8 +32595,8 @@ function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(vO, {
- icon: yS,
+ /* @__PURE__ */ (0, L.jsx)(mO, {
+ icon: _S,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -32647,24 +32606,24 @@ function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, L.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, L.jsx)(MO, {
+ children: /* @__PURE__ */ (0, L.jsx)(OO, {
src: t,
- aspect: l ? NO : null,
+ aspect: l ? kO : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- SO(e) && p(e);
+ vO(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, L.jsx)(yO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(hO, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(wO(s, a, NO));
+ u(e), e && s && a && c(bO(s, a, kO));
},
children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -32693,32 +32652,32 @@ function $ie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/media-sources.ts
-var eae = "/api/sources", FO = ["media-sources"], IO = (e) => jw(eae, e);
-async function LO(e) {
+var rae = "/api/sources", jO = ["media-sources"], MO = (e) => Aw(rae, e);
+async function NO(e) {
await X.fetchQuery({
- queryKey: FO,
- queryFn: () => IO(e)
+ queryKey: jO,
+ queryFn: () => MO(e)
});
}
-var tae = [
+var iae = [
"local",
"115",
"pikpak"
-], nae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), rae = "/api/duplicates?limit=120", RO = ["duplicates"], iae = "/api/batch", zO = (e) => jw(rae, e);
-async function aae(e) {
+], aae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), oae = "/api/duplicates?limit=120", PO = ["duplicates"], sae = "/api/batch", FO = (e) => Aw(oae, e);
+async function cae(e) {
await Promise.all([X.fetchQuery({
- queryKey: RO,
- queryFn: () => zO(e)
- }), LO(e)]);
+ queryKey: PO,
+ queryFn: () => FO(e)
+ }), NO(e)]);
}
-var BO = {
+var IO = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, VO = (e, t) => t.filter((t) => e.some((e) => e.location === t)), HO = (e, t) => VO(e, t).filter((t) => e.some((e) => e.location !== t)), UO = (e, t) => t.filter((t) => e.some((e) => HO(e.files, [t]).length));
-function oae(e, t) {
+}, LO = (e, t) => t.filter((t) => e.some((e) => e.location === t)), RO = (e, t) => LO(e, t).filter((t) => e.some((e) => e.location !== t)), zO = (e, t) => t.filter((t) => e.some((e) => RO(e.files, [t]).length));
+function BO(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -32737,47 +32696,47 @@ function oae(e, t) {
}
return n;
}
-function sae(e, t) {
+function lae(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 WO(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(iae, {
+async function VO(e, t) {
+ for (let n = 0; n < e.length; n += 200) await q(sae, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var GO = "/api/library-processing", KO = ["library-processing"], qO = (e) => jw(GO, e);
-async function JO(e) {
+var HO = "/api/library-processing", UO = ["library-processing"], WO = (e) => Aw(HO, e);
+async function GO(e) {
await X.fetchQuery({
- queryKey: KO,
- queryFn: () => qO(e)
+ queryKey: UO,
+ queryFn: () => WO(e)
});
}
-var YO = 2e3, XO = 1e4, ZO = "连接中断,正在重新读取处理进度";
-function QO(e, t) {
- return e?.status === "running" ? YO : t ? XO : !1;
+var KO = 2e3, qO = 1e4, JO = "连接中断,正在重新读取处理进度";
+function YO(e, t) {
+ return e?.status === "running" ? KO : t ? qO : !1;
}
-var $O = {
+var XO = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, ek = {
+}, ZO = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function cae(e) {
- let t = Object.entries(e).filter(([e, t]) => ek[e] && t > 0).map(([e, t]) => `${ek[e]} ${t} 部`);
+function uae(e) {
+ let t = Object.entries(e).filter(([e, t]) => ZO[e] && t > 0).map(([e, t]) => `${ZO[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function tk(e) {
- let t = $O[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function QO(e) {
+ let t = XO[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 lae(e) {
+function dae(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -32791,21 +32750,21 @@ function lae(e) {
log: e.issues_log || ""
} : null;
}
-var nk = "peach.library-processing.announced", uae = 120;
-function dae(e, t, n) {
+var $O = "peach.library-processing.announced", fae = 120;
+function pae(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < uae;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < fae;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(nk) === e.job_id) return;
- e.job_id && localStorage.setItem(nk, e.job_id);
+ if (e.job_id && localStorage.getItem($O) === e.job_id) return;
+ e.job_id && localStorage.setItem($O, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var rk = "/api/media-repair", ik = ["media-repair"], ak = ["media-repair", "libraries"], fae = {
+var ek = "/api/media-repair", tk = ["media-repair"], nk = ["media-repair", "libraries"], mae = {
status: "idle",
library: "",
stage: "",
@@ -32817,33 +32776,33 @@ var rk = "/api/media-repair", ik = ["media-repair"], ak = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, ok = (e) => jw(rk, e), sk = async (e) => (await jw("/api/libraries", e)).libraries || [];
-async function ck(e) {
+}, rk = (e) => Aw(ek, e), ik = async (e) => (await Aw("/api/libraries", e)).libraries || [];
+async function ak(e) {
await Promise.all([X.fetchQuery({
- queryKey: ik,
- queryFn: () => ok(e)
+ queryKey: tk,
+ queryFn: () => rk(e)
}), X.fetchQuery({
- queryKey: ak,
- queryFn: () => sk(e)
+ queryKey: nk,
+ queryFn: () => ik(e)
})]);
}
-var lk = (e) => Number(e).toLocaleString();
-function uk(e) {
+var ok = (e) => Number(e).toLocaleString();
+function sk(e) {
if (e.status === "running") {
- let t = e.total ? `${lk(e.checked)} / ${lk(e.total)}` : "准备中";
+ let t = e.total ? `${ok(e.checked)} / ${ok(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${lk(e.repaired)} 部,${lk(e.failed)} 部修不了` : `修好 ${lk(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${ok(e.repaired)} 部,${ok(e.failed)} 部修不了` : `修好 ${ok(e.repaired)} 部` : "";
}
-var dk = (e) => `${lk(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, fk = "/api/quality-goals?limit=200", pk = ["quality-goals"], mk = (e) => jw(fk, e);
-async function hk(e) {
+var ck = (e) => `${ok(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, lk = "/api/quality-goals?limit=200", uk = ["quality-goals"], dk = (e) => Aw(lk, e);
+async function fk(e) {
await X.fetchQuery({
- queryKey: pk,
- queryFn: () => mk(e)
+ queryKey: uk,
+ queryFn: () => dk(e)
});
}
-var gk = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function _k(e, t, n = 1) {
+var pk = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function mk(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;
@@ -32863,21 +32822,21 @@ function _k(e, t, n = 1) {
t
];
}
-function vk(e, t) {
+function hk(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function yk(e, t) {
+function gk(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function bk(e, t, n, r, i, a = i || !e.has(r)) {
+function _k(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/time.ts
-function xk(e) {
+function vk(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);
@@ -32886,7 +32845,7 @@ function xk(e) {
}
//#endregion
//#region src/react/review/review.ts
-var pae = "/api/review", mae = "/api/review/decision", hae = "/api/review/genre", Sk = ["review"], Ck = {
+var hae = "/api/review", gae = "/api/review/decision", _ae = "/api/review/genre", yk = ["review"], bk = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -32896,15 +32855,15 @@ var pae = "/api/review", mae = "/api/review/decision", hae = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, gae = Object.keys(Ck), _ae = "metadata_fields", wk = (e) => typeof e == "string" && Object.hasOwn(Ck, e), vae = {
+}, vae = Object.keys(bk), yae = "metadata_fields", xk = (e) => typeof e == "string" && Object.hasOwn(bk, e), bae = {
creator_tags: "creator",
western_identity: "creator"
};
-function yae(e, t) {
+function xae(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 Tk(e, t) {
+function Sk(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -32921,43 +32880,43 @@ function Tk(e, t) {
}
return [...n.values()];
}
-function bae(e, t, n) {
- return n && Tk(e, t).find((e) => e.key === n)?.rows || e;
+function Sae(e, t, n) {
+ return n && Sk(e, t).find((e) => e.key === n)?.rows || e;
}
-function xae(e, t) {
- let n = vk(e.length, 20), r = yk(t, n);
+function Cae(e, t) {
+ let n = hk(e.length, 20), r = gk(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function Sae(e) {
+function wae(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 Cae(e, t, n, r, i, a) {
- return bk(e, t, n, r, i, a);
+function Tae(e, t, n, r, i, a) {
+ return _k(e, t, n, r, i, a);
}
-function Ek(e, t) {
+function Ck(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Dk(e, t) {
+function wk(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Ok = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function wae(e, t) {
- let n = Dk(e, t), r = Ok(e, t);
+var Tk = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function Eae(e, t) {
+ let n = wk(e, t), r = Tk(e, t);
return r ? `${n} · ${r}` : n;
}
-var Tae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Eae = (e) => String(e.tags || "").split("|").filter(Boolean), Dae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Oae(e) {
+var Dae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Oae = (e) => String(e.tags || "").split("|").filter(Boolean), kae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function Aae(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function kk(e, t, n, r) {
+function Ek(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -32973,19 +32932,19 @@ function kk(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var kae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Ak = (e) => jw(pae, e), jk = (e) => q(mae, e), Mk = (e, t) => q(hae, {
+var jae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dk = (e) => Aw(hae, e), Ok = (e) => q(gae, e), kk = (e, t) => q(_ae, {
genre: e,
tag: t
});
-async function Nk(e) {
+async function Ak(e) {
await X.fetchQuery({
- queryKey: Sk,
- queryFn: () => Ak(e)
+ queryKey: yk,
+ queryFn: () => Dk(e)
});
}
-function Pk(e, t) {
+function jk(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(Sk, (t) => {
+ n.size && X.setQueryData(yk, (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 : {
@@ -33001,161 +32960,161 @@ function Pk(e, t) {
};
});
}
-var Fk = () => X.invalidateQueries({
- queryKey: Sk,
+var Mk = () => X.invalidateQueries({
+ queryKey: yk,
exact: !0
});
-function Ik(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${xk(e.fetched_at)} 的缓存` : e?.error || t;
+function Nk(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${vk(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Lk = "/api/links", Rk = "/api/links/check", zk = "/api/links/prune", Bk = ["links"], Vk = ["links", "check"], Hk = ["links", "prune"], Uk = {
+var Pk = "/api/links", Fk = "/api/links/check", Ik = "/api/links/prune", Lk = ["links"], Rk = ["links", "check"], zk = ["links", "prune"], Bk = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function Wk(e) {
+async function Vk(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Gk = (e) => jw(Lk, e), Kk = (e) => q(Rk, { status_only: !0 }, "POST", e), qk = ({ retry: e, checkId: t }) => Wk(q(Rk, e ? {
+var Hk = (e) => Aw(Pk, e), Uk = (e) => q(Fk, { status_only: !0 }, "POST", e), Wk = ({ retry: e, checkId: t }) => Vk(q(Fk, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Jk = (e) => jw(zk, e), Yk = (e) => Wk(q(zk, {
+} : { restart: !0 })), Gk = (e) => Aw(Ik, e), Kk = (e) => Vk(q(Ik, {
confirm: !0,
check_id: e,
background: !0
-})), Xk = (e) => Number(e || 0).toLocaleString(), Zk = (e) => `已删除 ${Xk(e.removed)} 条;${e.marked ? `已隐退女优的 ${Xk(e.marked)} 条留作不可点的记录;` : ""}保留 ${Xk(e.recovered)} 条未确认失效的链接。`;
-function Qk(e) {
+})), qk = (e) => Number(e || 0).toLocaleString(), Jk = (e) => `已删除 ${qk(e.removed)} 条;${e.marked ? `已隐退女优的 ${qk(e.marked)} 条留作不可点的记录;` : ""}保留 ${qk(e.recovered)} 条未确认失效的链接。`;
+function Yk(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Xk(e.checked)} / ${Xk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${qk(e.checked)} / ${qk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var $k = "/api/organize", eA = "/api/organize/preview", tA = "/api/organize/apply", nA = "/api/organize/rollback", rA = "/api/settings", iA = ["organize"], aA = (e) => jw($k, e);
-async function oA(e) {
+var Xk = "/api/organize", Zk = "/api/organize/preview", Qk = "/api/organize/apply", $k = "/api/organize/rollback", eA = "/api/settings", tA = ["organize"], nA = (e) => Aw(Xk, e);
+async function rA(e) {
await X.fetchQuery({
- queryKey: iA,
- queryFn: () => aA(e)
+ queryKey: tA,
+ queryFn: () => nA(e)
});
}
-var sA = (e) => q(eA, e), cA = (e) => e.kind === "apply" ? q(tA, {
+var iA = (e) => q(Zk, e), aA = (e) => e.kind === "apply" ? q(Qk, {
...e.request,
confirm: !0
-}) : q(nA, { confirm: !0 });
-async function lA(e) {
- X.setQueryData(iA, (t) => t && {
+}) : q($k, { confirm: !0 });
+async function oA(e) {
+ X.setQueryData(tA, (t) => t && {
...t,
templates: e
});
try {
- await q(rA, { organizeTemplates: e });
+ await q(eA, { organizeTemplates: e });
} catch {}
}
-var uA = (e, t) => e && {
+var sA = (e, t) => e && {
...e,
...t
-}, dA = /目录模板|分隔符|盘符|`\.`/;
-function fA(e) {
+}, cA = /目录模板|分隔符|盘符|`\.`/;
+function lA(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var pA = (e) => Number(e || 0).toLocaleString();
-function Aae(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${pA(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${pA(e.counts.change)} 个文件会改名或移动,${pA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var uA = (e) => Number(e || 0).toLocaleString();
+function Mae(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${uA(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${uA(e.counts.change)} 个文件会改名或移动,${uA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function mA(e) {
+function dA(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${pA(r)} 个文件${n ? `,${pA(n)} 行未能退回` : ""}。` : `已整理 ${pA(r)} 个文件${n ? `,${pA(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${uA(r)} 个文件${n ? `,${uA(n)} 行未能退回` : ""}。` : `已整理 ${uA(r)} 个文件${n ? `,${uA(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var hA = "/api/resource-sync/scan", gA = "/api/resource-sync/apply", _A = ["resource-sync", "scan"], vA = ["resource-sync", "apply"], yA = (e) => q(hA, {
+var fA = "/api/resource-sync/scan", pA = "/api/resource-sync/apply", mA = ["resource-sync", "scan"], hA = ["resource-sync", "apply"], gA = (e) => q(fA, {
background: !0,
status_only: !0
-}, "POST", e), jae = () => q(hA, {
+}, "POST", e), Nae = () => q(fA, {
background: !0,
restart: !0
-}), bA = (e) => jw(gA, e), Mae = (e) => q(gA, {
+}), _A = (e) => Aw(pA, e), Pae = (e) => q(pA, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), xA = (e) => (e?.sources ?? []).some((e) => tae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Nae(e) {
- xA(X.getQueryData(FO)) && await Promise.all([X.fetchQuery({
- queryKey: _A,
- queryFn: () => yA(e)
+}), vA = (e) => (e?.sources ?? []).some((e) => iae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Fae(e) {
+ vA(X.getQueryData(jO)) && await Promise.all([X.fetchQuery({
+ queryKey: mA,
+ queryFn: () => gA(e)
}), X.fetchQuery({
- queryKey: vA,
- queryFn: () => bA(e)
+ queryKey: hA,
+ queryFn: () => _A(e)
})]);
}
-var Pae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Fae = {
+var Iae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Lae = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, SA = (e) => Number(e || 0).toLocaleString(), Iae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Lae = (e) => `将永久删除文件已不在盘上的 ${SA(e.missing)} 条记录和 ${SA(e.empty)} 个空文件夹,并清理 ${SA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Rae = (e) => `将永久删除文件已不在盘上的 ${SA(e.missing)} 条记录(含回收站里的)、${SA(e.empty)} 个空文件夹,并清理 ${SA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, zae = (e) => e.online ? [
- `找不到文件 · 共 ${SA(e.total)} 项`,
- e.empty ? `空文件夹 ${SA(e.empty)} 个` : "",
- e.unreadable ? `${SA(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${SA(e.total)} 项`;
-function CA(e) {
+}, yA = (e) => Number(e || 0).toLocaleString(), Rae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", zae = (e) => `将永久删除文件已不在盘上的 ${yA(e.missing)} 条记录和 ${yA(e.empty)} 个空文件夹,并清理 ${yA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Bae = (e) => `将永久删除文件已不在盘上的 ${yA(e.missing)} 条记录(含回收站里的)、${yA(e.empty)} 个空文件夹,并清理 ${yA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, Vae = (e) => e.online ? [
+ `找不到文件 · 共 ${yA(e.total)} 项`,
+ e.empty ? `空文件夹 ${yA(e.empty)} 个` : "",
+ e.unreadable ? `${yA(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${yA(e.total)} 项`;
+function bA(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 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 ? `${SA(t.length)} 条记录没有删除(${o})` : "",
- n ? `${SA(n)} 个文件夹没有删除` : "",
- r.length ? `${SA(r.length)} 个缓存没有清理` : ""
+ t.length ? `${yA(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${yA(n)} 个文件夹没有删除` : "",
+ r.length ? `${yA(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var Bae = (e, t) => {
- let { rest: n } = CA(e), r = `已永久删除 ${SA(e.purged)} 条失效记录和 ${SA(e.dirs_removed)} 个空文件夹,清理 ${SA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+var Hae = (e, t) => {
+ let { rest: n } = bA(e), r = `已永久删除 ${yA(e.purged)} 条失效记录和 ${yA(e.dirs_removed)} 个空文件夹,清理 ${yA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Vae = "/api/review?counts=1", wA = ["review", "counts"], Hae = "/api/ads?limit=1", TA = ["junk-summary"], EA = "/api/items?state=trash&limit=1", DA = ["trash-summary"], Uae = [
+}, Uae = "/api/review?counts=1", xA = ["review", "counts"], Wae = "/api/ads?limit=1", SA = ["junk-summary"], CA = "/api/items?state=trash&limit=1", wA = ["trash-summary"], Gae = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], OA = (e) => jw(Vae, e), kA = (e) => jw(Hae, e), AA = (e) => {
+], TA = (e) => Aw(Uae, e), EA = (e) => Aw(Wae, e), DA = (e) => {
let t = sessionStorage.getItem("peach.library");
- return jw(t ? `${EA}&library=${encodeURIComponent(t)}` : EA, e);
-}, jA = (e) => Number(e || 0).toLocaleString();
-function Wae(e) {
- let t = Ck, 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 Aw(t ? `${CA}&library=${encodeURIComponent(t)}` : CA, e);
+}, OA = (e) => Number(e || 0).toLocaleString();
+function Kae(e) {
+ let t = bk, 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 Gae(e) {
+function qae(e) {
if (!e) return "";
- let t = Uae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${jA(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${jA(e.dismissed_total)}`), t.join(" · ");
-}
-var Kae = [
- [wA, ({ signal: e }) => OA(e)],
- [pk, ({ signal: e }) => mk(e)],
- [DA, ({ signal: e }) => AA(e)],
- [Bk, ({ signal: e }) => Gk(e)],
- [Vk, ({ signal: e }) => Kk(e)],
- [Hk, ({ signal: e }) => Jk(e)]
+ let t = Gae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${OA(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${OA(e.dismissed_total)}`), t.join(" · ");
+}
+var Jae = [
+ [xA, ({ signal: e }) => TA(e)],
+ [uk, ({ signal: e }) => dk(e)],
+ [wA, ({ signal: e }) => DA(e)],
+ [Lk, ({ signal: e }) => Hk(e)],
+ [Rk, ({ signal: e }) => Uk(e)],
+ [zk, ({ signal: e }) => Gk(e)]
];
-async function qae(e) {
- let t = location.hash === "#resource-sync", n = Kae.map(([n, r]) => {
+async function Yae(e) {
+ let t = location.hash === "#resource-sync", n = Jae.map(([n, r]) => {
if (t) return X.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -33168,49 +33127,49 @@ async function qae(e) {
await Promise.all([
...n,
X.fetchQuery({
- queryKey: TA,
- queryFn: () => kA(e)
+ queryKey: SA,
+ queryFn: () => EA(e)
}),
X.fetchQuery({
- queryKey: RO,
- queryFn: () => zO(e)
+ queryKey: PO,
+ queryFn: () => FO(e)
}),
- LO(e).then(() => Nae(e)),
- JO(e),
- ck(e),
- oA(e)
+ NO(e).then(() => Fae(e)),
+ GO(e),
+ ak(e),
+ rA(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Jae = [
+var Xae = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Yae = [
+], Zae = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function MA(e = {}) {
- return `${zw({
+function kA(e = {}) {
+ return `${Rw({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var NA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Xae = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function PA({ interactive: e = !1 } = {}) {
- return zw({
+var AA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
+function jA({ interactive: e = !1 } = {}) {
+ return Rw({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Zae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function FA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var Qae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function MA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -33243,13 +33202,13 @@ function FA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function IA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function NA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.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, L.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Jae[n % 4]} ${Yae[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Xae[n % 4]} ${Zae[n % 4]}`,
children: /* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -33271,7 +33230,7 @@ function IA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var LA = ww({
+var PA = Cw({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -33295,15 +33254,15 @@ var LA = ww({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function RA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Cw(LA.base, LA.size[t], LA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+function FA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Sw(PA.base, PA.size[t], PA.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: LA.icon[t],
+ className: PA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: LA.icon[t],
+ className: PA.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -33330,7 +33289,7 @@ function RA({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var zA = [
+var IA = [
"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",
@@ -33338,74 +33297,74 @@ var zA = [
"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(" "), Qae = "w-[266px]", $ae = "flex w-full flex-col gap-1 outline-none", BA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), VA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), $ae = "w-[266px]", eoe = "flex w-full flex-col gap-1 outline-none", LA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), RA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
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/management.ts
-var eoe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", toe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", noe = zw({
+var toe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", noe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", roe = Rw({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), roe = {
+}), ioe = {
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"
-}, ioe = {
+}, aoe = {
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"
-}, aoe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", ooe = {
+}, ooe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", soe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, soe = zw({
+}, coe = Rw({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), HA = "border-t border-border-button-default p-4 first:border-t-0";
-function UA({ tone: e = "neutral", status: t, children: n }) {
+}), zA = "border-t border-border-button-default p-4 first:border-t-0";
+function BA({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${aoe} ${ooe[e]}`,
+ className: `${ooe} ${soe[e]}`,
children: [t ? /* @__PURE__ */ (0, L.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 WA({ id: e, children: t }) {
+function VA({ id: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function GA({ id: e, gap: t = "none", children: n }) {
+function HA({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function KA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function UA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, L.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${noe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${roe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: roe[e],
+ className: ioe[e],
children: a
}), i ? /* @__PURE__ */ (0, L.jsx)("footer", {
- className: ioe[e],
+ className: aoe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function coe({ className: e }) {
+function loe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33418,8 +33377,8 @@ function coe({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })
});
}
-var loe = "打开文件管理器失败,请重试";
-function qA({ path: e, prefix: t, className: n, onRevealed: r }) {
+var uoe = "打开文件管理器失败,请重试";
+function WA({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, I.useState)(!1), [o, s] = (0, I.useState)(""), c = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
c.current = !1;
@@ -33430,7 +33389,7 @@ function qA({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof kw ? e.message : loe);
+ c.current && s(e instanceof Ow ? e.message : uoe);
} finally {
c.current && a(!1);
}
@@ -33441,10 +33400,10 @@ function qA({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("p", {
- className: Cw("min-w-0 break-all", n),
+ className: Sw("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, L.jsx)(vO, {
- icon: coe,
+ }), /* @__PURE__ */ (0, L.jsx)(mO, {
+ icon: loe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -33459,21 +33418,21 @@ function qA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function JA({ className: e, children: t }) {
+function GA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: Cw("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: Sw("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function YA({ className: e, children: t }) {
+function KA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
- className: Cw("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: Sw("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function XA({ label: e, description: t, children: n }) {
+function qA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: Sw("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, L.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, L.jsx)("p", {
@@ -33488,14 +33447,14 @@ function XA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function ZA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function JA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(YA, { children: e })
+ children: /* @__PURE__ */ (0, L.jsx)(KA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, L.jsx)(YA, { children: e }), /* @__PURE__ */ (0, L.jsx)(JA, { children: i })] });
+ }) : /* @__PURE__ */ (0, L.jsx)(KA, { children: e }), /* @__PURE__ */ (0, L.jsx)(GA, { children: i })] });
return r ? /* @__PURE__ */ (0, L.jsx)("form", {
id: t,
"aria-label": e,
@@ -33510,13 +33469,13 @@ function ZA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function QA({ children: e }) {
+function YA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function $A({ divided: e = !1, children: t }) {
+function XA({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -33525,7 +33484,7 @@ function $A({ divided: e = !1, children: t }) {
children: t
});
}
-function ej({ status: e, children: t }) {
+function ZA({ status: e, children: t }) {
return /* @__PURE__ */ (0, L.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, L.jsx)("div", {
@@ -33534,43 +33493,43 @@ function ej({ status: e, children: t }) {
}) : null, t]
});
}
-function tj({ role: e, children: t }) {
+function QA({ role: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function nj({ children: e }) {
+function $A({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function rj({ children: e }) {
+function ej({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function ij({ href: e, children: t }) {
- return /* @__PURE__ */ (0, L.jsx)(RA, {
+function tj({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, L.jsx)(FA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: CS,
+ trailingIcon: xS,
children: t
});
}
-function aj({ children: e }) {
+function nj({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function oj({ term: e, children: t }) {
+function rj({ term: e, children: t }) {
return /* @__PURE__ */ (0, L.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, L.jsx)("dt", {
@@ -33582,7 +33541,7 @@ function oj({ term: e, children: t }) {
})]
});
}
-function sj({ summary: e, defaultOpen: t = !1, children: n }) {
+function ij({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, I.useId)(), i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(!1), [s, c] = (0, I.useState)(t);
return /* @__PURE__ */ (0, L.jsxs)("details", {
ref: (e) => {
@@ -33595,7 +33554,7 @@ function sj({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (C(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, L.jsx)(gS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(mS, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -33610,7 +33569,7 @@ function sj({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function cj({ name: e }) {
+function aj({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33619,29 +33578,29 @@ function cj({ name: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function lj({ mark: e }) {
+function oj({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, L.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, L.jsx)(cj, { name: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(aj, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function uj({ toast: e, mode: t, monitor: n }) {
+function sj({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = kt({
- queryKey: KO,
- queryFn: ({ signal: e }) => qO(e),
- refetchInterval: (e) => QO(e.state.data, r)
+ queryKey: UO,
+ queryFn: ({ signal: e }) => WO(e),
+ refetchInterval: (e) => YO(e.state.data, r)
}), [a, o] = (0, I.useState)(null), s = (0, I.useRef)(void 0), c = i.data;
return (0, I.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") && dae(c, e, r);
+ r && o(c), (r || t === "notice") && pae(c, e, r);
}, [
c,
t,
@@ -33654,29 +33613,29 @@ function uj({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var dj = [
+var cj = [
{
label: "扫描并补全资料",
- icon: xS,
+ icon: yS,
command: {}
},
{
label: "只扫描",
- icon: TS,
+ icon: CS,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Jte,
+ icon: Xte,
command: { stage: "collect" }
}
-], fj = Cw(BA, VA, "text-body-2-medium"), pj = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", mj = (e) => {
+], lj = Sw(LA, RA, "text-body-2-medium"), uj = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", dj = (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(",")}。`;
-}, hj = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + mj(e);
-function gj({ busy: e, onRun: t }) {
+}, fj = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + dj(e);
+function pj({ busy: e, onRun: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -33685,14 +33644,14 @@ function gj({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: xS,
+ leadingIcon: yS,
onClick: () => a({}),
...Y(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: mS,
+ leadingIcon: fS,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -33701,19 +33660,19 @@ function gj({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: zA,
- children: /* @__PURE__ */ (0, L.jsx)(jD, {
+ className: IA,
+ children: /* @__PURE__ */ (0, L.jsx)(DD, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: dj.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
+ children: cj.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: fj,
+ className: lj,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
@@ -33723,8 +33682,8 @@ function gj({ busy: e, onRun: t }) {
})
})] });
}
-function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = lae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = cae(e.notes || {}), c = AO();
+function mj({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = dae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = uae(e.notes || {}), c = EO();
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -33732,7 +33691,7 @@ function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: pj
+ children: uj
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33744,7 +33703,7 @@ function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(ij, {
summary: a.label,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -33775,7 +33734,7 @@ function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(qA, {
+ children: /* @__PURE__ */ (0, L.jsx)(WA, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33789,13 +33748,13 @@ function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "处理完成",
- children: hj(n)
+ children: fj(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, L.jsx)(qA, {
+ children: /* @__PURE__ */ (0, L.jsx)(WA, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33807,38 +33766,38 @@ function _j({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function vj(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = uj(e), o = At({
- mutationFn: (e) => q(GO, e),
+function hj(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = sj(e), o = At({
+ mutationFn: (e) => q(HO, e),
onSuccess: (e) => {
- a(), X.setQueryData(KO, e), X.invalidateQueries({ queryKey: KO });
+ a(), X.setQueryData(UO, e), X.invalidateQueries({ queryKey: UO });
}
});
(0, I.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? ZO : K(r.error) : "", l = o.isPending || s.status === "running", u = tk(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? JO : K(r.error) : "", l = o.isPending || s.status === "running", u = QO(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(KA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(UA, {
layout: "split",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(RA, {
+ /* @__PURE__ */ (0, L.jsx)(FA, {
href: "/scraping",
size: "small",
- trailingIcon: hS,
+ trailingIcon: pS,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, L.jsx)(RA, {
+ s.candidates ? /* @__PURE__ */ (0, L.jsx)(FA, {
href: "/review",
size: "small",
- trailingIcon: hS,
+ trailingIcon: pS,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, L.jsx)(gj, {
+ /* @__PURE__ */ (0, L.jsx)(pj, {
busy: l,
onRun: d
})
@@ -33846,14 +33805,14 @@ function vj(e) {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(GA, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, L.jsx)(HA, { children: "扫描与采集" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: eoe
+ children: toe
}),
s.status === "running" ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: u,
value: s.checked || 0,
max: s.total
@@ -33867,11 +33826,11 @@ function vj(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: u })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: u })
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(_j, {
+ }), /* @__PURE__ */ (0, L.jsx)(mj, {
state: s,
problem: c,
settled: i,
@@ -33887,7 +33846,7 @@ function vj(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function yj(e) {
+function gj(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33901,7 +33860,7 @@ function yj(e) {
})
});
}
-function bj(e) {
+function _j(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33915,7 +33874,7 @@ function bj(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function xj(e, t, n) {
+function vj(e, t, n) {
(0, I.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33929,7 +33888,7 @@ function xj(e, t, n) {
n
]);
}
-function Sj(e, t) {
+function yj(e, t) {
let n = (0, I.useRef)(!1);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -33943,33 +33902,33 @@ function Sj(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var Cj = (0, I.createContext)("md");
-function wj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var bj = (0, I.createContext)("md");
+function xj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, I.useRef)(null), u = (0, I.useRef)(null), [d, f] = (0, I.useState)(!1);
- xj(d, () => f(!1), [l, u]);
- let p = Sj(d, l);
- return /* @__PURE__ */ (0, L.jsx)(Jre, {
+ vj(d, () => f(!1), [l, u]);
+ let p = yj(d, l);
+ return /* @__PURE__ */ (0, L.jsx)(Zre, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: Cw("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)($T, {
+ className: Sw("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(YT, {
ref: l,
- className: Cw("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, L.jsx)(Zre, {
- className: Cw("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Sw("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, L.jsx)(eie, {
+ className: Sw("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, L.jsx)(yj, { className: Cw("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gj, { className: Sw("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
ref: u,
isNonModal: !0,
offset: 4,
- className: Cw(Qae, zA, "p-2", n),
- children: /* @__PURE__ */ (0, L.jsx)(hre, {
+ className: Sw($ae, IA, "p-2", n),
+ children: /* @__PURE__ */ (0, L.jsx)(vre, {
items: a,
- className: Cw($ae, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, L.jsx)(Cj.Provider, {
+ className: Sw(eoe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, L.jsx)(bj.Provider, {
value: r,
children: i
})
@@ -33977,19 +33936,19 @@ function wj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function Tj({ className: e, children: t, ...n }) {
- let r = (0, I.useContext)(Cj);
- return /* @__PURE__ */ (0, L.jsx)(vre, {
+function Sj({ className: e, children: t, ...n }) {
+ let r = (0, I.useContext)(bj);
+ return /* @__PURE__ */ (0, L.jsx)(xre, {
...n,
- className: (t) => Cw(BA, 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) => Sw(LA, 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/background-job.ts
-var Ej = 2e3, Dj = (e) => e, Oj = (e, t) => t;
-function kj(e) {
- let { queryKey: t, jobOf: n = Dj, withJob: r = Oj, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
+var Cj = 2e3, wj = (e) => e, Tj = (e, t) => t;
+function Ej(e) {
+ let { queryKey: t, jobOf: n = wj, withJob: r = Tj, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
(0, I.useEffect)(() => {
l.current = e;
});
@@ -33998,7 +33957,7 @@ function kj(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? Ej : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? Cj : i ?? !1;
}
}), d = At({
mutationFn: (e) => l.current.start(e),
@@ -34029,32 +33988,32 @@ function kj(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Aj = (e) => p[e] || e, jj = (e) => X.setQueryData(ik, e);
-function Mj() {
+var Dj = (e) => p[e] || e, Oj = (e) => X.setQueryData(tk, e);
+function kj() {
let e = kt({
- queryKey: ik,
- queryFn: ({ signal: e }) => ok(e),
- refetchInterval: (e) => e.state.data?.status === "running" && Ej
+ queryKey: tk,
+ queryFn: ({ signal: e }) => rk(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && Cj
}), t = kt({
- queryKey: ak,
- queryFn: ({ signal: e }) => sk(e)
- }), [n, r] = (0, I.useState)(""), i = qw(), a = e.data ?? fae, 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: nk,
+ queryFn: ({ signal: e }) => ik(e)
+ }), [n, r] = (0, I.useState)(""), i = Kw(), a = e.data ?? mae, 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 && h({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => jj(await q(rk, {
+ onConfirm: async () => Oj(await q(ek, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => q(rk, { stop: !0 }, "POST", e), jj), d = uk(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => q(ek, { stop: !0 }, "POST", e), Oj), d = sk(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, L.jsx)(KA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(UA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(wj, {
+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -34062,10 +34021,10 @@ function Mj() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
+ children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(Sj, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: Aj(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: Dj(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: u,
@@ -34079,12 +34038,12 @@ function Mj() {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(GA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, L.jsx)(HA, { children: "媒体修复" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: toe
+ children: noe
}),
- s && a.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
+ s && a.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -34108,7 +34067,7 @@ function Mj() {
f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "缺少 untrunc",
- children: dk(a)
+ children: ck(a)
}) : null,
p ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34120,7 +34079,7 @@ function Mj() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Nj = {
+var Aj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -34134,11 +34093,11 @@ var Nj = {
gap: "gap-1.5"
}
};
-function Pj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Nj[t], c = n || r, l = o && !a;
+function jj({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Aj[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: Cw("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Cw("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Cw("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: Sw("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Sw("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Sw("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, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -34162,36 +34121,36 @@ function Pj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Fj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Nj[n];
- return /* @__PURE__ */ (0, L.jsx)(rre, {
+function Mj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Aj[n];
+ return /* @__PURE__ */ (0, L.jsx)(ore, {
ref: r,
...i,
- className: (t) => Cw("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Pj, {
+ className: (t) => Sw("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, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(jj, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: Cw(a.label, "text-text-primary"),
+ className: Sw(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function Ij({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function Nj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: Cw("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, L.jsx)(die, {
+ className: Sw("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, L.jsx)(mie, {
ref: r,
...i,
- className: Cw("bui-table", e === "sm" && "bui-table-sm", t)
+ className: Sw("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Lj = [
+var Pj = [
"a",
"button",
"input",
@@ -34204,15 +34163,15 @@ var Lj = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function Rj(e, t) {
+function Fj(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Lj);
+ let r = n.closest(Pj);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function zj({ children: e, follow: t = !1, onRowClick: n }) {
+function Ij({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -34220,15 +34179,15 @@ function zj({ 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 && Rj(e, r) && n(r.dataset.key);
+ r && Fj(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Bj = kT("unlink"), Vj = kT("rotate-cw"), Hj = "站点返回 404 或 410,确认这个地址不存在。", Uj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Wj = "删除前会逐条重验一次;此操作不可撤销。", Gj = "暂时无法读取进度,正在重新连接…", Kj = (e) => Number(e || 0).toLocaleString();
-function qj({ label: e, value: t, note: n }) {
+var Lj = wT("unlink"), Rj = wT("rotate-cw"), zj = "站点返回 404 或 410,确认这个地址不存在。", Bj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Vj = "删除前会逐条重验一次;此操作不可撤销。", Hj = "暂时无法读取进度,正在重新连接…", Uj = (e) => Number(e || 0).toLocaleString();
+function Wj({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -34247,11 +34206,11 @@ function qj({ label: e, value: t, note: n }) {
]
});
}
-function Jj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function Gj({ 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, L.jsxs)("div", {
- className: HA,
+ className: zA,
children: [
/* @__PURE__ */ (0, L.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -34264,13 +34223,13 @@ function Jj({ 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, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Ij, { children: /* @__PURE__ */ (0, L.jsxs)(Nj, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [
- i ? /* @__PURE__ */ (0, L.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(ZD, { children: [
+ i ? /* @__PURE__ */ (0, L.jsx)(QD, {
id: "pick",
- children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Mj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -34278,44 +34237,44 @@ function Jj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(sO, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(eO, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(rO, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ i ? /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)(Mj, {
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, L.jsx)(lO, { children: e.entity }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: Uk[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: e.label || "" }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: e.entity }),
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: Bk[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: e.label || "" }),
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -34325,7 +34284,7 @@ function Jj({ 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, L.jsx)(CS, {
+ }), /* @__PURE__ */ (0, L.jsx)(xS, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -34337,40 +34296,40 @@ function Jj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Yj({ line: e, value: t, total: n }) {
+function Kj({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: `${HA} flex flex-col gap-1.5`,
- children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ className: `${zA} flex flex-col gap-1.5`,
+ children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: e,
value: t || 0,
max: n
}), /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: e })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: e })
});
}
-function Xj() {
+function qj() {
let e = kt({
- queryKey: Bk,
- queryFn: ({ signal: e }) => Gk(e)
- }), [t, n] = (0, I.useState)([]), r = kj({
- queryKey: Hk,
- queryFn: ({ signal: e }) => Jk(e),
- start: Yk,
+ queryKey: Lk,
+ queryFn: ({ signal: e }) => Hk(e)
+ }), [t, n] = (0, I.useState)([]), r = Ej({
+ queryKey: zk,
+ queryFn: ({ signal: e }) => Gk(e),
+ start: Kk,
onFinish: () => {
X.invalidateQueries({
- queryKey: Bk,
+ queryKey: Lk,
exact: !0
}), X.invalidateQueries({
- queryKey: Vk,
+ queryKey: Rk,
exact: !0
});
}
- }), i = kj({
- queryKey: Vk,
- queryFn: ({ signal: e }) => Kk(e),
- start: qk,
+ }), i = Ej({
+ queryKey: Rk,
+ queryFn: ({ signal: e }) => Uk(e),
+ start: Wk,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -34400,7 +34359,7 @@ function Xj() {
else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "完成",
- children: Zk(v)
+ children: Jk(v)
});
else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34410,7 +34369,7 @@ function Xj() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Gj
+ children: Hj
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34420,48 +34379,48 @@ function Xj() {
else if (a && a.status !== "idle") {
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = /* @__PURE__ */ (0, L.jsxs)("div", {
- className: soe,
+ className: coe,
children: [
- a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Yj, {
- line: Qk(a),
+ a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Kj, {
+ line: Yk(a),
value: a.checked,
total: a.total
}) : null,
- c ? /* @__PURE__ */ (0, L.jsx)(Yj, {
+ c ? /* @__PURE__ */ (0, L.jsx)(Kj, {
line: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Jj, {
+ /* @__PURE__ */ (0, L.jsx)(Gj, {
title: "地址已失效",
items: u,
- hint: Hj
+ hint: zj
}),
- /* @__PURE__ */ (0, L.jsx)(Jj, {
+ /* @__PURE__ */ (0, L.jsx)(Gj, {
title: "本次未访问成功",
items: d,
- hint: Uj,
+ hint: Bj,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, L.jsxs)(UA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: Vj,
+ children: /* @__PURE__ */ (0, L.jsxs)(BA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ leadingIcon: Rj,
disabled: !t.length,
...Y(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: Vj,
+ leadingIcon: Rj,
...Y(s),
onClick: () => g(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, L.jsx)(UA, {
+ l && u.length ? /* @__PURE__ */ (0, L.jsx)(BA, {
tone: "error",
- status: Wj,
+ status: Vj,
children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "danger",
...Y(c),
@@ -34470,7 +34429,7 @@ function Xj() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {
- className: `${HA} text-body-regular text-notification-success-foreground`,
+ className: `${zA} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -34481,20 +34440,20 @@ function Xj() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(WA, {
+ /* @__PURE__ */ (0, L.jsx)(VA, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, L.jsxs)(KA, {
+ /* @__PURE__ */ (0, L.jsxs)(UA, {
layout: "split",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: Bj,
+ leadingIcon: Lj,
...Y(s),
onClick: () => g(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
- children: [/* @__PURE__ */ (0, L.jsx)(GA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(HA, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -34504,13 +34463,13 @@ function Xj() {
children: K(e.error)
}) : p ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, L.jsx)(qj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Wj, {
label: "链接总数",
- value: Kj(p.total),
- note: `分布在 ${Kj(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(qj, {
- label: Uk[e] || e,
- value: Kj(t)
+ value: Uj(p.total),
+ note: `分布在 ${Uj(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Wj, {
+ label: Bk[e] || e,
+ value: Uj(t)
}, e))]
}), m ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -34533,11 +34492,11 @@ function Xj() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Zj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsxs)(Xne, {
+function Jj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsxs)($ne, {
"data-label": "true",
...a,
- className: Cw("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Sw("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, L.jsx)("span", {
@@ -34545,7 +34504,7 @@ function Zj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, L.jsx)(DS, {
+ n && /* @__PURE__ */ (0, L.jsx)(ES, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -34554,33 +34513,33 @@ function Zj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Qj({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, L.jsx)(ere, {
+function Yj({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, L.jsx)(rre, {
slot: e ? "errorMessage" : "description",
...n,
- className: Cw("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Sw("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var $j = (0, I.createContext)({});
-function eM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)($j.Provider, {
+var Xj = (0, I.createContext)({});
+function Zj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsx)(Xj.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, L.jsx)(Lie, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bie, {
...a,
"data-input-size": e,
- className: Cw("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Sw("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-eM.displayName = "TextField";
-var tM = ww({
+Zj.displayName = "TextField";
+var Qj = Cw({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -34609,44 +34568,44 @@ var tM = ww({
].join(" "),
icon: "size-5 shrink-0"
});
-function nM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, I.useContext)($j), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, L.jsx)(are, {
+function $j({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, I.useContext)(Xj), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, L.jsx)(cre, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Cw(tM.field, d ? tM.fieldWithAddonSize[u] : tM.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 }) => Sw(Qj.field, d ? Qj.fieldWithAddonSize[u] : Qj.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, L.jsxs)("div", {
- className: tM.content,
+ className: Qj.content,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: tM.leftSection,
+ className: Qj.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {
- className: tM.icon,
+ className: Qj.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, L.jsx)(sre, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(ure, {
ref: o,
...c,
- className: Cw(tM.input, l.inputClassName, a)
+ className: Sw(Qj.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: tM.icon,
+ className: Qj.icon,
"aria-hidden": !0
}) : null]
})
});
}
-nM.displayName = "InputBase";
-function rM({ 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, L.jsx)(eM, {
+$j.displayName = "InputBase";
+function eM({ 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, L.jsx)(Zj, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- e && /* @__PURE__ */ (0, L.jsx)(Zj, {
+ e && /* @__PURE__ */ (0, L.jsx)(Jj, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(nM, {
+ /* @__PURE__ */ (0, L.jsx)($j, {
ref: c,
groupRef: l,
placeholder: r,
@@ -34655,28 +34614,28 @@ function rM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, L.jsx)(Qj, {
+ t && /* @__PURE__ */ (0, L.jsx)(Yj, {
isInvalid: d,
children: t
})
] })
});
}
-rM.displayName = "Input";
+eM.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var iM = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, aM = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", oM = 8;
-function sM({ plan: e }) {
+var tM = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, nM = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", rM = 8;
+function iM({ plan: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, oM).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: e.rows.slice(0, rM).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: fA(e.current_path)
+ children: lA(e.current_path)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -34686,7 +34645,7 @@ function sM({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: fA(e.target_path)
+ children: lA(e.target_path)
})
]
}, e.current_path))
@@ -34695,10 +34654,10 @@ function sM({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function cM({ toast: t, failure: n }) {
+function aM({ toast: t, failure: n }) {
let r = kt({
- queryKey: iA,
- queryFn: ({ signal: e }) => aA(e)
+ queryKey: tA,
+ queryFn: ({ signal: e }) => nA(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, I.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, I.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -34711,8 +34670,8 @@ function cM({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = At({
- mutationFn: sA,
- onSuccess: (e, t) => void lA({
+ mutationFn: iA,
+ onSuccess: (e, t) => void oA({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -34720,29 +34679,29 @@ function cM({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = dA.test(K(e)) ? "dir" : "file";
+ let t = cA.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = kj({
- queryKey: iA,
- queryFn: ({ signal: e }) => aA(e),
- start: cA,
+ }), S = Ej({
+ queryKey: tA,
+ queryFn: ({ signal: e }) => nA(e),
+ start: aA,
jobOf: (e) => e,
- withJob: uA,
+ withJob: sA,
onStarted: () => x.reset(),
onFinish: (e) => {
if (X.invalidateQueries({
- queryKey: iA,
+ queryKey: tA,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = mA(e);
+ let { text: r, failed: i } = dA(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
x.isPending || !c || (_(null), x.mutate(b()));
}, k = () => void h({
title: "按模板整理文件",
- body: iM(E),
+ body: tM(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -34750,7 +34709,7 @@ function cM({ toast: t, failure: n }) {
})
}), A = () => void h({
title: "回滚上一批整理",
- body: aM,
+ body: nM,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
@@ -34758,7 +34717,7 @@ function cM({ toast: t, failure: n }) {
let e = M.message || M.stage || "正在整理文件…";
j = M.total ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: e,
value: M.checked || 0,
max: M.total
@@ -34766,14 +34725,14 @@ function cM({ toast: t, failure: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: e });
} else if (N?.status === "failed") j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "任务失败",
children: N.error || "任务失败"
});
else if (N) {
- let { text: e, failed: t } = mA(N);
+ let { text: e, failed: t } = dA(N);
j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -34783,16 +34742,16 @@ function cM({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: K(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "模板不可用",
children: K(x.error)
}) : w && (j = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "预览结果",
- children: Aae(w)
- }), T ? /* @__PURE__ */ (0, L.jsx)(sM, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, L.jsxs)(KA, {
+ children: Mae(w)
+ }), T ? /* @__PURE__ */ (0, L.jsx)(iM, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, L.jsxs)(UA, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -34816,7 +34775,7 @@ function cM({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, L.jsx)(GA, {
+ /* @__PURE__ */ (0, L.jsx)(HA, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -34836,20 +34795,20 @@ function cM({ toast: t, failure: n }) {
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, L.jsx)(wj, {
+ a.length ? /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: c || null,
onSelectionChange: (e) => {
e !== null && (s(String(e)), _(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
+ children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(Sj, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: p[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: p[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -34860,7 +34819,7 @@ function cM({ toast: t, failure: n }) {
m({ file: e }), _(null);
}
}),
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -34900,8 +34859,8 @@ function cM({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var uoe = kT("git-compare"), doe = kT("rotate-cw"), foe = "暂时无法读取进度,正在重新连接…", lM = "清理失效条目", uM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", dM = (e) => Number(e || 0).toLocaleString();
-function poe({ scan: e }) {
+var oM = wT("git-compare"), sM = wT("rotate-cw"), cM = "暂时无法读取进度,正在重新连接…", lM = "清理失效条目", uM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", dM = (e) => Number(e || 0).toLocaleString();
+function doe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
@@ -34909,16 +34868,16 @@ function poe({ scan: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: uM,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {
- className: PA(),
- children: /* @__PURE__ */ (0, L.jsx)(FA, {
- label: Fae[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, L.jsx)(lj, { mark: p[e.location] ?? "database" }),
+ className: jA(),
+ children: /* @__PURE__ */ (0, L.jsx)(MA, {
+ label: Lae[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, L.jsx)(oj, { mark: p[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, L.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
figure: e.online ? `${dM(e.missing)} 项` : "—",
- meta: zae(e),
+ meta: Vae(e),
wrapMeta: !0
})
}, e.location))
@@ -34926,24 +34885,24 @@ function poe({ scan: e }) {
className: uM,
children: [
/* @__PURE__ */ (0, L.jsx)("article", {
- className: PA(),
- children: /* @__PURE__ */ (0, L.jsx)(FA, {
+ className: jA(),
+ children: /* @__PURE__ */ (0, L.jsx)(MA, {
label: "待永久删除",
figure: `${dM(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: PA(),
- children: /* @__PURE__ */ (0, L.jsx)(FA, {
+ className: jA(),
+ children: /* @__PURE__ */ (0, L.jsx)(MA, {
label: "空文件夹",
figure: `${dM(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: PA(),
- children: /* @__PURE__ */ (0, L.jsx)(FA, {
+ className: jA(),
+ children: /* @__PURE__ */ (0, L.jsx)(MA, {
label: "可清理的缓存",
figure: `${dM(t.files)} 个`,
meta: t.files ? a(t.bytes) : ""
@@ -34952,39 +34911,39 @@ function poe({ scan: e }) {
]
})] });
}
-function moe({ toast: e }) {
- let t = kj({
- queryKey: vA,
- queryFn: ({ signal: e }) => bA(e),
- start: Mae,
+function foe({ toast: e }) {
+ let t = Ej({
+ queryKey: hA,
+ queryFn: ({ signal: e }) => _A(e),
+ start: Pae,
onFinish: (t) => {
if (X.invalidateQueries({
- queryKey: DA,
+ queryKey: wA,
exact: !0
}), X.invalidateQueries({
- queryKey: _A,
+ queryKey: mA,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = CA(t);
+ let { done: n, left: r } = bA(t);
r ? e(`已完成 ${dM(n)} 项,${dM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = kj({
- queryKey: _A,
- queryFn: ({ signal: e }) => yA(e),
- start: jae,
+ }), n = Ej({
+ queryKey: mA,
+ queryFn: ({ signal: e }) => gA(e),
+ start: Nae,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, o = t.running || t.start.isPending, s = r?.status === "complete" || r?.status === "failed", c = i ? "扫描中" : s ? "重新扫描" : "检查文件", l = (e) => void h({
title: lM,
- body: Rae(e),
+ body: Bae(e),
confirmLabel: lM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = CA(e).left > 0;
+ let t = bA(e).left > 0;
return /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: Bae(e, a)
+ children: Hae(e, a)
});
}, f = null;
if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
@@ -34993,7 +34952,7 @@ function moe({ toast: e }) {
children: u.error || "任务失败"
});
else if (u) f = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Hw, { label: t.job?.message || "正在复核并清理失效条目…" });
+ else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Vw, { label: t.job?.message || "正在复核并清理失效条目…" });
else if (n.start.isError) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "扫描失败",
@@ -35002,20 +34961,20 @@ function moe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: foe
+ children: cM
});
else if (r?.status === "running") {
- let e = Iae(r);
+ let e = Rae(r);
f = /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",
- children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: r.total_sources ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: e,
value: r.completed_sources || 0,
max: r.total_sources
}), /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在检查本地磁盘和网盘…" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在检查本地磁盘和网盘…" })
});
} else if (r?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -35028,13 +34987,13 @@ function moe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Pae(r);
+ let e = Iae(r);
f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(poe, { scan: r }),
+ /* @__PURE__ */ (0, L.jsx)(doe, { scan: r }),
e ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "清理内容",
- children: Lae(r)
+ children: zae(r)
}) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -35059,23 +35018,23 @@ function moe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(WA, {
+ /* @__PURE__ */ (0, L.jsx)(VA, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, L.jsxs)(KA, {
+ /* @__PURE__ */ (0, L.jsxs)(UA, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !i ? doe : uoe,
+ leadingIcon: s && !i ? sM : oM,
...Y(i),
onClick: () => {
i || n.start.mutate();
},
children: c
}),
- children: [/* @__PURE__ */ (0, L.jsx)(GA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(HA, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -35100,10 +35059,10 @@ function fM(e, t) {
function pM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: PA({ interactive: !0 }),
+ className: jA({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, L.jsx)(FA, {
+ children: /* @__PURE__ */ (0, L.jsx)(MA, {
label: t,
icon: n,
figure: r.figure,
@@ -35111,58 +35070,58 @@ function pM({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var hoe = kT("square-check-big"), goe = kT("sparkles"), _oe = kT("file-stack"), voe = kT("file-archive"), yoe = kT("trash"), boe = [
- wA,
- pk,
- RO
-], xoe = () => {
- for (let e of boe) X.invalidateQueries({
+var poe = wT("square-check-big"), moe = wT("sparkles"), hoe = wT("file-stack"), goe = wT("file-archive"), _oe = wT("trash"), voe = [
+ xA,
+ uk,
+ PO
+], yoe = () => {
+ for (let e of voe) X.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function Soe({ toast: e, failure: t, open: n }) {
+function boe({ toast: e, failure: t, open: n }) {
let r = kt({
- queryKey: wA,
- queryFn: ({ signal: e }) => OA(e)
+ queryKey: xA,
+ queryFn: ({ signal: e }) => TA(e)
}), i = kt({
- queryKey: pk,
- queryFn: ({ signal: e }) => mk(e)
+ queryKey: uk,
+ queryFn: ({ signal: e }) => dk(e)
}), o = kt({
- queryKey: RO,
- queryFn: ({ signal: e }) => zO(e)
+ queryKey: PO,
+ queryFn: ({ signal: e }) => FO(e)
}), s = kt({
- queryKey: TA,
- queryFn: ({ signal: e }) => kA(e)
+ queryKey: SA,
+ queryFn: ({ signal: e }) => EA(e)
}), c = kt({
- queryKey: DA,
- queryFn: ({ signal: e }) => AA(e)
+ queryKey: wA,
+ queryFn: ({ signal: e }) => DA(e)
}), l = kt({
- queryKey: FO,
- queryFn: ({ signal: e }) => IO(e)
+ queryKey: jO,
+ queryFn: ({ signal: e }) => MO(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Zae,
+ className: Qae,
children: [
/* @__PURE__ */ (0, L.jsx)(pM, {
section: "review",
label: "人工复核",
- icon: hoe,
+ icon: poe,
open: n,
- value: fM(r, Wae)
+ value: fM(r, Kae)
}),
/* @__PURE__ */ (0, L.jsx)(pM, {
section: "quality",
label: "高清版",
- icon: goe,
+ icon: moe,
open: n,
value: fM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
/* @__PURE__ */ (0, L.jsx)(pM, {
section: "duplicates",
label: "重复文件",
- icon: _oe,
+ icon: hoe,
open: n,
value: fM(o, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
@@ -35172,17 +35131,17 @@ function Soe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsx)(pM, {
section: "ads",
label: "垃圾文件",
- icon: voe,
+ icon: goe,
open: n,
value: fM(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Gae(e)
+ meta: qae(e)
}))
}),
/* @__PURE__ */ (0, L.jsx)(pM, {
section: "trash",
label: "回收站",
- icon: yoe,
+ icon: _oe,
open: n,
value: fM(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
@@ -35197,24 +35156,24 @@ function Soe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, L.jsx)(vj, {
+ children: /* @__PURE__ */ (0, L.jsx)(hj, {
toast: u,
monitor: !0,
- onComplete: xoe
+ onComplete: yoe
})
}),
/* @__PURE__ */ (0, L.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, L.jsx)(Mj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(kj, {})
}),
- /* @__PURE__ */ (0, L.jsx)(cM, {
+ /* @__PURE__ */ (0, L.jsx)(aM, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(Xj, {}),
- xA(l.data) ? /* @__PURE__ */ (0, L.jsx)(moe, { toast: e }) : null
+ /* @__PURE__ */ (0, L.jsx)(qj, {}),
+ vA(l.data) ? /* @__PURE__ */ (0, L.jsx)(foe, { toast: e }) : null
] });
}
//#endregion
@@ -35264,7 +35223,7 @@ function hM(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Coe({ title: e, children: t }) {
+function xoe({ title: e, children: t }) {
let n = (0, I.useRef)(null);
return hM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: n,
@@ -35288,42 +35247,42 @@ function gM({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: Cw("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: Sw("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: Cw("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: Sw("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, L.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: Cw("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: Sw("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var woe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+var Soe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
function _M({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: Cw(woe, r),
+ className: Sw(Soe, r),
onClick: n,
children: e
});
}
-var Toe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+var Coe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
function vM({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: Toe,
+ className: Coe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -35334,20 +35293,20 @@ function vM({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Eoe = kT("play"), Doe = kT("file-stack"), Ooe = zw({
+var woe = wT("play"), Toe = wT("file-stack"), Eoe = Rw({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
}), yM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", bM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", xM = "font-mono text-caption-1-regular leading-5 text-text-secondary", SM = () => {
X.invalidateQueries({
- queryKey: RO,
+ queryKey: PO,
exact: !0
}), X.invalidateQueries({
- queryKey: DA,
+ queryKey: wA,
exact: !0
});
};
-function koe(e) {
+function Doe(e) {
return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {
className: `${bM} text-(--keep)`,
children: "sha1 一致"
@@ -35356,7 +35315,7 @@ function koe(e) {
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function Aoe({ file: t, openItem: n }) {
+function Ooe({ file: t, openItem: n }) {
let r = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -35366,7 +35325,7 @@ function Aoe({ file: t, openItem: n }) {
onClick: r,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, L.jsx)(Eoe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(woe, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, L.jsx)("img", {
@@ -35400,7 +35359,7 @@ function Aoe({ file: t, openItem: n }) {
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
className: `${xM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: p[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: p[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
@@ -35422,19 +35381,19 @@ function Aoe({ file: t, openItem: n }) {
]
});
}
-function joe({ openItem: t, toast: n, failure: r }) {
+function koe({ openItem: t, toast: n, failure: r }) {
let i = kt({
- queryKey: RO,
- queryFn: ({ signal: e }) => zO(e)
+ queryKey: PO,
+ queryFn: ({ signal: e }) => FO(e)
}), o = kt({
- queryKey: FO,
- queryFn: ({ signal: e }) => IO(e)
+ queryKey: jO,
+ queryFn: ({ signal: e }) => MO(e)
}), [s, c] = (0, I.useState)(""), l = At({
- mutationFn: (e) => WO(e, "dispose"),
+ mutationFn: (e) => VO(e, "dispose"),
onSuccess: (e, t) => {
SM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await WO(t, "restore");
+ await VO(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
@@ -35452,12 +35411,12 @@ function joe({ openItem: t, toast: n, failure: r }) {
children: i.error ? K(i.error) : "读取重复文件失败"
})
});
- let d = u.groups ?? [], f = nae(o.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = aae(o.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = oae(e, t);
+ let r = BO(e, t);
r.length && h({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${BO[t] ?? BO.largest}。文件共 ${a(sae(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${IO[t] ?? IO.largest}。文件共 ${a(lae(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -35470,7 +35429,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, L.jsxs)(Coe, {
+ d.length ? /* @__PURE__ */ (0, L.jsxs)(xoe, {
title: "批量保留",
children: [
/* @__PURE__ */ (0, L.jsx)(vM, {
@@ -35491,7 +35450,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- UO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(vM, {
+ zO(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(vM, {
busy: s === `all:${t}`,
onPress: () => p({
groups: d,
@@ -35514,7 +35473,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
let i = [n], o = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": n.code,
- className: Ooe,
+ className: Eoe,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -35526,7 +35485,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`
}),
- koe(n),
+ Doe(n),
n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {
className: `${bM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
@@ -35556,7 +35515,7 @@ function joe({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- HO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
+ RO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
...m(o(t)),
@@ -35581,13 +35540,13 @@ function joe({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(Aoe, {
+ }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(Ooe, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: Doe,
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: Toe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -35595,11 +35554,301 @@ function joe({ openItem: t, toast: n, failure: r }) {
});
}
//#endregion
+//#region src/react/follow/online-vocab.ts
+var Aoe = "/api/follow/authors", joe = "/api/follow/tags", Moe = (e) => [
+ "follow",
+ "authors",
+ e
+], Noe = (e, t) => [
+ "follow",
+ "tags",
+ e,
+ t
+];
+function Poe(e, t, n) {
+ let r = new URLSearchParams({
+ limit: String(t),
+ offset: String(n)
+ });
+ return e && r.set("q", e), `${Aoe}?${r}`;
+}
+function Foe(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), `${joe}?${i}`;
+}
+var Ioe = (e, t, n, r) => Aw(Poe(e, t, n), r), Loe = (e, t, n, r, i) => Aw(Foe(e, t, n, r), i), Roe = "/api/index", CM = {
+ performers: "艺人",
+ creators: "创作者",
+ studios: "厂牌",
+ agencies: "事务所",
+ tags: "标签"
+}, zoe = {
+ performers: "performer",
+ creators: "creator",
+ studios: "studio",
+ agencies: "agency"
+}, wM = [
+ ["all", "全部"],
+ ["meta", "影片属性"],
+ ["relationship", "人物关系"],
+ ["role", "角色设定"],
+ ["appearance", "外貌身材"],
+ ["scene", "情境场所"],
+ ["story", "故事剧情"],
+ ["position", "性交体位"],
+ ["general", "其他内容"]
+], TM = [
+ ["all", "全部"],
+ ["general", "通用"],
+ ["artist", "创作者"],
+ ["character", "角色"],
+ ["copyright", "作品"],
+ ["metadata", "元数据"]
+], EM = {
+ people: 120,
+ tags: 180
+}, DM = (e) => e !== "tags", OM = (e) => e === "studios" || e === "agencies";
+function kM(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? TM : wM).some(([t]) => t === e.category);
+ return {
+ ...e,
+ scope: t,
+ category: e.kind === "tags" && n ? e.category : "all"
+ };
+}
+function AM(e) {
+ let { kind: t, q: n, scope: r, category: i } = e;
+ return t === "tags" ? r === "online" ? {
+ what: "online-tags",
+ q: n,
+ category: i
+ } : {
+ what: "tags",
+ q: n,
+ category: i
+ } : t === "performers" && r === "online" ? {
+ what: "online-authors",
+ q: n
+ } : {
+ what: "people",
+ kind: t,
+ q: n
+ };
+}
+var jM = (e, t, n = "all") => [
+ "index",
+ e,
+ t,
+ ...e === "tags" ? [n] : []
+];
+function MM(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), `${Roe}?${a}`;
+}
+function NM(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? EM.people : EM.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: jM(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Aw(MM(e.kind, e.q, "all", t, n), r)
+ };
+ case "tags": return {
+ ...n,
+ queryKey: jM("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Aw(MM("tags", e.q, e.category, t, n), r)
+ };
+ case "online-authors": return {
+ ...n,
+ queryKey: Moe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Ioe(e.q, t, n, r)
+ };
+ case "online-tags": return {
+ ...n,
+ queryKey: Noe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Loe(e.q, e.category, t, n, r)
+ };
+ }
+}
+async function Boe(e, t) {
+ let n = NM(AM(kM(e)));
+ X.removeQueries({
+ queryKey: n.queryKey,
+ exact: !0
+ }), await X.fetchInfiniteQuery({
+ queryKey: n.queryKey,
+ queryFn: ({ pageParam: e }) => n.queryFn({
+ pageParam: e,
+ signal: t
+ }),
+ initialPageParam: 0,
+ getNextPageParam: n.getNextPageParam
+ });
+}
+var Voe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Hoe = (e, t) => `${e}${t ? "+" : ""} 项`, PM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Uoe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Woe = {
+ numeric: !0,
+ sensitivity: "base"
+};
+function Goe(e, t) {
+ let n = /* @__PURE__ */ new Map();
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Woe))) {
+ 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]);
+ }
+ return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
+}
+//#endregion
+//#region src/react/index/index-people.tsx
+function FM({ html: e, face: t, company: n, big: r }) {
+ let i = (0, I.useRef)(null);
+ return (0, I.useLayoutEffect)(() => {
+ t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
+ }, [t]), /* @__PURE__ */ (0, L.jsx)("span", {
+ ref: i,
+ "data-person-ring": "",
+ "data-fit-native": n ? "mark" : "portrait",
+ className: `relative inline-grid flex-none place-items-center self-center overflow-hidden bg-background-secondary-default text-title-1-regular text-text-secondary ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,
+ dangerouslySetInnerHTML: { __html: e }
+ });
+}
+var Koe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function IM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, L.jsxs)("button", {
+ type: "button",
+ ...a,
+ "data-index-cell": "",
+ onClick: i,
+ className: Rw({
+ radius: "plain",
+ padding: "none",
+ interactive: !0,
+ className: `${Koe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ }),
+ children: [
+ r,
+ /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-index-name": "",
+ className: "text-body-medium break-all text-text-primary",
+ children: e
+ }),
+ /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-index-readout": "",
+ className: "text-caption-1-regular text-text-secondary",
+ children: t
+ })
+ ]
+ });
+}
+function LM({ kind: e, items: t, layout: n, props: r }) {
+ let i = zoe[e], a = OM(e), o = n === "big";
+ return /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-index-grid": "",
+ "data-layout": n,
+ "data-cells": a ? "company" : "people",
+ className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
+ children: t.map((t) => {
+ let n = r.personAvatar(t, i, o);
+ return /* @__PURE__ */ (0, L.jsx)(IM, {
+ "data-k": t.k,
+ "data-kind": i,
+ name: t.k,
+ readout: Uoe(e, t),
+ big: o,
+ onPress: () => r.openEntity(i, t.k),
+ children: /* @__PURE__ */ (0, L.jsx)(FM, {
+ html: n.html,
+ face: n.face,
+ company: a,
+ big: o
+ })
+ }, t.k);
+ })
+ });
+}
+function qoe({ items: e, layout: t, props: n }) {
+ let r = t === "big";
+ return /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-index-grid": "",
+ "data-layout": t,
+ "data-cells": "people",
+ className: "index-grid-person gap-3",
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(IM, {
+ "data-follow-author": e.key,
+ "data-kind": "performer",
+ name: e.k,
+ readout: `${e.n.toLocaleString()} 项更新`,
+ big: r,
+ onPress: () => n.openFollowAuthor(e.key),
+ children: /* @__PURE__ */ (0, L.jsx)(FM, {
+ html: n.authorAvatar(e),
+ company: !1,
+ big: r
+ })
+ }, e.key))
+ });
+}
+//#endregion
+//#region src/react/entity-body/entity-body-page.tsx
+function Joe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(Yoe, {
+ roster: e.roster,
+ props: e
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, L.jsx)(Xoe, { ...e }, e.revision) : null;
+}
+function Yoe({ roster: e, props: t }) {
+ let { helpers: n, actions: r } = t, i = (0, I.useMemo)(() => ({
+ personAvatar: n.personAvatar,
+ openEntity: r.openEntity
+ }), [n, r]);
+ return /* @__PURE__ */ (0, L.jsx)(LM, {
+ kind: e.kind,
+ items: e.people,
+ layout: e.layout,
+ props: i
+ });
+}
+function Xoe(e) {
+ let t = hT(!e.items, e.skeletonHtml);
+ return /* @__PURE__ */ (0, L.jsxs)("div", {
+ "data-entity-grid": "",
+ "data-grid-reveal": t.fading ? "" : void 0,
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(kT, {
+ mode: "entity",
+ entityKey: `${e.kind}:${e.name}`,
+ revision: e.revision,
+ initial: e.items,
+ fetchPage: e.fetchPage,
+ helpers: e.helpers,
+ actions: e.actions,
+ layout: e.layout,
+ selectMode: e.selectMode,
+ selected: e.selected,
+ seekSeconds: e.seekSeconds,
+ cache: e.cache,
+ wireDrag: e.wireDrag,
+ skeletonHtml: e.skeletonHtml,
+ groupCollapse: e.groupCollapse,
+ canLoadMore: e.canLoadMore
+ }) : null]
+ });
+}
+//#endregion
//#region src/react/components/segmented.tsx
-var CM = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", wM = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Moe = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", TM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", EM = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
+var RM = "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", zM = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Zoe = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", BM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", VM = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/components/use-view-glide.ts
-function Noe(e, t) {
+function Qoe(e, t) {
if (!t.contains(e)) return null;
let n = 0, r = 0;
for (let i = e; i && i !== t; i = i.offsetParent) n += i.offsetLeft, r += i.offsetTop;
@@ -35615,11 +35864,11 @@ function Noe(e, t) {
h: e.offsetHeight
};
}
-function DM(e, t, n, r) {
+function HM(e, t, n, r) {
let i = (0, I.useRef)(null), a = (0, I.useCallback)((r, a) => {
let o = e.current, s = t.current, c = o?.parentElement;
if (!o) return;
- let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Noe(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? Qoe(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -35657,15 +35906,15 @@ function DM(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Poe = (e) => e === "videos", OM = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var $oe = (e) => e === "videos", UM = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Foe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Poe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = DM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = DM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function ese(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = $oe(t), u = (0, I.useRef)(null), d = (0, I.useRef)(null), f = (0, I.useRef)(null), p = (0, I.useRef)(null), m = (0, I.useRef)(null), h = (0, I.useRef)(null), g = (0, I.useRef)(null), _ = HM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = HM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, I.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Loe, {
+ }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(nse, {
items: o,
hidden: !l,
actions: s
@@ -35689,13 +35938,13 @@ function Foe(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Ioe, {
+ top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(tse, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, L.jsx)(OM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, L.jsx)(UM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -35715,7 +35964,7 @@ function Foe(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, L.jsx)(OM, {})]
+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(UM, {})]
}), /* @__PURE__ */ (0, L.jsx)("div", {
ref: h,
"data-entity-tags": "",
@@ -35731,10 +35980,10 @@ function Foe(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, L.jsx)(Roe, { ...e })
+ bottom: /* @__PURE__ */ (0, L.jsx)(rse, { ...e })
})] });
}
-function Ioe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function tse({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -35776,7 +36025,7 @@ function Ioe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Loe({ items: e, hidden: t, actions: n }) {
+function nse({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -35796,7 +36045,7 @@ function Loe({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Roe(e) {
+function rse(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: c } = e;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, L.jsxs)("button", {
@@ -35808,22 +36057,22 @@ function Roe(e) {
dangerouslySetInnerHTML: { __html: s("chevron-left") }
}), /* @__PURE__ */ (0, L.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(zoe, {
+ /* @__PURE__ */ (0, L.jsx)(ise, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(Boe, {
+ t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(ase, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Voe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(ose, {
head: a,
actions: o,
helpers: c
}) : null
] });
}
-function zoe({ text: e, busy: t }) {
+function ise({ text: e, busy: t }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -35833,21 +36082,21 @@ function zoe({ text: e, busy: t }) {
}) : e
});
}
-function kM({ label: e, value: t, options: n, onChange: r }) {
- return /* @__PURE__ */ (0, L.jsx)(RD, {
+function WM({ label: e, value: t, options: n, onChange: r }) {
+ return /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": e,
orientation: "horizontal",
value: t,
onChange: r,
"data-entity-layout": "",
- className: TM,
+ className: BM,
children: n.map(([e, t, n]) => {
- let r = kT(n);
- return /* @__PURE__ */ (0, L.jsx)(zD, {
+ let r = wT(n);
+ return /* @__PURE__ */ (0, L.jsx)(FD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EM,
+ className: VM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -35857,7 +36106,7 @@ function kM({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function AM({ onPress: e, busy: t = !1 }) {
+function GM({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -35871,19 +36120,19 @@ function AM({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? w("正在换一批") : s("shuffle") }
});
}
-function Boe({ head: e, actions: t }) {
+function ase({ head: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(AM, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, L.jsx)(kM, {
+ /* @__PURE__ */ (0, L.jsx)(GM, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, L.jsx)(WM, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
e.sorts.map((e) => {
- let n = kT(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = wT(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -35897,20 +36146,20 @@ function Boe({ head: e, actions: t }) {
]
});
}
-function Voe({ head: e, actions: t, helpers: n }) {
+function ose({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, I.useState)(!1), a = (0, I.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, I.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, L.jsx)(AM, {
+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(GM, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, L.jsx)(kM, {
+ /* @__PURE__ */ (0, L.jsx)(WM, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -35926,61 +36175,61 @@ function Voe({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Hoe = "/api/avatar-choices", jM = "/api/avatar-pick", Uoe = "/api/avatar-code-cover", Woe = "/avatar-choice", MM = (e, t) => [
+var sse = "/api/avatar-choices", KM = "/api/avatar-pick", cse = "/api/avatar-code-cover", lse = "/avatar-choice", qM = (e, t) => [
"avatar-choices",
e,
t
-], NM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, PM = (e, t, n) => `${Woe}${NM(e, t)}&ref=${encodeURIComponent(n)}`, Goe = (e, t, n) => jw(Hoe + NM(e, t), n), Koe = (e) => q(Uoe, { code: e });
-function FM(e, t, n) {
+], JM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, YM = (e, t, n) => `${lse}${JM(e, t)}&ref=${encodeURIComponent(n)}`, use = (e, t, n) => Aw(sse + JM(e, t), n), dse = (e) => q(cse, { code: e });
+function XM(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Vie(e.focus, t, n) : CO(t, n);
+ return e.focus && r ? Wie(e.focus, t, n) : yO(t, n);
}
-var qoe = (e) => e.crop && SO({
+var fse = (e) => e.crop && vO({
width: e.width,
height: e.height
});
-async function Joe(e, t, n) {
+async function pse(e, t, n) {
if (!("file" in n)) {
- await q(jM, {
+ await q(KM, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${jM}${NM(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${KM}${JM(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new kw(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Ow(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Yoe(e, t) {
+function mse(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 Xoe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Zoe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Xoe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var hse = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function gse(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${hse(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var IM = (e) => e.cast > 1, Qoe = (e) => IM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, $oe = {
+var ZM = (e) => e.cast > 1, _se = (e) => ZM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, vse = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function ese(e) {
+function yse(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 tse = (e) => `${$oe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (IM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), nse = 8, rse = 3 / 4;
-function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
+var bse = (e) => `${vse[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (ZM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), xse = 8, Sse = 3 / 4;
+function Cse({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -35990,17 +36239,17 @@ function ise({ 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, L.jsx)(Hte, {
+ children: /* @__PURE__ */ (0, L.jsx)(Wte, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, L.jsx)(OO, {
+ }), /* @__PURE__ */ (0, L.jsx)(wO, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, L.jsx)(ase, {
+ children: /* @__PURE__ */ (0, L.jsx)(wse, {
kind: e,
entityId: t,
name: n,
@@ -36009,50 +36258,50 @@ function ise({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, I.useRef)(null), o = AO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = MM(e, t), g = (0, I.useRef)(!1), _ = kt({
+function wse({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, I.useRef)(null), o = EO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = qM(e, t), g = (0, I.useRef)(!1), _ = kt({
queryKey: h,
- queryFn: ({ signal: n }) => Goe(e, t, n),
+ queryFn: ({ signal: n }) => use(e, t, n),
retryOnMount: !0
});
(0, I.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: MM(e, t) });
+ g.current && X.removeQueries({ queryKey: qM(e, t) });
}, [e, t]);
let v = At({
- mutationFn: (n) => Joe(e, t, n),
+ mutationFn: (n) => pse(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = At({
- mutationFn: (e) => Koe(e),
+ mutationFn: (e) => dse(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Zoe(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : gse(x);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, L.jsx)(kO, { children: /* @__PURE__ */ (0, L.jsx)(BS, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(TO, { children: /* @__PURE__ */ (0, L.jsx)(zS, { className: "size-6" }) }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(tE, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZT, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(Ew, {
+ }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(Tw, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Qoe(p) : Yoe(n, x)
+ children: p ? _se(p) : mse(n, x)
}),
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
@@ -36064,14 +36313,14 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)(vO, {
- icon: yS,
+ /* @__PURE__ */ (0, L.jsx)(mO, {
+ icon: _S,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, L.jsx)(sse, {
+ }), p ? /* @__PURE__ */ (0, L.jsx)(Ese, {
kind: e,
entityId: t,
choice: p,
@@ -36094,7 +36343,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: nse }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: xse }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -36107,15 +36356,15 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: tse(n),
+ title: bse(n),
...Y(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, L.jsx)(ose, {
- src: PM(e, t, n.ref),
+ /* @__PURE__ */ (0, L.jsx)(Tse, {
+ src: YM(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -36124,15 +36373,15 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, L.jsx)(Ew, {
+ children: /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- IM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ ZM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsxs)(Ew, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Tw, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -36151,7 +36400,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36186,7 +36435,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36206,7 +36455,7 @@ function ase({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function ose({ src: e, choice: t }) {
+function Tse({ src: e, choice: t }) {
let n = (0, I.useRef)(null), [r, i] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -36214,7 +36463,7 @@ function ose({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = qoe(t) ? Gie(FM(t, a, rse), a) : null, s = r ? !0 : void 0;
+ }, o = fse(t) ? Jie(XM(t, a, Sse), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, L.jsx)("img", {
@@ -36239,23 +36488,23 @@ function ose({ src: e, choice: t }) {
})]
});
}
-function sse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = PM(e, t, s), m = AO();
+function Ese({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, I.useState)(o[0]), [l, u] = (0, I.useState)(null), [d, f] = (0, I.useState)(null), p = YM(e, t, s), m = EO();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? Wie(d, l) : null;
+ let g = d && l ? qie(d, l) : null;
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, L.jsx)(MO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(OO, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), SO(e) && f(s === n.ref ? FM(n, e, 1) : CO(e, 1));
+ u(e), vO(e) && f(s === n.ref ? XM(n, e, 1) : yO(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -36269,7 +36518,7 @@ function sse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: ese(e)
+ children: yse(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36303,12 +36552,12 @@ function sse({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var cse = {
+var Dse = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function LM({ name: e }) {
- let t = cse[e];
+function QM({ name: e }) {
+ let t = Dse[e];
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -36318,19 +36567,19 @@ function LM({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function RM(e, t) {
+function $M(e, t) {
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8;
t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;
}
-var zM = (e) => !!e?.isConnected && e.matches(":popover-open");
-function BM(e, t, n, r) {
+var eN = (e) => !!e?.isConnected && e.matches(":popover-open");
+function tN(e, t, n, r) {
let i = (0, I.useRef)(r);
i.current = r, (0, I.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && zM(n.current) ? RM(t.current, n.current) : i.current();
+ t.current && eN(n.current) ? $M(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -36344,17 +36593,17 @@ function BM(e, t, n, r) {
n
]);
}
-function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function nN({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, I.useRef)(null), s = (0, I.useRef)(null), [c, l] = (0, I.useState)(!1), u = (0, I.useRef)(!1), d = (0, I.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, zM(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, eN(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || zM(s.current)) && (s.current.showPopover(), RM(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || eN(s.current)) && (s.current.showPopover(), $M(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();
}, 150);
};
- return BM(c, o, s, f), (0, I.useEffect)(() => {
+ return tN(c, o, s, f), (0, I.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -36380,7 +36629,7 @@ function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && zM(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && eN(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36398,16 +36647,16 @@ function VM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function lse({ following: e, busy: t, onToggle: n, tip: r }) {
+function Ose({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null), o = (0, I.useRef)(null), [s, c] = (0, I.useState)(!1), l = (0, I.useRef)(!1), u = () => {
- zM(o.current) && o.current.hidePopover(), c(!1);
+ eN(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || zM(o.current) || (o.current.showPopover(), RM(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || eN(o.current) || (o.current.showPopover(), $M(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return BM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
- i.current && zM(o.current) && RM(i.current, o.current);
+ return tN(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
+ i.current && eN(o.current) && $M(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -36416,7 +36665,7 @@ function lse({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, L.jsx)(LM, { name: "rss" }),
+ /* @__PURE__ */ (0, L.jsx)(QM, { name: "rss" }),
/* @__PURE__ */ (0, L.jsx)("input", {
ref: a,
type: "checkbox",
@@ -36451,29 +36700,29 @@ function lse({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function use({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function kse({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, I.useState)(!1), o = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, L.jsxs)(Ore, {
+ }, []), /* @__PURE__ */ (0, L.jsxs)(jre, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, L.jsx)($T, {
+ children: [/* @__PURE__ */ (0, L.jsx)(YT, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, L.jsx)(LM, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ children: /* @__PURE__ */ (0, L.jsx)(QM, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: zA,
+ className: IA,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, L.jsxs)(Are, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Nre, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(DD, {
+ /* @__PURE__ */ (0, L.jsx)(CD, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -36481,31 +36730,31 @@ function use({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(kD, {
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(TD, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, L.jsx)(QM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(ure, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, L.jsx)(DD, { children: /* @__PURE__ */ (0, L.jsxs)(kD, {
+ /* @__PURE__ */ (0, L.jsx)(pre, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, L.jsx)(CD, { children: /* @__PURE__ */ (0, L.jsxs)(TD, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(QM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var dse = (e) => e === "studio" || e === "agency", fse = (e) => e === "performer" || e === "creator", pse = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function mse(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 HM(e) {
+function rN(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -36516,13 +36765,13 @@ function HM(e) {
linked: !1
} : null;
}
-function UM(e, t) {
+function iN(e, t) {
let n = u(e, "performer"), r = o(t);
return r && [e.label, n].map(o).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var WM = (e) => ({ site: c(e) });
-function hse(e, n) {
- let r = HM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var aN = (e) => ({ site: c(e) });
+function Pse(e, n) {
+ let r = rN(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -36532,7 +36781,7 @@ function hse(e, n) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${UM(e, r)} · ${t}`
+ title: `${iN(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -36543,8 +36792,8 @@ function hse(e, n) {
if (n === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: UM(e, r),
- mark: WM(e)
+ title: iN(e, r),
+ mark: aN(e)
};
if (e.link_kind === "social") {
let n = t(i);
@@ -36552,7 +36801,7 @@ function hse(e, n) {
type: "icon",
url: i,
title: e.label || "",
- mark: n ? { brand: n } : WM(e)
+ mark: n ? { brand: n } : aN(e)
};
}
return {
@@ -36560,13 +36809,13 @@ function hse(e, n) {
url: i,
title: e.label || "",
text: u(e, n, a),
- mark: WM(e)
+ mark: aN(e)
};
});
return [...i, ...o];
}
-var GM = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function gse(e) {
+var oN = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function Fse(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -36623,14 +36872,14 @@ function gse(e) {
tags: e.tags
}), t;
}
-function _se(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 ? {
@@ -36641,8 +36890,8 @@ function vse(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
- let c = fse(e), l = dse(e), u = e === "performer" ? gse(n.profile) : [], d = hse(n, e), f = GM(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
+function Rse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
+ let c = jse(e), l = Ase(e), u = e === "performer" ? Fse(n.profile) : [], d = Pse(n, e), f = oN(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, I.useEffect)(() => {
@@ -36655,7 +36904,7 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, L.jsx)(bse, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zse, {
kind: e,
name: t,
helpers: s,
@@ -36663,7 +36912,7 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
company: l
}), c && n.id ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, L.jsx)(ise, {
+ children: /* @__PURE__ */ (0, L.jsx)(Cse, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -36676,14 +36925,14 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(use, {
+ children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(kse, {
current: n.canonical_name,
- choices: mse(n),
+ choices: Nse(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, L.jsx)(xse, {
+ /* @__PURE__ */ (0, L.jsx)(Bse, {
kind: e,
entity: n,
actions: o
@@ -36691,9 +36940,9 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
d.length ? /* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
"data-entity-links": "",
- children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Tse, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Wse, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Ese, {
+ f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Gse, {
entity: n,
actions: o,
helpers: s
@@ -36702,11 +36951,11 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
}),
u.length ? /* @__PURE__ */ (0, L.jsx)("dl", {
"data-entity-facts": "",
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Cse, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Hse, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, L.jsx)(wse, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, L.jsx)(Use, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -36733,14 +36982,14 @@ function yse({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(Dse, {
+ }), a ? (0, yh.createPortal)(/* @__PURE__ */ (0, L.jsx)(Kse, {
feedNew: i,
host: a,
actions: o,
helpers: s
}), a) : null] });
}
-function bse({ kind: e, name: t, helpers: n, people: i, company: a }) {
+function zse({ kind: e, name: t, helpers: n, people: i, company: a }) {
let [o] = (0, I.useState)(() => `${n.portraitImg()}<span>${r(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-portrait": i ? "round" : "square",
@@ -36749,8 +36998,8 @@ function bse({ kind: e, name: t, helpers: n, people: i, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function xse({ kind: e, entity: t, actions: r }) {
- let i = HM(t), a = (e, t) => (n) => {
+function Bse({ kind: e, entity: t, actions: r }) {
+ let i = rN(t), a = (e, t) => (n) => {
n.preventDefault(), r.openEntity(e, t);
}, o = i ? i.linked ? /* @__PURE__ */ (0, L.jsx)("a", {
href: n("agency", i.name),
@@ -36759,36 +37008,36 @@ function xse({ kind: e, entity: t, actions: r }) {
children: i.name
}) : i.name : null, s = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer") {
- let e = vse(t.name_groups);
+ let e = Lse(t.name_groups);
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entity-alias": "meta",
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, L.jsx)(QM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, L.jsx)(QM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
}) : null,
e ? /* @__PURE__ */ (0, L.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, L.jsx)(LM, { name: "id-card" }),
+ /* @__PURE__ */ (0, L.jsx)(QM, { name: "id-card" }),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, L.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(VM, {
+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(nN, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(Sse, {
+ children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(Vse, {
label: e.label,
names: e.names
}, t)) })
@@ -36823,25 +37072,25 @@ function xse({ kind: e, entity: t, actions: r }) {
]
});
}
-function Sse({ label: e, names: t }) {
+function Vse({ label: e, names: t }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [e ? /* @__PURE__ */ (0, L.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, L.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, L.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function Cse({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(LM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
+function Hse({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("dt", { children: [/* @__PURE__ */ (0, L.jsx)(QM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function wse({ tags: e }) {
- let { shown: t, rest: n } = _se(e);
+function Use({ tags: e }) {
+ let { shown: t, rest: n } = Ise(e);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, L.jsx)("span", {
"data-fact-tag": "",
children: e
- }, e)), n ? /* @__PURE__ */ (0, L.jsx)(VM, {
+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(nN, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -36856,10 +37105,10 @@ function wse({ tags: e }) {
})
}) : null] });
}
-function KM({ mark: e }) {
+function sN({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, L.jsx)(LM, { name: e.brand })
+ children: /* @__PURE__ */ (0, L.jsx)(QM, { name: e.brand })
});
let t = s("globe") + ("site" in e ? `<img src="${r(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36867,7 +37116,7 @@ function KM({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Tse({ link: e }) {
+function Wse({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, L.jsx)("a", {
"data-link": "icon",
@@ -36876,19 +37125,19 @@ function Tse({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark })
+ children: /* @__PURE__ */ (0, L.jsx)(sN, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, L.jsx)(sN, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(sN, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -36899,14 +37148,14 @@ function Tse({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, L.jsx)(KM, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(sN, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Ese({ entity: e, actions: t, helpers: n }) {
+function Gse({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, I.useState)(!!e.feed?.following), [a, o] = (0, I.useState)(!1), s = (0, I.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -36924,31 +37173,31 @@ function Ese({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entry-marks": "",
- children: [GM(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ children: [oN(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(LM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(QM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(lse, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(Ose, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: pse(r)
+ tip: Mse(r)
}) : null]
});
}
-function Dse({ feedNew: e, host: t, actions: n, helpers: r }) {
+function Kse({ feedNew: e, host: t, actions: n, helpers: r }) {
let i = (0, I.useRef)(null), a = e?.items.length ? e.html : "";
(0, I.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !a;
@@ -36972,7 +37221,7 @@ function Dse({ feedNew: e, host: t, actions: n, helpers: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var qM = [
+var cN = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -36980,7 +37229,7 @@ var qM = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], Ose = "checked", JM = {
+], qse = "checked", lN = {
checked: "desc",
added: "desc",
name: "asc",
@@ -36988,32 +37237,32 @@ var qM = [
source: "asc",
provider: "asc",
status: "asc"
-}, kse = (e) => qM.some(([t]) => t === e);
-function YM(e, t) {
- let n = kse(e) ? e : Ose;
+}, Jse = (e) => cN.some(([t]) => t === e);
+function uN(e, t) {
+ let n = Jse(e) ? e : qse;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : JM[n]
+ dir: t === "asc" || t === "desc" ? t : lN[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var XM = "/api/follow", Ase = "/api/follow/credentials", ZM = "/api/follow/check", QM = "/api/follow/source", $M = "/api/follow/resolve", jse = "/api/follow/suggest", eN = "/api/follow/author-alias", Mse = "/api/follow/credential", Nse = "/api/follow/status", Pse = "/api/feeds", tN = "/api/feeds/source", Fse = "/api/feeds/check", Ise = "/api/feeds/lookup", nN = ["follow-manage"], rN = ["follow-manage", "credentials"], Lse = ["follow-manage", "check"], Rse = ["follow-manage", "resolve"], iN = ["follow-manage", "feeds"], zse = (e) => [
+var dN = "/api/follow", Yse = "/api/follow/credentials", fN = "/api/follow/check", pN = "/api/follow/source", mN = "/api/follow/resolve", Xse = "/api/follow/suggest", hN = "/api/follow/author-alias", Zse = "/api/follow/credential", Qse = "/api/follow/status", $se = "/api/feeds", gN = "/api/feeds/source", ece = "/api/feeds/check", tce = "/api/feeds/lookup", _N = ["follow-manage"], vN = ["follow-manage", "credentials"], nce = ["follow-manage", "check"], rce = ["follow-manage", "resolve"], yN = ["follow-manage", "feeds"], ice = (e) => [
"follow-manage",
"suggest",
e
-], aN = [["default", "默认视图"], ["table", "表格视图"]], oN = [
+], bN = [["default", "默认视图"], ["table", "表格视图"]], xN = [
10,
20,
50,
100
-], Bse = Object.fromEntries(qM), sN = {
+], ace = Object.fromEntries(cN), SN = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Vse = (e) => aN.some(([t]) => t === e), Hse = (e) => oN.includes(Number(e)) ? Number(e) : 20, Use = {
+}, oce = (e) => bN.some(([t]) => t === e), sce = (e) => xN.includes(Number(e)) ? Number(e) : 20, cce = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -37021,25 +37270,25 @@ var XM = "/api/follow", Ase = "/api/follow/credentials", ZM = "/api/follow/check
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Wse = (e, t) => `按${Bse[e]}${Use[e][t === "asc" ? 0 : 1]}排序`;
-function cN(e) {
+}, lce = (e, t) => `按${ace[e]}${cce[e][t === "asc" ? 0 : 1]}排序`;
+function CN(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Gse(e) {
+function uce(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var lN = (e) => e.last_status === "error" || e.last_status === "unauthorized", uN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), dN = {
- source: uN,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || uN(e, t),
- status: (e, t) => cN(e) - cN(t) || uN(e, t)
-}, fN = (e) => Date.parse(e || "") || 0, pN = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function mN(e, t = []) {
+var wN = (e) => e.last_status === "error" || e.last_status === "unauthorized", TN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), EN = {
+ source: TN,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || TN(e, t),
+ status: (e, t) => CN(e) - CN(t) || TN(e, t)
+}, DN = (e) => Date.parse(e || "") || 0, ON = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function kN(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || pN(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || ON(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return pN(i.canonical_name);
+ if (i) return ON(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);
@@ -37047,18 +37296,18 @@ function mN(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function Kse(e) {
+function dce(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function qse(e) {
+function fce(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function hN(e) {
+function AN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -37066,32 +37315,32 @@ function hN(e) {
}
return t.map((e) => n.get(e));
}
-function Jse(e, t, n, r = []) {
- let i = hN(e), a = n === JM[t] ? 1 : -1, o = (e) => mN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = dN[t];
+function pce(e, t, n, r = []) {
+ let i = AN(e), a = n === lN[t] ? 1 : -1, o = (e) => kN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = EN[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => fN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => fN(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => DN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => DN(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function Yse(e, t, n, r = []) {
+function mce(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = mN(e, r);
+ let t = kN(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = dN[t];
+ }), a = EN[t];
if (a) {
- let e = n === JM[t] ? 1 : -1;
+ let e = n === lN[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function Xse(e, t, n) {
- let r = vk(e, t), i = yk(n, r), a = (i - 1) * t;
+function hce(e, t, n) {
+ let r = hk(e, t), i = gk(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -37100,91 +37349,91 @@ function Xse(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Zse(e, t) {
+function jN(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function gN(e, t) {
+function MN(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function _N(e, t, n) {
+function NN(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var vN = (e) => jw(`${XM}?summary=1`, e), yN = (e) => jw(Ase, e), Qse = (e) => jw(ZM, e), $se = (e) => jw($M, e), ece = (e, t) => jw(`${jse}?q=${encodeURIComponent(e)}`, t), bN = (e) => q(ZM, {
+var PN = (e) => Aw(`${dN}?summary=1`, e), FN = (e) => Aw(Yse, e), IN = (e) => Aw(fN, e), LN = (e) => Aw(mN, e), RN = (e, t) => Aw(`${Xse}?q=${encodeURIComponent(e)}`, t), zN = (e) => q(fN, {
...e?.length ? { sources: e } : {},
background: !0
-}), tce = (e) => q($M, {
+}), BN = (e) => q(mN, {
lines: e,
background: !0
-}), xN = (e, t) => q(QM, {
+}), VN = (e, t) => q(pN, {
action: "enabled",
id: e,
enabled: t
-}), SN = (e) => q(QM, {
+}), HN = (e) => q(pN, {
action: "remove",
id: e
-}), nce = (e) => q(QM, {
+}), UN = (e) => q(pN, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), CN = (e, t) => q(eN, {
+}), WN = (e, t) => q(hN, {
action: "add",
canonical: e,
alias: t
-}), rce = (e) => q(eN, {
+}), GN = (e) => q(hN, {
action: "remove",
alias: e
-}), ice = (e, t) => q(Mse, {
+}), KN = (e, t) => q(Zse, {
provider: e,
values: t
-}), ace = (e, t) => q(Nse, {
+}), qN = (e, t) => q(Qse, {
item: e,
to: t
-}), oce = () => jw(`${XM}?status=new&limit=1000`);
-async function wN(e) {
- let t = await jw(Pse, e);
+}), JN = () => Aw(`${dN}?status=new&limit=1000`);
+async function YN(e) {
+ let t = await Aw($se, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var TN = (e, t, n) => q(tN, {
+var XN = (e, t, n) => q(gN, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), EN = (e, t) => q(tN, {
+}, "POST", n), ZN = (e, t) => q(gN, {
action: "remove",
id: e
-}, "POST", t), DN = (e, t) => q(Fse, t?.length ? { sources: t } : { all: !0 }, "POST", e), sce = (e, t) => jw(`${Ise}?q=${encodeURIComponent(e)}`, t), cce = (e, t, n) => q(tN, {
+}, "POST", t), QN = (e, t) => q(ece, t?.length ? { sources: t } : { all: !0 }, "POST", e), $N = (e, t) => Aw(`${tce}?q=${encodeURIComponent(e)}`, t), eP = (e, t, n) => q(gN, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function lce(e, t = "") {
+async function tP(e, t = "") {
await Promise.all([
X.fetchQuery({
- queryKey: nN,
- queryFn: () => vN(e)
+ queryKey: _N,
+ queryFn: () => PN(e)
}),
X.fetchQuery({
- queryKey: rN,
- queryFn: () => yN(e)
+ queryKey: vN,
+ queryFn: () => FN(e)
}),
t === "feeds" ? X.fetchQuery({
- queryKey: iN,
- queryFn: () => wN(e)
+ queryKey: yN,
+ queryFn: () => YN(e)
}) : null
]);
}
-function ON(e, t) {
- X.setQueryData(nN, (n) => n && {
+function nP(e, t) {
+ X.setQueryData(_N, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -37192,24 +37441,24 @@ function ON(e, t) {
} : n)
});
}
-function kN(e) {
+function rP(e) {
let t = new Set(e);
- X.setQueryData(nN, (e) => e && {
+ X.setQueryData(_N, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var AN = () => X.invalidateQueries({
- queryKey: nN,
+var iP = () => X.invalidateQueries({
+ queryKey: _N,
exact: !0
});
-function uce(e) {
+function aP(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 dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", jN = (e) => e.last_checked_at ? xk(e.last_checked_at) : "未检查", pce = /* @__PURE__ */ new Set([
+var oP = (e) => (e?.results || []).filter((e) => !e.ok), sP = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", cP = (e) => e.last_checked_at ? vk(e.last_checked_at) : "未检查", lP = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -37222,16 +37471,16 @@ var dce = (e) => (e?.results || []).filter((e) => !e.ok), fce = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), MN = (e) => pce.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", NN = {
+]), uP = (e) => lP.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", dP = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, PN = (e) => !!e.present && !e.missing.length;
+}, fP = (e) => !!e.present && !e.missing.length;
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function FN({ provider: e, label: t }) {
- let n = MN(e), [r, i] = (0, I.useState)(!1);
+function pP({ provider: e, label: t }) {
+ let n = uP(e), [r, i] = (0, I.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: t }) : null : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("img", {
src: n,
alt: "",
@@ -37240,10 +37489,10 @@ function FN({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : null] });
}
-function IN({ group: e, name: t }) {
- let { src: n, fallback: r } = qse(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
+function mP({ group: e, name: t }) {
+ let { src: n, fallback: r } = fce(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, L.jsx)("img", {
src: o,
alt: "",
@@ -37256,18 +37505,18 @@ function IN({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, L.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: Kse(t)
+ children: dce(t)
});
}
-function LN({ source: e }) {
- let t = lN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(Ew, {
+function hP({ source: e }) {
+ let t = wN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+ return /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: t,
- children: Gse(e)
+ children: uce(e)
});
}
-function RN({ source: e }) {
+function gP({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("a", {
href: e.url,
target: "_blank",
@@ -37279,11 +37528,11 @@ function RN({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var zN = Cw(BA, VA, "text-body-2-medium"), BN = "粘贴来源链接,或输入创作者名、id…", VN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", HN = "识别中…", UN = "站内没有查到来源", WN = (e, t) => `${e}:${t.url}`;
-function GN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var _P = Sw(LA, RA, "text-body-2-medium"), vP = "粘贴来源链接,或输入创作者名、id…", yP = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", bP = "识别中…", xP = "站内没有查到来源", SP = (e, t) => `${e}:${t.url}`;
+function CP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, I.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(bD, {
+ }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(gD, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -37295,17 +37544,17 @@ function GN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: Cw(zA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: Sw(IA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, L.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? Cw(zN, "bg-background-secondary-default") : zN,
+ className: t === r ? Sw(_P, "bg-background-secondary-default") : _P,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -37325,7 +37574,7 @@ function GN({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function KN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function wP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, I.useRef)(null), [a, o] = (0, I.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);
@@ -37333,20 +37582,20 @@ function KN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
ref: i,
variant: "secondary",
- leadingIcon: qte,
+ leadingIcon: Yte,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: zA,
- children: /* @__PURE__ */ (0, L.jsxs)(jD, {
+ className: IA,
+ children: /* @__PURE__ */ (0, L.jsxs)(DD, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -37362,16 +37611,16 @@ function KN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, L.jsx)(QA, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, L.jsx)(pP, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
@@ -37387,7 +37636,7 @@ function KN({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function qN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function TP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: e.line,
@@ -37395,7 +37644,7 @@ function qN({ 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, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
@@ -37405,15 +37654,15 @@ function qN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = WN(t, e);
- return /* @__PURE__ */ (0, L.jsx)(Fj, {
+ let n = SP(t, e);
+ return /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }),
+ /* @__PURE__ */ (0, L.jsx)(pP, { provider: e.provider }),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -37429,22 +37678,22 @@ function qN({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: UN }),
+ }) : /* @__PURE__ */ (0, L.jsx)(QA, { children: xP }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, L.jsx)(ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(tj, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, L.jsx)(tj, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, L.jsx)(QA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function EP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, I.useState)(""), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(!1), [p, m] = (0, I.useState)(null), [h, g] = (0, I.useState)(-1), _ = (0, I.useRef)(null), v = (0, I.useRef)(null), [y, b] = (0, I.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, I.useState)(""), [T, E] = (0, I.useState)(0);
(0, I.useEffect)(() => {
let e = a.trim();
@@ -37456,18 +37705,18 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
return () => clearTimeout(t);
}, [a]);
let D = kt({
- queryKey: zse(l),
- queryFn: ({ signal: e }) => ece(l, e),
+ queryKey: ice(l),
+ queryFn: ({ signal: e }) => RN(l, e),
enabled: l.length > 0 && d
}), O = (0, I.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 } = kj({
- queryKey: Rse,
- queryFn: ({ signal: e }) => $se(e),
- start: (e) => tce([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = Ej({
+ queryKey: rce,
+ queryFn: ({ signal: e }) => LN(e),
+ start: (e) => BN([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -37501,14 +37750,14 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: WN(t, e)
+ key: SP(t, e)
})).filter((e) => !x.has(e.key))), ae = At({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await nce(r.candidate);
+ let e = await UN(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -37516,7 +37765,7 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await bN(n);
+ await zN(n);
} catch (e) {
t.push(K(e));
}
@@ -37526,7 +37775,7 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (AN(), e.failures.length) {
+ if (iP(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -37535,7 +37784,7 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onError: (e) => w(K(e))
}), oe = e.suggestions || [], se = !s.includes("/");
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -37555,15 +37804,15 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, L.jsx)(rM, {
+ children: [/* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "来源链接、名字或 id",
- placeholder: BN,
+ placeholder: vP,
value: a,
- leadingIcon: FS,
+ leadingIcon: PS,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), P ? /* @__PURE__ */ (0, L.jsx)(GN, {
+ }), P ? /* @__PURE__ */ (0, L.jsx)(CP, {
field: _,
menu: v,
options: O,
@@ -37573,7 +37822,7 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClose: F
}) : null]
}),
- /* @__PURE__ */ (0, L.jsx)(KN, {
+ /* @__PURE__ */ (0, L.jsx)(wP, {
credentials: t,
hidden: y,
onHidden: b,
@@ -37591,11 +37840,11 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
/* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
label: k.message || `查找中:${k.checked || 0}/${k.total}`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: se ? VN : HN }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: se ? yP : bP }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -37604,8 +37853,8 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
re.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(qN, {
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(TP, {
row: e,
at: t,
hidden: y,
@@ -37660,16 +37909,16 @@ function JN({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var YN = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, XN = (e) => e.alias;
-function ZN(e, t, n) {
+var DP = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, OP = (e) => e.alias;
+function kP(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 QN({ sources: e, name: t, canonicalKey: n }) {
+function AP({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(IN, {
- group: ZN(e, t, n),
+ children: [/* @__PURE__ */ (0, L.jsx)(mP, {
+ group: kP(e, t, n),
name: t
}), /* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
@@ -37677,15 +37926,15 @@ function QN({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function jP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = At({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await CN(n.canonical, n.alias);
+ await WN(n.canonical, n.alias);
} catch (n) {
- throw t && AN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && iP(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -37695,19 +37944,19 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), AN(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), iP(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), m = At({
- mutationFn: (e) => CN(e.canonical, e.alias),
+ mutationFn: (e) => WN(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), AN(), i("已保存创作者别名");
+ c(""), u(""), f(""), iP(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), g = At({
- mutationFn: (e) => rce(e),
+ mutationFn: (e) => GN(e),
onSuccess: () => {
- c(""), AN(), i("已移除创作者别名");
+ c(""), iP(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -37717,9 +37966,9 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(XN(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
+ }, v = t.filter((e) => a.has(OP(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -37730,10 +37979,10 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, L.jsx)(ej, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -37741,7 +37990,7 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -37762,13 +38011,13 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(nj, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, L.jsx)($A, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "待合并" }),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "待合并" }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -37790,44 +38039,44 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(Ij, { children: /* @__PURE__ */ (0, L.jsxs)(Nj, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(ZD, { children: [
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "select",
- children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Mj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(XN)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(OP)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, L.jsx)(nO, {
+ /* @__PURE__ */ (0, L.jsx)(QD, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: t.map((e) => {
- let t = XN(e);
- return /* @__PURE__ */ (0, L.jsxs)(sO, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(eO, { children: t.map((e) => {
+ let t = OP(e);
+ return /* @__PURE__ */ (0, L.jsxs)(rO, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)(Mj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -37836,16 +38085,16 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(QN, {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)(AP, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: e.alias }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: e.alias }),
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -37862,27 +38111,27 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(ej, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, L.jsx)(zj, { children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
+ }), e.length ? /* @__PURE__ */ (0, L.jsx)(Ij, { children: /* @__PURE__ */ (0, L.jsxs)(Nj, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(tO, { children: [/* @__PURE__ */ (0, L.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(ZD, { children: [/* @__PURE__ */ (0, L.jsx)(QD, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, L.jsx)(nO, {
+ }), /* @__PURE__ */ (0, L.jsx)(QD, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, L.jsx)(iO, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(sO, {
+ })] }), /* @__PURE__ */ (0, L.jsx)(eO, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(rO, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)(QN, {
+ children: [/* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)(AP, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, L.jsx)(lO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, L.jsx)(aO, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, L.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",
@@ -37890,13 +38139,13 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: yS,
+ leadingIcon: _S,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Y(g.isPending),
onClick: () => void h({
title: "移除创作者别名",
- body: YN(e.name),
+ body: DP(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -37904,9 +38153,9 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: BS,
+ icon: zS,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -37916,33 +38165,33 @@ function $N({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var eP = "这些账号信息存在哪里", tP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", nP = "将清除这个来源在本机和共享副本中的登录凭据。", rP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function iP(e, t) {
+var MP = "这些账号信息存在哪里", NP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", PP = "将清除这个来源在本机和共享副本中的登录凭据。", FP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function IP(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function aP({ row: e }) {
- if (PN(e)) return /* @__PURE__ */ (0, L.jsx)(Ew, {
+function LP({ row: e }) {
+ if (fP(e)) return /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(Ew, {
+ return /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: t,
- children: NN[e.requirement] || ""
+ children: dP[e.requirement] || ""
});
}
-function oP({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = PN(e), c = At({
- mutationFn: (t) => ice(e.provider, t),
+function RP({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = fP(e), c = At({
+ mutationFn: (t) => KN(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: rN,
+ queryKey: vN,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -37958,17 +38207,17 @@ function oP({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsxs)(tj, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(tj, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, L.jsx)(tj, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, L.jsx)(QA, { children: e.howto }) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(eM, {
type: "password",
label: n,
- placeholder: iP(e, n),
+ placeholder: IP(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -37996,7 +38245,7 @@ function oP({ row: e, readOnly: t, toast: n }) {
...Y(c.isPending),
onClick: () => void h({
title: "清除来源凭据",
- body: nP,
+ body: PP,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -38004,9 +38253,9 @@ function oP({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, L.jsx)(nj, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(tj, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, L.jsx)(qA, {
+ a ? /* @__PURE__ */ (0, L.jsx)($A, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(QA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, L.jsx)(WA, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -38014,25 +38263,25 @@ function oP({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: rP
+ children: FP
}) : null
]
});
}
-function sP({ row: e, readOnly: t, toast: n }) {
+function zP({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider })
+ children: /* @__PURE__ */ (0, L.jsx)(pP, { provider: e.provider })
}),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, L.jsx)(aP, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+ /* @__PURE__ */ (0, L.jsx)(LP, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -38041,13 +38290,13 @@ function sP({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, L.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, L.jsx)(tj, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(QA, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, L.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, L.jsx)(sj, {
- summary: PN(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !PN(e),
- children: /* @__PURE__ */ (0, L.jsx)(oP, {
+ children: [r, /* @__PURE__ */ (0, L.jsx)(ij, {
+ summary: fP(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !fP(e),
+ children: /* @__PURE__ */ (0, L.jsx)(RP, {
row: e,
readOnly: t,
toast: n
@@ -38055,10 +38304,10 @@ function sP({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function cP({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !PN(e));
+function BP({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !fP(e));
return r.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -38074,11 +38323,11 @@ function cP({ data: e, readOnly: t, toast: n }) {
}) : null]
}),
/* @__PURE__ */ (0, L.jsx)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(sP, {
+ children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(zP, {
row: e,
readOnly: t,
toast: n
@@ -38089,13 +38338,13 @@ function cP({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: eP
+ children: MP
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: tP
+ children: NP
}),
- /* @__PURE__ */ (0, L.jsx)(qA, {
+ /* @__PURE__ */ (0, L.jsx)(WA, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -38104,16 +38353,16 @@ function cP({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: kS,
+ icon: OS,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function lP() {
+function VP() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -38126,24 +38375,24 @@ function lP() {
group: (e) => e
};
}
-function uP(e, t) {
+function HP(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function dP(e, t) {
+function UP(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: uP(n, t[e])
+ [e]: HP(n, t[e])
}));
};
}
-function fP(e) {
+function WP(e) {
return e instanceof Function;
}
-function pP(e) {
+function GP(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function mP(e, t) {
+function KP(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -38153,7 +38402,7 @@ function mP(e, t) {
};
return r(e), n;
}
-function hP(e, t, n) {
+function qP(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -38175,21 +38424,21 @@ function hP(e, t, n) {
return i;
};
}
-function gP(e, t, n, r) {
+function JP(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function _P(e, t, n, r) {
+function YP(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: hP(() => [
+ getContext: qP(() => [
e,
n,
t,
@@ -38201,13 +38450,13 @@ function _P(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), gP(e.options, "debugCells", "cell.getContext"))
+ }), JP(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function vP(e, t, n, r) {
+function XP(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -38224,17 +38473,17 @@ function vP(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: hP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], gP(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: hP(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: qP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], JP(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: qP(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, gP(e.options, "debugColumns", "column.getLeafColumns"))
+ }, JP(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var yP = "debugHeaders";
-function bP(e, t, n) {
+var ZP = "debugHeaders";
+function QP(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -38262,42 +38511,42 @@ function bP(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var xP = { createTable: (e) => {
- e.getHeaderGroups = hP(() => [
+var $P = { createTable: (e) => {
+ e.getHeaderGroups = qP(() => [
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 SP(t, [
+ return eF(t, [
...a,
...s,
...o
], e);
- }, gP(e.options, yP, "getHeaderGroups")), e.getCenterHeaderGroups = hP(() => [
+ }, JP(e.options, ZP, "getHeaderGroups")), e.getCenterHeaderGroups = qP(() => [
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))), SP(t, n, e, "center")), gP(e.options, yP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = hP(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), eF(t, n, e, "center")), JP(e.options, ZP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = qP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => SP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), gP(e.options, yP, "getLeftHeaderGroups")), e.getRightHeaderGroups = hP(() => [
+ ], (t, n, r) => eF(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), JP(e.options, ZP, "getLeftHeaderGroups")), e.getRightHeaderGroups = qP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => SP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), gP(e.options, yP, "getRightHeaderGroups")), e.getFooterGroups = hP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getFooterGroups")), e.getLeftFooterGroups = hP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getLeftFooterGroups")), e.getCenterFooterGroups = hP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getCenterFooterGroups")), e.getRightFooterGroups = hP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), gP(e.options, yP, "getRightFooterGroups")), e.getFlatHeaders = hP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getFlatHeaders")), e.getLeftFlatHeaders = hP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = hP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getCenterFlatHeaders")), e.getRightFlatHeaders = hP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), gP(e.options, yP, "getRightFlatHeaders")), e.getCenterLeafHeaders = hP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => eF(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), JP(e.options, ZP, "getRightHeaderGroups")), e.getFooterGroups = qP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), JP(e.options, ZP, "getFooterGroups")), e.getLeftFooterGroups = qP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), JP(e.options, ZP, "getLeftFooterGroups")), e.getCenterFooterGroups = qP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), JP(e.options, ZP, "getCenterFooterGroups")), e.getRightFooterGroups = qP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), JP(e.options, ZP, "getRightFooterGroups")), e.getFlatHeaders = qP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JP(e.options, ZP, "getFlatHeaders")), e.getLeftFlatHeaders = qP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JP(e.options, ZP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = qP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JP(e.options, ZP, "getCenterFlatHeaders")), e.getRightFlatHeaders = qP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JP(e.options, ZP, "getRightFlatHeaders")), e.getCenterLeafHeaders = qP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), gP(e.options, yP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = hP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), JP(e.options, ZP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = qP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), gP(e.options, yP, "getLeftLeafHeaders")), e.getRightLeafHeaders = hP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), JP(e.options, ZP, "getLeftLeafHeaders")), e.getRightLeafHeaders = qP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), gP(e.options, yP, "getRightLeafHeaders")), e.getLeafHeaders = hP(() => [
+ }), JP(e.options, ZP, "getRightLeafHeaders")), e.getLeafHeaders = qP(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -38305,9 +38554,9 @@ var xP = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), gP(e.options, yP, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), JP(e.options, ZP, "getLeafHeaders"));
} };
-function SP(e, t, n, r) {
+function eF(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;
@@ -38325,7 +38574,7 @@ function SP(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 = bP(n, c, {
+ let i = QP(n, c, {
id: [
r,
t,
@@ -38342,7 +38591,7 @@ function SP(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) => bP(n, e, {
+ s(t.map((e, t) => QP(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -38360,7 +38609,7 @@ function SP(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var CP = (e, t, n, r, i, a, o) => {
+var tF = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -38381,7 +38630,7 @@ var CP = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => mP(s.subRows, (e) => e.subRows),
+ getLeafRows: () => KP(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -38392,95 +38641,95 @@ var CP = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: hP(() => [e.getAllLeafColumns()], (t) => t.map((t) => _P(e, s, t, t.id)), gP(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: hP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), gP(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: qP(() => [e.getAllLeafColumns()], (t) => t.map((t) => YP(e, s, t, t.id)), JP(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: qP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), JP(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;
-}, wP = { createColumn: (e, t) => {
+}, nF = { 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();
};
-} }, TP = (e, t, n) => {
+} }, rF = (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));
};
-TP.autoRemove = (e) => FP(e);
-var EP = (e, t, n) => {
+rF.autoRemove = (e) => pF(e);
+var iF = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-EP.autoRemove = (e) => FP(e);
-var DP = (e, t, n) => {
+iF.autoRemove = (e) => pF(e);
+var aF = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-DP.autoRemove = (e) => FP(e);
-var OP = (e, t, n) => e.getValue(t)?.includes(n);
-OP.autoRemove = (e) => FP(e);
-var kP = (e, t, n) => !n.some((n) => {
+aF.autoRemove = (e) => pF(e);
+var oF = (e, t, n) => e.getValue(t)?.includes(n);
+oF.autoRemove = (e) => pF(e);
+var sF = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-kP.autoRemove = (e) => FP(e) || !(e != null && e.length);
-var AP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-AP.autoRemove = (e) => FP(e) || !(e != null && e.length);
-var jP = (e, t, n) => e.getValue(t) === n;
-jP.autoRemove = (e) => FP(e);
-var MP = (e, t, n) => e.getValue(t) == n;
-MP.autoRemove = (e) => FP(e);
-var NP = (e, t, n) => {
+sF.autoRemove = (e) => pF(e) || !(e != null && e.length);
+var cF = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+cF.autoRemove = (e) => pF(e) || !(e != null && e.length);
+var lF = (e, t, n) => e.getValue(t) === n;
+lF.autoRemove = (e) => pF(e);
+var uF = (e, t, n) => e.getValue(t) == n;
+uF.autoRemove = (e) => pF(e);
+var dF = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-NP.resolveFilterValue = (e) => {
+dF.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];
-}, NP.autoRemove = (e) => FP(e) || FP(e[0]) && FP(e[1]);
-var PP = {
- includesString: TP,
- includesStringSensitive: EP,
- equalsString: DP,
- arrIncludes: OP,
- arrIncludesAll: kP,
- arrIncludesSome: AP,
- equals: jP,
- weakEquals: MP,
- inNumberRange: NP
+}, dF.autoRemove = (e) => pF(e) || pF(e[0]) && pF(e[1]);
+var fF = {
+ includesString: rF,
+ includesStringSensitive: iF,
+ equalsString: aF,
+ arrIncludes: oF,
+ arrIncludesAll: sF,
+ arrIncludesSome: cF,
+ equals: lF,
+ weakEquals: uF,
+ inNumberRange: dF
};
-function FP(e) {
+function pF(e) {
return e == null || e === "";
}
-var IP = {
+var mF = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: dP("columnFilters", e),
+ onColumnFiltersChange: UP("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? PP.includesString : typeof n == "number" ? PP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? PP.equals : Array.isArray(n) ? PP.arrIncludes : PP.weakEquals;
- }, e.getFilterFn = () => fP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? PP[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" ? fF.includesString : typeof n == "number" ? fF.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? fF.equals : Array.isArray(n) ? fF.arrIncludes : fF.weakEquals;
+ }, e.getFilterFn = () => WP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? fF[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 = uP(n, i ? i.value : void 0);
- if (LP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = HP(n, i ? i.value : void 0);
+ if (hF(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -38495,19 +38744,19 @@ var IP = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => uP(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => HP(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && LP(t.getFilterFn(), e.value, t));
+ return !(t && hF(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 LP(e, t, n) {
+function hF(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var RP = {
+var gF = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -38543,7 +38792,7 @@ var RP = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!pP(n)) return;
+ if (!GP(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];
@@ -38551,7 +38800,7 @@ var RP = {
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
-}, zP = {
+}, _F = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -38564,7 +38813,7 @@ var RP = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: dP("grouping", e),
+ onGroupingChange: UP("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -38577,11 +38826,11 @@ var RP = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return RP.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return RP.extent;
+ if (typeof n == "number") return gF.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return gF.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return fP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? RP[e.columnDef.aggregationFn];
+ return WP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? gF[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -38603,27 +38852,27 @@ var RP = {
};
}
};
-function BP(e, t, n) {
+function vF(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 VP = {
+var yF = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: dP("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: UP("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = hP((e) => [QP(t, e)], (t) => t.findIndex((t) => t.id === e.id), gP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => QP(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = QP(t, n);
+ e.getIndex = qP((e) => [AF(t, e)], (t) => t.findIndex((t) => t.id === e.id), JP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => AF(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = AF(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 = hP(() => [
+ }, e._getOrderColumnsFn = qP(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -38638,18 +38887,18 @@ var VP = {
}
i = [...i, ...n];
}
- return BP(i, t, n);
- }, gP(e.options, "debugTable", "_getOrderColumnsFn"));
+ return vF(i, t, n);
+ }, JP(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, HP = () => ({
+}, bF = () => ({
left: [],
right: []
-}), UP = {
+}), xF = {
getInitialState: (e) => ({
- columnPinning: HP(),
+ columnPinning: bF(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: dP("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: UP("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -38673,75 +38922,75 @@ var VP = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = hP(() => [
+ e.getCenterVisibleCells = qP(() => [
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));
- }, gP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = hP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, JP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = qP(() => [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"
- })), gP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = hP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), JP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = qP(() => [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"
- })), gP(t.options, "debugRows", "getRightVisibleCells"));
+ })), JP(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 ? HP() : e.initialState?.columnPinning ?? HP()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? bF() : e.initialState?.columnPinning ?? bF()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = hP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), gP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = hP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), gP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = hP(() => [
+ }, e.getLeftLeafColumns = qP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), JP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = qP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), JP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = qP(() => [
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));
- }, gP(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, JP(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function WP(e) {
+function SF(e) {
return e || (typeof document < "u" ? document : null);
}
-var GP = {
+var CF = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, KP = () => ({
+}, wF = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), qP = {
- getDefaultColumnDef: () => GP,
+}), TF = {
+ getDefaultColumnDef: () => CF,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: KP(),
+ columnSizingInfo: wF(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: dP("columnSizing", e),
- onColumnSizingInfoChange: dP("columnSizingInfo", e)
+ onColumnSizingChange: UP("columnSizing", e),
+ onColumnSizingInfoChange: UP("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? GP.minSize, n ?? e.columnDef.size ?? GP.size), e.columnDef.maxSize ?? GP.maxSize);
- }, e.getStart = hP((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? CF.minSize, n ?? e.columnDef.size ?? CF.size), e.columnDef.maxSize ?? CF.maxSize);
+ }, e.getStart = qP((e) => [
e,
- QP(t, e),
+ AF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), gP(t.options, "debugColumns", "getStart")), e.getAfter = hP((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), JP(t.options, "debugColumns", "getStart")), e.getAfter = qP((e) => [
e,
- QP(t, e),
+ AF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), gP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), JP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -38763,8 +39012,8 @@ var GP = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), XP(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 = XP(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), OF(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 = OF(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) => {
@@ -38789,7 +39038,7 @@ var GP = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = WP(n), m = {
+ }, p = SF(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -38799,8 +39048,8 @@ var GP = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = YP() ? { passive: !1 } : !1;
- XP(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 = DF() ? { passive: !1 } : !1;
+ OF(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,
@@ -38816,12 +39065,12 @@ var GP = {
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 ? KP() : e.initialState.columnSizingInfo ?? KP());
+ e.setColumnSizingInfo(t ? wF() : e.initialState.columnSizingInfo ?? wF());
}, 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;
}
-}, JP = null;
-function YP() {
- if (typeof JP == "boolean") return JP;
+}, EF = null;
+function DF() {
+ if (typeof EF == "boolean") return EF;
let e = !1;
try {
let t = { get passive() {
@@ -38831,17 +39080,17 @@ function YP() {
} catch {
e = !1;
}
- return JP = e, JP;
+ return EF = e, EF;
}
-function XP(e) {
+function OF(e) {
return e.type === "touchstart";
}
-var ZP = {
+var kF = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: dP("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: UP("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -38856,7 +39105,7 @@ var ZP = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = hP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), gP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = hP(() => [
+ e._getAllVisibleCells = qP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), JP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = qP(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -38864,10 +39113,10 @@ var ZP = {
...e,
...t,
...n
- ], gP(t.options, "debugRows", "getVisibleCells"));
+ ], JP(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => hP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), gP(e.options, "debugColumns", t));
+ let t = (t, n) => qP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), JP(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) => {
@@ -38880,20 +39129,20 @@ var ZP = {
};
}
};
-function QP(e, t) {
+function AF(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var $P = { createTable: (e) => {
+var jF = { 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();
};
-} }, eF = {
+} }, MF = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: dP("globalFilter", e),
+ onGlobalFilterChange: UP("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -38905,22 +39154,22 @@ var $P = { 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 = () => PP.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => fF.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return fP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? PP[t];
+ return WP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? fF[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, tF = {
+}, NF = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: dP("expanded", e),
+ onExpandedChange: UP("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -38991,18 +39240,18 @@ var $P = { createTable: (e) => {
};
};
}
-}, nF = 0, rF = 10, iF = () => ({
- pageIndex: nF,
- pageSize: rF
-}), aF = {
+}, PF = 0, FF = 10, IF = () => ({
+ pageIndex: PF,
+ pageSize: FF
+}), LF = {
getInitialState: (e) => ({
...e,
pagination: {
- ...iF(),
+ ...IF(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: dP("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: UP("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -39018,11 +39267,11 @@ var $P = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => uP(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? iF() : e.initialState.pagination ?? iF());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => HP(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? IF() : e.initialState.pagination ?? IF());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = uP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = HP(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
@@ -39030,13 +39279,13 @@ var $P = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? nF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? nF);
+ e.setPageIndex(t ? PF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? PF);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? rF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? rF);
+ e.setPageSize(t ? FF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? FF);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, uP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, HP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -39044,28 +39293,28 @@ var $P = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = uP(t, e.options.pageCount ?? -1);
+ let r = HP(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = hP(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = qP(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, gP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, JP(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;
}
-}, oF = () => ({
+}, RF = () => ({
top: [],
bottom: []
-}), sF = {
+}), zF = {
getInitialState: (e) => ({
- rowPinning: oF(),
+ rowPinning: RF(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: dP("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: UP("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -39104,7 +39353,7 @@ var $P = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? oF() : e.initialState?.rowPinning ?? oF()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? RF() : e.initialState?.rowPinning ?? RF()), 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) => {
@@ -39113,22 +39362,22 @@ var $P = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = hP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), gP(e.options, "debugRows", "getTopRows")), e.getBottomRows = hP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), gP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = hP(() => [
+ })), e.getTopRows = qP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), JP(e.options, "debugRows", "getTopRows")), e.getBottomRows = qP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), JP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = qP(() => [
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));
- }, gP(e.options, "debugRows", "getCenterRows"));
+ }, JP(e.options, "debugRows", "getCenterRows"));
}
-}, cF = {
+}, BF = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: dP("rowSelection", e),
+ onRowSelectionChange: UP("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -39147,21 +39396,21 @@ var $P = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- lF(i, t.id, r, !0, e);
+ VF(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = hP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = qP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? HF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, gP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = hP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
+ }, JP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = qP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? HF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, gP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = hP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? uF(e, n) : {
+ }, JP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = qP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? HF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, gP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, JP(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 = () => {
@@ -39185,17 +39434,17 @@ var $P = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return lF(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return VF(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return dF(e, n);
+ return UF(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return fF(e, n) === "some";
+ return WF(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return fF(e, n) === "all";
+ return WF(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) => {
@@ -39203,16 +39452,16 @@ var $P = { createTable: (e) => {
};
};
}
-}, lF = (e, t, n, r, i) => {
+}, VF = (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) => lF(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) => VF(e, t.id, n, r, i));
};
-function uF(e, t) {
+function HF(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = dF(e, n);
+ let o = UF(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -39225,32 +39474,32 @@ function uF(e, t) {
rowsById: i
};
}
-function dF(e, t) {
+function UF(e, t) {
return t[e.id] ?? !1;
}
-function fF(e, t, n) {
+function WF(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() && (dF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = fF(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (UF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = WF(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var pF = /([0-9]+)/gm, mF = (e, t, n) => SF(xF(e.getValue(n)).toLowerCase(), xF(t.getValue(n)).toLowerCase()), hF = (e, t, n) => SF(xF(e.getValue(n)), xF(t.getValue(n))), gF = (e, t, n) => bF(xF(e.getValue(n)).toLowerCase(), xF(t.getValue(n)).toLowerCase()), _F = (e, t, n) => bF(xF(e.getValue(n)), xF(t.getValue(n))), vF = (e, t, n) => {
+var GF = /([0-9]+)/gm, KF = (e, t, n) => eI($F(e.getValue(n)).toLowerCase(), $F(t.getValue(n)).toLowerCase()), qF = (e, t, n) => eI($F(e.getValue(n)), $F(t.getValue(n))), JF = (e, t, n) => QF($F(e.getValue(n)).toLowerCase(), $F(t.getValue(n)).toLowerCase()), YF = (e, t, n) => QF($F(e.getValue(n)), $F(t.getValue(n))), XF = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, yF = (e, t, n) => bF(e.getValue(n), t.getValue(n));
-function bF(e, t) {
+}, ZF = (e, t, n) => QF(e.getValue(n), t.getValue(n));
+function QF(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function xF(e) {
+function $F(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function SF(e, t) {
- let n = e.split(pF).filter(Boolean), r = t.split(pF).filter(Boolean);
+function eI(e, t) {
+ let n = e.split(GF).filter(Boolean), r = t.split(GF).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])) {
@@ -39264,22 +39513,22 @@ function SF(e, t) {
}
return n.length - r.length;
}
-var CF = {
- alphanumeric: mF,
- alphanumericCaseSensitive: hF,
- text: gF,
- textCaseSensitive: _F,
- datetime: vF,
- basic: yF
-}, wF = [
- xP,
- ZP,
- VP,
- UP,
- wP,
- IP,
+var tI = {
+ alphanumeric: KF,
+ alphanumericCaseSensitive: qF,
+ text: JF,
+ textCaseSensitive: YF,
+ datetime: XF,
+ basic: ZF
+}, nI = [
$P,
- eF,
+ kF,
+ yF,
+ xF,
+ nF,
+ mF,
+ jF,
+ MF,
{
getInitialState: (e) => ({
sorting: [],
@@ -39290,7 +39539,7 @@ var CF = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: dP("sorting", e),
+ onSortingChange: UP("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -39298,13 +39547,13 @@ var CF = {
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 CF.datetime;
- if (typeof n == "string" && (r = !0, n.split(pF).length > 1)) return CF.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return tI.datetime;
+ if (typeof n == "string" && (r = !0, n.split(GF).length > 1)) return tI.alphanumeric;
}
- return r ? CF.text : CF.basic;
+ return r ? tI.text : tI.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return fP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? CF[e.columnDef.sortingFn];
+ return WP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? tI[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -39341,15 +39590,15 @@ var CF = {
}, 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());
}
},
- zP,
- tF,
- aF,
- sF,
- cF,
- qP
+ _F,
+ NF,
+ LF,
+ zF,
+ BF,
+ TF
];
-function TF(e) {
- let t = [...wF, ...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 rI(e) {
+ let t = [...nI, ...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 ?? {} };
@@ -39375,7 +39624,7 @@ function TF(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = uP(e, n.options);
+ let t = HP(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -39390,7 +39639,7 @@ function TF(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: hP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: qP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -39401,20 +39650,20 @@ function TF(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), gP(e, "debugColumns", "_getDefaultColumnDef")),
+ }), JP(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: hP(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: qP(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = vP(n, e, i, r), o = e;
+ let a = XP(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, gP(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: hP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), gP(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: hP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), gP(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: hP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), gP(e, "debugColumns", "getAllLeafColumns")),
+ }, JP(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: qP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), JP(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: qP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), JP(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: qP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), JP(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -39424,8 +39673,8 @@ function TF(e) {
}
return n;
}
-function EF() {
- return (e) => hP(() => [e.options.data], (t) => {
+function iI() {
+ return (e) => qP(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -39434,7 +39683,7 @@ function EF() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = CP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = tF(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));
@@ -39443,9 +39692,9 @@ function EF() {
return o;
};
return n.rows = r(t), n;
- }, gP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, JP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function DF(e) {
+function aI(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -39456,8 +39705,8 @@ function DF(e) {
rowsById: e.rowsById
};
}
-function OF(e) {
- return (e) => hP(() => [
+function oI(e) {
+ return (e) => qP(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -39470,7 +39719,7 @@ function OF(e) {
rows: a,
flatRows: o,
rowsById: s
- } : DF({
+ } : aI({
rows: a,
flatRows: o,
rowsById: s
@@ -39479,32 +39728,32 @@ function OF(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, gP(e.options, "debugTable", "getPaginationRowModel"));
+ }, JP(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function kF(e, t) {
- return e ? AF(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
+function sI(e, t) {
+ return e ? cI(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
}
-function AF(e) {
- return jF(e) || typeof e == "function" || MF(e);
+function cI(e) {
+ return lI(e) || typeof e == "function" || uI(e);
}
-function jF(e) {
+function lI(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function MF(e) {
+function uI(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function NF(e) {
+function dI(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = I.useState(() => ({ current: TF(t) })), [r, i] = I.useState(() => n.current.initialState);
+ }, [n] = I.useState(() => ({ current: rI(t) })), [r, i] = I.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -39518,11 +39767,8 @@ function NF(e) {
})), n.current;
}
//#endregion
-//#region src/react/components/legacy-avatar.ts
-var PF = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";
-//#endregion
//#region src/react/components/selection-dock.tsx
-function FF({ children: e, count: t, label: n }) {
+function fI({ children: e, count: t, label: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": n,
@@ -39537,8 +39783,8 @@ function FF({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var IF = "输入女优名,到 JavDB 找她的演员页";
-function LF(e, t) {
+var pI = "输入女优名,到 JavDB 找她的演员页";
+function mI(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 {
@@ -39557,10 +39803,10 @@ function LF(e, t) {
blocked: !1
};
}
-function RF({ card: e, picked: t, onPick: n }) {
+function hI({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -39570,7 +39816,7 @@ function RF({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+ e.record ? /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "neutral",
children: e.record
@@ -39581,16 +39827,16 @@ function RF({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(tj, {
href: e.url,
children: e.id
})]
});
}
-function zF({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = qw(), u = () => {
+function gI({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, I.useState)(""), [a, o] = (0, I.useState)(null), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set()), l = Kw(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => sce(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => $N(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -39598,12 +39844,12 @@ function zF({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => cce(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => eP(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? LF(a, s) : null;
+ }, m = a ? mI(a, s) : null;
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39616,11 +39862,11 @@ function zF({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "女优名",
- placeholder: IF,
+ placeholder: pI,
value: r,
- leadingIcon: FS,
+ leadingIcon: PS,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -39641,16 +39887,16 @@ function zF({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(RF, {
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(hI, {
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, L.jsx)(tj, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(tj, {
+ }, e.id)) : /* @__PURE__ */ (0, L.jsx)(QA, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(QA, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -39677,7 +39923,7 @@ function zF({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var BF = {
+var _I = {
select: "选择",
name: "名称",
kind: "类型",
@@ -39687,75 +39933,71 @@ var BF = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, VF = /* @__PURE__ */ new Set(["select", "actions"]), HF = () => X.invalidateQueries({
- queryKey: iN,
+}, vI = /* @__PURE__ */ new Set(["select", "actions"]), yI = () => X.invalidateQueries({
+ queryKey: yN,
exact: !0
-}), UF = (e) => e.name || e.url, WF = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function GF(e) {
+}), bI = (e) => e.name || e.url, xI = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function SI(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function KF({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+function CI({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+ }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, L.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function qF({ source: e, avatarInner: t }) {
- let n = e.entity_id ? {
- id: e.entity_id,
- has_image: !!e.has_image,
- avatar_focus: e.avatar_focus
- } : null;
- return /* @__PURE__ */ (0, L.jsx)("span", {
+function wI({ source: e }) {
+ return e.has_image && e.entity_id ? /* @__PURE__ */ (0, L.jsx)("img", {
+ src: `/entity-image?kind=performer&id=${e.entity_id}&thumb=1`,
+ alt: "",
+ width: 32,
+ height: 32,
+ loading: "lazy",
+ className: "size-8 shrink-0 rounded-full bg-background-tertiary-default object-cover"
+ }) : /* @__PURE__ */ (0, L.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 ${PF}`,
- dangerouslySetInnerHTML: { __html: t(UF(e), n, null, "performer") }
+ className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
+ children: bI(e).slice(0, 1)
});
}
-var JF = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function YF(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 XF(e, t) {
+function TI(e, t) {
let n = e.length === 1 ? e[0] : null;
return h({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${UF(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${bI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function ZF({ readOnly: e, toast: t, avatarInner: n }) {
- let r = kt({
- queryKey: iN,
- queryFn: ({ signal: e }) => wN(e)
- }), i = qw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());
+function EI({ readOnly: e, toast: t }) {
+ let n = kt({
+ queryKey: yN,
+ queryFn: ({ signal: e }) => YN(e)
+ }), r = Kw(), i = n.data, a = (0, I.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, I.useState)(/* @__PURE__ */ new Set());
(0, I.useEffect)(() => {
- c((e) => {
- let t = new Set(o.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));
+ s((e) => {
+ let t = new Set(a.map((e) => e.id)), n = new Set([...e].filter((e) => t.has(e)));
return n.size === e.size ? e : n;
});
- }, [o]);
- let u = At({
+ }, [a]);
+ let c = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await EN(t) : await TN(t, e.action === "enabled");
+ e.action === "remove" ? await ZN(t) : await XN(t, e.action === "enabled");
});
return {
...e,
@@ -39763,67 +40005,49 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
};
},
onSuccess: (e) => {
- let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;
- if (c(/* @__PURE__ */ new Set()), HF(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
+ if (s(/* @__PURE__ */ new Set()), yI(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
- i.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);
+ r.setError(`${n.length} 条没有写入:${e.ok ? "" : K(e.error)}`);
}
},
- onError: (e) => i.setError(K(e))
- }), d = (0, I.useMemo)(() => YF(o), [o]), f = (0, I.useRef)({
+ onError: (e) => r.setError(K(e))
+ }), u = (0, I.useRef)({
readOnly: e,
- avatarInner: n,
- shared: d,
busy: null,
toggle: () => {},
fetch: () => {},
remove: () => {}
});
- f.current = {
+ u.current = {
readOnly: e,
- avatarInner: n,
- shared: d,
- busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => TN(e.id, t, n), () => void HF()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => DN(t, [e.id]), () => void HF()),
- remove: (e) => void XF([e], async () => {
- await EN(e.id), t(`已移除订阅源「${UF(e)}」`), HF();
+ busy: r.busy,
+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => XN(e.id, t, n), () => void yI()),
+ fetch: (e) => void r.run(`check-${e.id}`, (t) => QN(t, [e.id]), () => void yI()),
+ remove: (e) => void TI([e], async () => {
+ await ZN(e.id), t(`已移除订阅源「${bI(e)}」`), yI();
})
};
- let p = (0, I.useMemo)(() => {
- let e = lP(), t = (e) => () => BF[e] || e;
+ let d = (0, I.useMemo)(() => {
+ let e = VP(), t = (e) => () => _I[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Fj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Mj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${UF(e.row.original)}`
+ "aria-label": `选择 ${bI(e.row.original)}`
})
}),
- e.accessor(UF, {
+ e.accessor(bI, {
id: "name",
header: t("name"),
- cell: (e) => {
- let t = JF(e.row.original, f.current.shared);
- return /* @__PURE__ */ (0, L.jsxs)("span", {
- className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
- children: [
- /* @__PURE__ */ (0, L.jsx)(qF, {
- source: e.row.original,
- avatarInner: f.current.avatarInner
- }),
- e.getValue(),
- t ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: "text-body-2-regular text-text-secondary",
- title: `站上这一页挂在「${t}」名下`,
- children: t
- }) : null
- ]
- });
- }
+ cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
+ children: [/* @__PURE__ */ (0, L.jsx)(wI, { source: e.row.original }), e.getValue()]
+ })
}),
e.accessor((e) => e.kind_label, {
id: "kind",
@@ -39842,15 +40066,15 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: GF(e.getValue())
+ children: SI(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(KF, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(CI, { source: e.row.original })
}),
- e.accessor((e) => WF(e.interval_minutes), {
+ e.accessor((e) => xI(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -39858,7 +40082,7 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? xk(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? vk(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -39880,95 +40104,95 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(yO, {
- "aria-label": `启用 ${UF(e.row.original)}`,
+ /* @__PURE__ */ (0, L.jsx)(hO, {
+ "aria-label": `启用 ${bI(e.row.original)}`,
isSelected: e.row.original.enabled,
- isDisabled: f.current.readOnly,
- onChange: (t) => f.current.toggle(e.row.original, t)
+ isDisabled: u.current.readOnly,
+ onChange: (t) => u.current.toggle(e.row.original, t)
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: NS,
- "aria-label": `拉取 ${UF(e.row.original)}`,
- disabled: f.current.readOnly,
- ...Y(f.current.busy === `check-${e.row.original.id}`),
- onClick: () => f.current.fetch(e.row.original)
+ leadingIcon: MS,
+ "aria-label": `拉取 ${bI(e.row.original)}`,
+ disabled: u.current.readOnly,
+ ...Y(u.current.busy === `check-${e.row.original.id}`),
+ onClick: () => u.current.fetch(e.row.original)
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: SS,
- "aria-label": `移除 ${UF(e.row.original)}`,
- disabled: f.current.readOnly,
- onClick: () => f.current.remove(e.row.original)
+ leadingIcon: bS,
+ "aria-label": `移除 ${bI(e.row.original)}`,
+ disabled: u.current.readOnly,
+ onClick: () => u.current.remove(e.row.original)
})
]
})
})
];
- }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = NF({
- data: o,
- columns: p,
+ }, []), f = (0, I.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), p = dI({
+ data: a,
+ columns: d,
getRowId: (e) => String(e.id),
- state: { rowSelection: m },
+ state: { rowSelection: f },
enableRowSelection: !0,
onRowSelectionChange: (e) => {
- let t = typeof e == "function" ? e(m) : e;
- c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
+ let t = typeof e == "function" ? e(f) : e;
+ s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: EF()
+ getCoreRowModel: iI()
});
- if (!a) return r.error ? /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!i) return n.error ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开订阅源",
- children: K(r.error)
- }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: "正在读订阅源。" });
- let g = () => void i.run("check", (e) => DN(e), () => void HF()), _ = (e) => c((t) => {
+ children: K(n.error)
+ }) : /* @__PURE__ */ (0, L.jsx)(QA, { children: "正在读订阅源。" });
+ let m = () => void r.run("check", (e) => QN(e), () => void yI()), h = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
- }), v = o.filter((e) => s.has(e.id)), y = o.filter((e) => e.last_error);
+ }), g = a.filter((e) => o.has(e.id)), _ = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(zF, {
+ /* @__PURE__ */ (0, L.jsx)(gI, {
readOnly: e,
toast: t,
- onAdded: () => void HF()
+ onAdded: () => void yI()
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsx)(tj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(QA, {
role: "status",
- children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
+ children: i.unread ? `有 ${i.unread} 条新作还没看` : "新作都看过了"
}), /* @__PURE__ */ (0, L.jsx)(G, {
- onClick: g,
+ onClick: m,
disabled: e,
- ...Y(i.busy === "check"),
+ ...Y(r.busy === "check"),
children: "立即拉取"
})]
}),
- y.length || i.error ? /* @__PURE__ */ (0, L.jsxs)("div", {
+ _.length || r.error ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
+ children: [_.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: `${UF(e)} 拉取失败`,
+ title: `${bI(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: r.error }) : null]
}) : null,
- v.length ? /* @__PURE__ */ (0, L.jsxs)(FF, {
+ g.length ? /* @__PURE__ */ (0, L.jsxs)(fI, {
label: "订阅源批量操作",
- count: `已选 ${v.length} 条订阅源`,
+ count: `已选 ${g.length} 条订阅源`,
children: [
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
disabled: e,
- ...Y(u.isPending),
- onClick: () => u.mutate({
- ids: v.map((e) => e.id),
+ ...Y(c.isPending),
+ onClick: () => c.mutate({
+ ids: g.map((e) => e.id),
action: "enabled"
}),
children: "启用"
@@ -39977,9 +40201,9 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "small",
disabled: e,
- ...Y(u.isPending),
- onClick: () => u.mutate({
- ids: v.map((e) => e.id),
+ ...Y(c.isPending),
+ onClick: () => c.mutate({
+ ids: g.map((e) => e.id),
action: "paused"
}),
children: "暂停"
@@ -39988,9 +40212,9 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
variant: "danger",
size: "small",
disabled: e,
- ...Y(u.isPending),
- onClick: () => void XF(v, () => u.mutateAsync({
- ids: v.map((e) => e.id),
+ ...Y(c.isPending),
+ onClick: () => void TI(g, () => c.mutateAsync({
+ ids: g.map((e) => e.id),
action: "remove"
})),
children: "移除"
@@ -39998,31 +40222,31 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
size: "small",
- onClick: () => c(/* @__PURE__ */ new Set()),
+ onClick: () => s(/* @__PURE__ */ new Set()),
children: "取消选择"
})
]
}) : null,
- o.length ? /* @__PURE__ */ (0, L.jsx)(zj, {
- onRowClick: (e) => _(Number(e)),
- children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
- "aria-label": "JAV 订阅源",
+ a.length ? /* @__PURE__ */ (0, L.jsx)(Ij, {
+ onRowClick: (e) => h(Number(e)),
+ children: /* @__PURE__ */ (0, L.jsxs)(Nj, {
+ "aria-label": "订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsx)(tO, { children: h.getHeaderGroups()[0].headers.map((e) => {
- let t = kF(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZD, { children: p.getHeaderGroups()[0].headers.map((e) => {
+ let t = sI(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, L.jsx)(QD, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: VF.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(K_, { children: t }) : t
+ children: vI.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(G_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(iO, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(sO, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(eO, { children: p.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(rO, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(lO, { children: kF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(aO, { children: sI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: PS,
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: NS,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -40032,19 +40256,19 @@ function ZF({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var QF = Object.fromEntries(Object.entries(sN).map(([e, t]) => [t, e])), $F = 740;
-function eI() {
+var DI = Object.fromEntries(Object.entries(SN).map(([e, t]) => [t, e])), OI = 740;
+function kI() {
let [e, t] = (0, I.useState)(!1), n = (0, I.useRef)(null), r = (0, I.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < $F));
- r.observe(e), n.current = r, t(e.clientWidth < $F);
+ let r = new ResizeObserver(() => t(e.clientWidth < OI));
+ r.observe(e), n.current = r, t(e.clientWidth < OI);
}, []);
return (0, I.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var tI = {
+var AI = {
select: "选择",
author: "创作者",
source: "来源",
@@ -40053,7 +40277,7 @@ var tI = {
checked: "上次检查",
actions: "操作"
};
-function nI({ page: e, pages: t, onPage: n }) {
+function jI({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
@@ -40067,7 +40291,7 @@ function nI({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: _k(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: mk(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -40090,22 +40314,22 @@ function nI({ page: e, pages: t, onPage: n }) {
]
});
}
-function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
+function MI({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- Rj(e, e.currentTarget) && n(!t);
+ Fj(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, L.jsx)(Fj, {
+ /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, L.jsx)(RN, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ children: [/* @__PURE__ */ (0, L.jsx)(gP, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -40113,17 +40337,17 @@ function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, L.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, L.jsx)(FN, {
+ children: /* @__PURE__ */ (0, L.jsx)(pP, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, L.jsx)(LN, { source: e }),
+ /* @__PURE__ */ (0, L.jsx)(hP, { source: e }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: jN(e)
+ children: cP(e)
}),
- /* @__PURE__ */ (0, L.jsx)(yO, {
+ /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -40135,7 +40359,7 @@ function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: NS,
+ leadingIcon: MS,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Y(r.busy),
@@ -40144,7 +40368,7 @@ function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: SS,
+ leadingIcon: bS,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -40153,11 +40377,11 @@ function rI({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(lN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = gN(r, c);
+function NI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(wN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = MN(r, c);
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: zw({
+ className: Rw({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -40167,7 +40391,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(IN, {
+ /* @__PURE__ */ (0, L.jsx)(mP, {
group: e,
name: t
}),
@@ -40179,7 +40403,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: NS,
+ leadingIcon: MS,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Y(i.busy),
@@ -40188,7 +40412,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(FN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(K_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(pP, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(G_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -40197,7 +40421,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: vS,
+ leadingIcon: gS,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -40208,7 +40432,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? _S : mS,
+ leadingIcon: n ? hS : fS,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -40218,7 +40442,7 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(rI, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(MI, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -40227,37 +40451,37 @@ function iI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function aI(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = eI(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => Jse(v, n, r, y), [
+function PI(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: u, onPage: d, onLayout: f, onPageSize: p, onSelected: m, toast: g, openFollow: _ } = e, v = t.sources, y = (0, I.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, I.useState)(/* @__PURE__ */ new Set()), [C, w] = kI(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => pce(v, n, r, y), [
v,
n,
r,
y
- ]), O = (0, I.useMemo)(() => Yse(D, n, r, y), [
+ ]), O = (0, I.useMemo)(() => mce(D, n, r, y), [
D,
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = kj({
- queryKey: Lse,
- queryFn: ({ signal: e }) => Qse(e),
- start: (e) => bN(e),
+ ]), { job: k, running: A, outcome: j, start: M } = Ej({
+ queryKey: nce,
+ queryFn: ({ signal: e }) => IN(e),
+ start: (e) => zN(e),
onError: (e) => E(K(e)),
onFinish: (e) => {
- AN(), g(e.status === "failed" ? e.error || "检查失败" : uce(e));
+ iP(), g(e.status === "failed" ? e.error || "检查失败" : aP(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, ee = (e, t) => m(_N(s, [e], t)), te = (e, t) => m(_N(s, e, t)), P = At({
- mutationFn: (e) => SN(e),
+ }, ee = (e, t) => m(NN(s, [e], t)), te = (e, t) => m(NN(s, e, t)), P = At({
+ mutationFn: (e) => HN(e),
onSuccess: (e, t) => {
- kN([t]), m(_N(s, [t], !1)), g("已取消关注来源");
+ rP([t]), m(NN(s, [t], !1)), g("已取消关注来源");
},
onError: (e) => E(K(e))
}), F = At({
- mutationFn: (e) => xN(e.id, e.enabled),
+ mutationFn: (e) => VN(e.id, e.enabled),
onSuccess: (e, t) => {
- ON(t.id, { enabled: t.enabled }), E("");
+ nP(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(K(e))
}), ne = (e) => void h({
@@ -40269,7 +40493,7 @@ function aI(e) {
}), re = At({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await SN(t) : await xN(t, e.action === "enabled");
+ e.action === "remove" ? await HN(t) : await VN(t, e.action === "enabled");
});
return {
...e,
@@ -40278,9 +40502,9 @@ function aI(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") kN(e.done);
- else for (let t of e.done) ON(t, { enabled: e.action === "enabled" });
- m(_N(s, e.done, !1));
+ if (e.action === "remove") rP(e.done);
+ else for (let t of e.done) nP(t, { enabled: e.action === "enabled" });
+ m(NN(s, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -40293,18 +40517,18 @@ function aI(e) {
onError: (e) => E(K(e))
}), ie = At({
mutationFn: async (e) => {
- let t = ((await oce()).groups || []).flatMap((e) => [
+ let t = ((await JN()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await l(t, 6, (t) => ace(t, e))).filter((e) => !e.ok)
+ failed: (await l(t, 6, (t) => qN(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (AN(), e.failed.length) {
+ if (iP(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -40329,12 +40553,12 @@ function aI(e) {
readOnly: c
};
let se = oe.current, ce = (0, I.useMemo)(() => {
- let e = lP(), t = (e) => () => tI[e] || e;
+ let e = VP(), t = (e) => () => AI[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Fj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Mj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -40346,7 +40570,7 @@ function aI(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(IN, {
+ children: [/* @__PURE__ */ (0, L.jsx)(mP, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, L.jsx)("span", {
@@ -40360,7 +40584,7 @@ function aI(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, L.jsx)(RN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ children: [/* @__PURE__ */ (0, L.jsx)(gP, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -40371,18 +40595,18 @@ function aI(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(FN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, L.jsx)(pP, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(LN, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(hP, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => jN(e.row.original.source)
+ cell: (e) => cP(e.row.original.source)
}),
e.display({
id: "actions",
@@ -40390,7 +40614,7 @@ function aI(e) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(yO, {
+ /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: se.readOnly,
@@ -40400,7 +40624,7 @@ function aI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: NS,
+ leadingIcon: MS,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || se.readOnly,
...Y(se.busy),
@@ -40410,7 +40634,7 @@ function aI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: SS,
+ leadingIcon: bS,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: se.readOnly,
onClick: () => oe.current.remove(e.row.original.source)
@@ -40420,12 +40644,12 @@ function aI(e) {
})
];
}, [se]), le = (0, I.useMemo)(() => {
- let e = QF[n];
+ let e = DI[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = Xse(R ? O.length : D.length, o, i), de = NF({
+ }, [n, r]), ue = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), R = a === "table", z = hce(R ? O.length : D.length, o, i), de = dI({
data: O,
columns: ce,
getRowId: (e) => String(e.source.id),
@@ -40442,7 +40666,7 @@ function aI(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = sN[t.id];
+ let n = SN[t.id];
n && u(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -40456,11 +40680,11 @@ function aI(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: EF(),
- getPaginationRowModel: OF()
- }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = gN(s, pe), he = [...s], ge = dce(j), _e = fce(j), ve = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: iI(),
+ getPaginationRowModel: oI()
+ }), fe = de.getRowModel().rows, pe = R ? fe.map((e) => e.original.source.id) : D.slice(z.start, z.end).flatMap((e) => e.map((e) => e.id)), me = MN(s, pe), he = [...s], ge = oP(j), _e = sP(j), ve = D.length > 0 && x.size >= D.length;
return v.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -40479,7 +40703,7 @@ function aI(e) {
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "primary",
- leadingIcon: NS,
+ leadingIcon: MS,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
@@ -40494,28 +40718,28 @@ function aI(e) {
children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: AS,
- "aria-label": aN[0][1],
+ leadingIcon: kS,
+ "aria-label": bN[0][1],
"aria-pressed": !R,
onClick: () => f("default")
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: IS,
- "aria-label": aN[1][1],
+ leadingIcon: FS,
+ "aria-label": bN[1][1],
"aria-pressed": R,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, L.jsx)(wj, {
+ /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- u(t, JM[t]);
+ u(t, lN[t]);
},
- children: qM.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: cN.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
@@ -40523,14 +40747,14 @@ function aI(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Wte : Ute,
- "aria-label": Wse(n, r),
+ leadingIcon: r === "asc" ? Kte : Gte,
+ "aria-label": lce(n, r),
onClick: () => u(n, r === "asc" ? "desc" : "asc")
}),
R ? null : /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ve ? mS : _S,
+ leadingIcon: ve ? fS : hS,
"aria-label": ve ? "全部展开" : "全部收起",
onClick: () => S(ve ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: ve ? "全部展开" : "全部收起"
@@ -40541,11 +40765,11 @@ function aI(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Kw, {
+ A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Gw, {
label: k.message || `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: k?.message || "正在准备检查任务" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: k?.message || "正在准备检查任务" }) : null,
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "操作未完成",
@@ -40566,7 +40790,7 @@ function aI(e) {
}) : null
]
}),
- he.length ? /* @__PURE__ */ (0, L.jsxs)(FF, {
+ he.length ? /* @__PURE__ */ (0, L.jsxs)(fI, {
label: "关注来源批量操作",
count: `已选 ${he.length} 个来源`,
children: [
@@ -40625,10 +40849,10 @@ function aI(e) {
})
]
}) : null,
- R ? /* @__PURE__ */ (0, L.jsx)(zj, {
+ R ? /* @__PURE__ */ (0, L.jsx)(Ij, {
follow: !0,
onRowClick: (e) => ee(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, L.jsxs)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Nj, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: le[0] ? {
@@ -40639,9 +40863,9 @@ function aI(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, L.jsx)(tO, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in sN, n = kF(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(nO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZD, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in SN, n = sI(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, L.jsx)(QD, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -40650,20 +40874,20 @@ function aI(e) {
children: [n, /* @__PURE__ */ (0, L.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(bj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(_j, {})
})]
- }) : /* @__PURE__ */ (0, L.jsx)(K_, { children: n })
+ }) : /* @__PURE__ */ (0, L.jsx)(G_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(iO, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(eO, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(sO, {
+ children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(rO, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(lO, { children: kF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, L.jsx)(aO, { children: sI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Fj, {
+ }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => te(pe, e),
@@ -40673,9 +40897,9 @@ function aI(e) {
className: "flex flex-col gap-3",
children: D.slice(z.start, z.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, L.jsx)(iI, {
+ return /* @__PURE__ */ (0, L.jsx)(NI, {
group: e,
- name: mN(e, y),
+ name: kN(e, y),
handlers: se,
selected: s,
open: !x.has(t),
@@ -40695,19 +40919,19 @@ function aI(e) {
className: "text-body-2-regular text-text-secondary",
children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, L.jsx)(wj, {
+ /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: oN.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: xN.map((e) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: String(e),
children: `每页 ${e} ${R ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(nI, {
+ /* @__PURE__ */ (0, L.jsx)(jI, {
page: z.page,
pages: z.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -40756,11 +40980,11 @@ function aI(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: PS,
+ icon: NS,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -40771,15 +40995,15 @@ function aI(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var oI = [
+var FI = [
["list", "关注列表"],
["add", "添加关注"],
- ["feeds", "JAV 订阅源"],
+ ["feeds", "订阅源"],
["source", "来源和凭证"]
-], sI = (e) => oI.some(([t]) => t === e);
-function cI({ term: e, figure: t, unit: n }) {
+], II = (e) => FI.some(([t]) => t === e);
+function LI({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -40795,36 +41019,33 @@ function cI({ term: e, figure: t, unit: n }) {
})]
});
}
-function lI(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(sI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => YM(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => YM(e.sort, e.dir).dir), [g, _] = (0, I.useState)(Vse(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(Hse(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
- queryKey: nN,
- queryFn: ({ signal: e }) => vN(e)
+function RI(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(II(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => uN(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => uN(e.sort, e.dir).dir), [g, _] = (0, I.useState)(oce(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(sce(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = kt({
+ queryKey: _N,
+ queryFn: ({ signal: e }) => PN(e)
}), C = kt({
- queryKey: rN,
- queryFn: ({ signal: e }) => yN(e)
- }), w = kt({
- queryKey: iN,
- queryFn: ({ signal: e }) => wN(e)
- }), T = S.data || { sources: [] }, E = C.data || {
+ queryKey: vN,
+ queryFn: ({ signal: e }) => FN(e)
+ }), w = S.data || { sources: [] }, T = C.data || {
root: "",
providers: []
- }, D = T.sources;
+ }, E = w.sources;
(0, I.useEffect)(() => {
x((e) => {
- let t = Zse(e, D);
+ let t = jN(e, E);
return t.size === e.size ? e : t;
});
- }, [D]);
- let O = (e) => {
+ }, [E]);
+ let D = (e) => {
let n = e.sort ?? f, r = e.dir ?? m;
t({
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === JM[n] ? "" : r
+ dir: r === lN[n] ? "" : r
});
- }, k = hN(D), A = D.filter(lN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !PN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ }, O = AN(E), k = E.filter(wN).length, A = E.filter((e) => e.enabled).length, j = (T.providers || []).filter((e) => e.requirement === "required" && !fP(e)).length;
+ return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
a ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
@@ -40839,63 +41060,53 @@ function lI(e) {
children: o
}) : null,
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Xae,
+ className: AA,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, L.jsx)(cI, {
+ /* @__PURE__ */ (0, L.jsx)(LI, {
term: "关注创作者",
- figure: k.length,
+ figure: O.length,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(cI, {
+ /* @__PURE__ */ (0, L.jsx)(LI, {
term: "启用来源",
- figure: j,
- unit: `/ ${D.length}`
+ figure: A,
+ unit: `/ ${E.length}`
}),
- /* @__PURE__ */ (0, L.jsx)(cI, {
+ /* @__PURE__ */ (0, L.jsx)(LI, {
term: "检查失败",
- figure: A,
+ figure: k,
unit: "个来源"
}),
- /* @__PURE__ */ (0, L.jsx)(cI, {
+ /* @__PURE__ */ (0, L.jsx)(LI, {
term: "未看更新",
- figure: T.counts?.new || 0,
- unit: "条"
- }),
- /* @__PURE__ */ (0, L.jsx)(cI, {
- term: "JAV 订阅",
- figure: N,
- unit: "位"
- }),
- /* @__PURE__ */ (0, L.jsx)(cI, {
- term: "未看新作",
- figure: w.data?.unread || 0,
+ figure: w.counts?.new || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(lO, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- sI(t) && (l(t), O({ tab: t }));
+ II(t) && (l(t), D({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, L.jsx)(mO, {
+ /* @__PURE__ */ (0, L.jsx)(uO, {
"aria-label": "关注管理区域",
- className: CM,
- children: oI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(hO, {
+ className: RM,
+ children: FI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(dO, {
id: e,
- className: wM,
- children: e === "source" && M ? `${t}(${M})` : t
+ className: zM,
+ children: e === "source" && j ? `${t}(${j})` : t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(aI, {
- data: T,
+ children: /* @__PURE__ */ (0, L.jsx)(PI, {
+ data: w,
sort: f,
dir: m,
page: u,
@@ -40906,57 +41117,56 @@ function lI(e) {
toast: r,
openFollow: i,
onSort: (e, t) => {
- p(e), h(t), d(1), O({
+ p(e), h(t), d(1), D({
sort: e,
dir: t,
page: 1
});
},
onPage: (e) => {
- d(e), O({ page: e });
+ d(e), D({ page: e });
},
onSelected: x,
onLayout: (e) => {
- _(e), d(1), n({ layout: e }), O({ page: 1 });
+ _(e), d(1), n({ layout: e }), D({ page: 1 });
},
onPageSize: (e) => {
- y(e), d(1), n({ pageSize: e }), O({ page: 1 });
+ y(e), d(1), n({ pageSize: e }), D({ page: 1 });
}
})
}),
- /* @__PURE__ */ (0, L.jsxs)(gO, {
+ /* @__PURE__ */ (0, L.jsxs)(fO, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, L.jsx)(JN, {
- data: T,
- credentials: E,
+ children: [/* @__PURE__ */ (0, L.jsx)(EP, {
+ data: w,
+ credentials: T,
readOnly: a,
toast: r,
openCredentials: () => {
- l("source"), O({ tab: "source" });
+ l("source"), D({ tab: "source" });
}
- }), /* @__PURE__ */ (0, L.jsx)($N, {
- groups: T.author_aliases || [],
+ }), /* @__PURE__ */ (0, L.jsx)(jP, {
+ groups: w.author_aliases || [],
readOnly: a,
toast: r,
- suggestions: T.alias_suggestions || [],
- sources: T.sources
+ suggestions: w.alias_suggestions || [],
+ sources: w.sources
})]
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(ZF, {
+ children: /* @__PURE__ */ (0, L.jsx)(EI, {
readOnly: a,
- toast: r,
- avatarInner: e.avatarInner
+ toast: r
})
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(cP, {
- data: E,
+ children: /* @__PURE__ */ (0, L.jsx)(BP, {
+ data: T,
readOnly: a,
toast: r
})
@@ -40966,171 +41176,16 @@ function lI(e) {
] });
}
//#endregion
-//#region src/react/follow/online-vocab.ts
-var uI = "/api/follow/authors", dI = "/api/follow/tags", fI = (e) => [
- "follow",
- "authors",
- e
-], pI = (e, t) => [
- "follow",
- "tags",
- e,
- t
-];
-function mI(e, t, n) {
- let r = new URLSearchParams({
- limit: String(t),
- offset: String(n)
- });
- return e && r.set("q", e), `${uI}?${r}`;
-}
-function hI(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), `${dI}?${i}`;
-}
-var gI = (e, t, n, r) => jw(mI(e, t, n), r), _I = (e, t, n, r, i) => jw(hI(e, t, n, r), i), vI = "/api/index", yI = {
- performers: "艺人",
- creators: "创作者",
- studios: "厂牌",
- agencies: "事务所",
- tags: "标签"
-}, bI = {
- performers: "performer",
- creators: "creator",
- studios: "studio",
- agencies: "agency"
-}, xI = [
- ["all", "全部"],
- ["meta", "影片属性"],
- ["relationship", "人物关系"],
- ["role", "角色设定"],
- ["appearance", "外貌身材"],
- ["scene", "情境场所"],
- ["story", "故事剧情"],
- ["position", "性交体位"],
- ["general", "其他内容"]
-], SI = [
- ["all", "全部"],
- ["general", "通用"],
- ["artist", "创作者"],
- ["character", "角色"],
- ["copyright", "作品"],
- ["metadata", "元数据"]
-], CI = {
- people: 120,
- tags: 180
-}, wI = (e) => e !== "tags", TI = (e) => e === "studios" || e === "agencies";
-function EI(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? SI : xI).some(([t]) => t === e.category);
- return {
- ...e,
- scope: t,
- category: e.kind === "tags" && n ? e.category : "all"
- };
-}
-function DI(e) {
- let { kind: t, q: n, scope: r, category: i } = e;
- return t === "tags" ? r === "online" ? {
- what: "online-tags",
- q: n,
- category: i
- } : {
- what: "tags",
- q: n,
- category: i
- } : t === "performers" && r === "online" ? {
- what: "online-authors",
- q: n
- } : {
- what: "people",
- kind: t,
- q: n
- };
-}
-var OI = (e, t, n = "all") => [
- "index",
- e,
- t,
- ...e === "tags" ? [n] : []
-];
-function kI(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), `${vI}?${a}`;
-}
-function AI(e) {
- let t = e.what === "people" || e.what === "online-authors" ? CI.people : CI.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: OI(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => jw(kI(e.kind, e.q, "all", t, n), r)
- };
- case "tags": return {
- ...n,
- queryKey: OI("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => jw(kI("tags", e.q, e.category, t, n), r)
- };
- case "online-authors": return {
- ...n,
- queryKey: fI(e.q),
- queryFn: ({ pageParam: n, signal: r }) => gI(e.q, t, n, r)
- };
- case "online-tags": return {
- ...n,
- queryKey: pI(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => _I(e.q, e.category, t, n, r)
- };
- }
-}
-async function jI(e, t) {
- let n = AI(DI(EI(e)));
- X.removeQueries({
- queryKey: n.queryKey,
- exact: !0
- }), await X.fetchInfiniteQuery({
- queryKey: n.queryKey,
- queryFn: ({ pageParam: e }) => n.queryFn({
- pageParam: e,
- signal: t
- }),
- initialPageParam: 0,
- getNextPageParam: n.getNextPageParam
- });
-}
-var MI = (e) => e ? e.pages.flatMap((e) => e.items) : [], NI = (e, t) => `${e}${t ? "+" : ""} 项`, PI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", FI = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), II = {
- numeric: !0,
- sensitivity: "base"
-};
-function LI(e, t) {
- let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", II))) {
- 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]);
- }
- return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
-}
-//#endregion
//#region src/react/components/board-tabs.tsx
-function RI({ value: e }) {
+function zI({ value: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var zI = "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 BI({ tabs: e, value: t, label: n, onChange: r }) {
+var BI = "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 VI({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
let e = i.current;
@@ -41158,14 +41213,14 @@ function BI({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? kT(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? wT(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: zI,
+ className: BI,
onClick: () => {
i || r(e.value);
},
@@ -41180,114 +41235,24 @@ function BI({ tabs: e, value: t, label: n, onChange: r }) {
});
}
//#endregion
-//#region src/react/index/index-people.tsx
-function VI({ html: e, face: t, company: n, big: r }) {
- let i = (0, I.useRef)(null);
- return (0, I.useLayoutEffect)(() => {
- t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
- }, [t]), /* @__PURE__ */ (0, L.jsx)("span", {
- ref: i,
- "data-person-ring": "",
- "data-fit-native": n ? "mark" : "portrait",
- className: `relative inline-grid flex-none place-items-center self-center overflow-hidden bg-background-secondary-default text-title-1-regular text-text-secondary ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,
- dangerouslySetInnerHTML: { __html: e }
- });
-}
-var HI = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function UI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsxs)("button", {
- type: "button",
- ...a,
- "data-index-cell": "",
- onClick: i,
- className: zw({
- radius: "plain",
- padding: "none",
- interactive: !0,
- className: `${HI} ${n ? "items-stretch text-left" : "items-center text-center"}`
- }),
- children: [
- r,
- /* @__PURE__ */ (0, L.jsx)("span", {
- "data-index-name": "",
- className: "text-body-medium break-all text-text-primary",
- children: e
- }),
- /* @__PURE__ */ (0, L.jsx)("span", {
- "data-index-readout": "",
- className: "text-caption-1-regular text-text-secondary",
- children: t
- })
- ]
- });
-}
-function WI({ kind: e, items: t, layout: n, props: r }) {
- let i = bI[e], a = TI(e), o = n === "big";
- return /* @__PURE__ */ (0, L.jsx)("div", {
- "data-index-grid": "",
- "data-layout": n,
- "data-cells": a ? "company" : "people",
- className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
- children: t.map((t) => {
- let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, L.jsx)(UI, {
- "data-k": t.k,
- "data-kind": i,
- name: t.k,
- readout: FI(e, t),
- big: o,
- onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, L.jsx)(VI, {
- html: n.html,
- face: n.face,
- company: a,
- big: o
- })
- }, t.k);
- })
- });
-}
-function GI({ items: e, layout: t, props: n }) {
- let r = t === "big";
- return /* @__PURE__ */ (0, L.jsx)("div", {
- "data-index-grid": "",
- "data-layout": t,
- "data-cells": "people",
- className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(UI, {
- "data-follow-author": e.key,
- "data-kind": "performer",
- name: e.k,
- readout: `${e.n.toLocaleString()} 项更新`,
- big: r,
- onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, L.jsx)(VI, {
- html: n.authorAvatar(e),
- company: !1,
- big: r
- })
- }, e.key))
- });
-}
-//#endregion
//#region src/react/index/index-tags.tsx
-var KI = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var HI = () => /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function mce({ tag: e, actions: t }) {
+function UI({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": PI(t.online, e.cat),
+ "data-tag-cat": PM(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, L.jsx)(KI, {}),
+ /* @__PURE__ */ (0, L.jsx)(HI, {}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -41299,23 +41264,23 @@ function mce({ tag: e, actions: t }) {
]
});
}
-function hce({ groups: e, actions: t }) {
+function WI({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, L.jsxs)("section", {
"data-alpha-group": r,
- className: zw({
+ className: Rw({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, L.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, L.jsx)(RI, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, L.jsx)(zI, { value: n.length })]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(mce, {
+ children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(UI, {
tag: e,
actions: t
}, e.k))
@@ -41332,7 +41297,7 @@ function _ce({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": PI(t.online, e.cat),
+ "data-tag-cat": PM(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",
@@ -41359,10 +41324,10 @@ function yce({ categories: e, category: t, online: n, readout: r, letters: i, vi
topLabel: "标签类型",
top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(_M, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : PI(n, e),
+ "data-tag-cat": e === "all" ? "all" : PM(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, L.jsx)(KI, {}), r]
+ children: [/* @__PURE__ */ (0, L.jsx)(HI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -41381,19 +41346,19 @@ function yce({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(RD, {
+ /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${TM}`,
+ className: `ml-auto ${BM}`,
children: vce.map(([e, t, n]) => {
- let r = kT(n);
- return /* @__PURE__ */ (0, L.jsx)(zD, {
+ let r = wT(n);
+ return /* @__PURE__ */ (0, L.jsx)(FD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: EM,
+ className: VM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -41406,11 +41371,11 @@ function yce({ categories: e, category: t, online: n, readout: r, letters: i, vi
});
}
function bce({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, L.jsxs)(FF, {
+ return /* @__PURE__ */ (0, L.jsxs)(fI, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, L.jsx)(Fj, {
+ /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -41450,7 +41415,7 @@ var xce = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], qI = [{
+}], GI = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -41479,19 +41444,19 @@ var xce = [{
]]
};
function Cce({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, L.jsx)(RD, {
- "aria-label": `${yI[e]}索引版式`,
+ return /* @__PURE__ */ (0, L.jsx)(PD, {
+ "aria-label": `${CM[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${CM}`,
- children: Sce[TI(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = kT(n);
- return /* @__PURE__ */ (0, L.jsx)(zD, {
+ className: `flex-none max-board-narrow:order-3 ${RM}`,
+ children: Sce[OM(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = wT(n);
+ return /* @__PURE__ */ (0, L.jsx)(FD, {
value: e,
"aria-label": t,
- className: Moe,
+ className: Zoe,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -41501,7 +41466,7 @@ function Cce({ kind: e, layout: t, onChange: n }) {
})
});
}
-var wce = kT("search");
+var wce = wT("search");
function Tce({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, I.useState)(t), a = (0, I.useRef)(!1), o = (0, I.useRef)(void 0);
(0, I.useEffect)(() => () => clearTimeout(o.current), []);
@@ -41517,13 +41482,13 @@ function Tce({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, L.jsx)(eM, {
+ children: /* @__PURE__ */ (0, L.jsx)(Zj, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, L.jsx)(nM, {
+ children: /* @__PURE__ */ (0, L.jsx)($j, {
type: "search",
leadingIcon: wce,
spellCheck: !1,
@@ -41536,13 +41501,13 @@ function Tce({ label: e, value: t, onQuery: n }) {
});
}
function Ece(e) {
- let [t, n] = (0, I.useState)(() => EI({
+ let [t, n] = (0, I.useState)(() => kM({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = yI[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
+ })), [r, i] = (0, I.useState)(e.layout), [a, o] = (0, I.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, I.useState)("any"), l = (0, I.useRef)(null), { kind: u, q: f, scope: p, view: m, category: h } = t, g = CM[u], v = u === "tags" && p === "online", y = u === "performers" && p === "online";
(0, I.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -41552,7 +41517,7 @@ function Ece(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = AI(DI(t)), w = jt({
+ }, C = NM(AM(t)), w = jt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -41561,21 +41526,21 @@ function Ece(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? Oe : void 0
- }), T = MI(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = NI(T.length, !!w.hasNextPage);
+ }), T = Voe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = Hoe(T.length, !!w.hasNextPage);
(0, I.useEffect)(() => {
l.current && e.refitImages(l.current);
}, [r]);
let O = (0, I.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? LI(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? Goe(O, (t) => e.tagLabel(t)) : [], [
O,
m,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(BI, {
- tabs: qI,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(VI, {
+ tabs: GI,
value: p,
label: "词表",
onChange: (e) => {
@@ -41585,14 +41550,14 @@ function Ece(e) {
view: e === "online" ? "alphabet" : m
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(BI, {
- tabs: qI,
+ }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(VI, {
+ tabs: GI,
value: p,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : TI(u) ? /* @__PURE__ */ (0, L.jsx)(BI, {
+ }) : OM(u) ? /* @__PURE__ */ (0, L.jsx)(VI, {
tabs: xce,
value: u,
label: "公司类型",
@@ -41610,7 +41575,7 @@ function Ece(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (v ? SI : xI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (v ? TM : wM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, L.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -41625,12 +41590,12 @@ function Ece(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- wI(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ DM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- wI(u) ? /* @__PURE__ */ (0, L.jsx)(Cce, {
+ DM(u) ? /* @__PURE__ */ (0, L.jsx)(Cce, {
kind: u,
layout: r,
onChange: A
@@ -41674,8 +41639,8 @@ function Ece(e) {
mode: m
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: kT("search"),
+ if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: wT("search"),
title: `没能读取${g}`,
actions: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -41690,12 +41655,12 @@ function Ece(e) {
online: v || y,
configurable: e.configurable
});
- if (y) return /* @__PURE__ */ (0, L.jsx)(GI, {
+ if (y) return /* @__PURE__ */ (0, L.jsx)(qoe, {
items: T,
layout: r,
props: e
});
- if (wI(u)) return /* @__PURE__ */ (0, L.jsx)(WI, {
+ if (DM(u)) return /* @__PURE__ */ (0, L.jsx)(LM, {
kind: u,
items: T,
layout: r,
@@ -41706,7 +41671,7 @@ function Ece(e) {
picked: a,
press: M
};
- return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(hce, {
+ return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(WI, {
groups: k,
actions: t
}) : /* @__PURE__ */ (0, L.jsx)(_ce, {
@@ -41724,7 +41689,7 @@ function Ece(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Hw, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Vw, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -41751,23 +41716,23 @@ var Dce = {
agencies: "事务所"
};
function Oce({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: kT("search"),
+ if (t) return /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: wT("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Dce[e], a = /* @__PURE__ */ (0, L.jsx)(Ow, {
+ let i = n && e === "performers" ? "创作者" : Dce[e], a = /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: kT(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: wT(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [r ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "primary",
@@ -41777,14 +41742,14 @@ function Oce({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var JI = {
+var KI = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, kce = (e) => JI[e.junk_kind || "other"] || JI.other;
+}, kce = (e) => KI[e.junk_kind || "other"] || KI.other;
function Ace(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
@@ -41810,7 +41775,7 @@ function Nce({ kind: e, view: t }) {
return e && n.set("kind", e), n.toString();
}
async function Pce(e, t) {
- let n = await jw(`/api/ads?${Nce(e)}`, t);
+ let n = await Aw(`/api/ads?${Nce(e)}`, t);
return {
...n,
items: n.items || []
@@ -41818,19 +41783,19 @@ async function Pce(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function YI({ name: e }) {
+function qI({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-var XI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+var JI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions: s }) {
let c = (0, I.useRef)(null), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), p = e.junk_kind || "other", [m, h] = kce(e), g = String(e.name || ""), _ = Ace(t), v = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", y = p === "video" || p === "image", b = (t) => {
- t.target.closest("[data-junk-actions]") || XI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
+ t.target.closest("[data-junk-actions]") || JI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
}, x = (t) => {
- if (t.stopPropagation(), XI(i, t)) {
+ if (t.stopPropagation(), JI(i, t)) {
t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -41872,7 +41837,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, L.jsx)(qI, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -41884,7 +41849,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(YI, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(qI, { name: "check" })
})
]
}),
@@ -41921,7 +41886,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: w("正在定位") }
- }) : /* @__PURE__ */ (0, L.jsx)(YI, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ }) : /* @__PURE__ */ (0, L.jsx)(qI, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -41933,7 +41898,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": _.label,
...T(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(qI, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -41945,7 +41910,7 @@ function Fce({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": "移入回收站",
...T("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, L.jsx)(YI, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(qI, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -41997,7 +41962,7 @@ var Ice = (0, I.memo)(Fce), Lce = [
"hard-drive"
]
];
-function ZI(e = "", t = "pending") {
+function YI(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
@@ -42008,34 +41973,34 @@ function Rce(e) {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: ZI("", "pending")
+ href: YI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: ZI("", "dismissed")
+ href: YI("", "dismissed")
};
}
var zce = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function QI({ name: e }) {
+function XI({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function $I({ scope: e, count: t }) {
+function ZI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = AO(), { kind: a, view: o } = e, s = Rce(o), c = (e) => {
+ let i = EO(), { kind: a, view: o } = e, s = Rce(o), c = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || ZI()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || YI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-junk-count": "",
@@ -42057,13 +42022,13 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: c,
children: [
Lce.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
- href: ZI(e, o),
+ href: YI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(QI, { name: r }),
+ /* @__PURE__ */ (0, L.jsx)(XI, { name: r }),
n,
- /* @__PURE__ */ (0, L.jsx)($I, {
+ /* @__PURE__ */ (0, L.jsx)(ZI, {
scope: e,
count: t ? jce(t, e) : 0
})
@@ -42078,9 +42043,9 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(QI, { name: s.glyph }),
+ /* @__PURE__ */ (0, L.jsx)(XI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, L.jsx)($I, {
+ /* @__PURE__ */ (0, L.jsx)(ZI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -42093,7 +42058,7 @@ function Bce({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var Vce = kT("check"), Hce = (e, t) => e[1] === t.view && e[2] === t.kind;
+var Vce = wT("check"), Hce = (e, t) => e[1] === t.view && e[2] === t.kind;
function Uce(e) {
let t = {
kind: e.kind,
@@ -42143,7 +42108,7 @@ function Wce(e) {
}, [e]), t;
}
function Gce({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = vT(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {
+ let a = hT(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, I.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: f } = e, p = (0, I.useCallback)(() => {
f?.() !== !1 && c((e) => e + 1);
}, [f]);
return /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -42151,13 +42116,13 @@ function Gce({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, L.jsx)(yT, {
+ if (!t) return /* @__PURE__ */ (0, L.jsx)(gT, {
message: d(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, L.jsx)(Vw, {
+ return /* @__PURE__ */ (0, L.jsx)(Bw, {
icon: Vce,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
@@ -42197,10 +42162,10 @@ function Kce({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var eL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", qce = {
- gray: `${eL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${eL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${eL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var QI = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", qce = {
+ gray: `${QI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${QI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${QI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
function Jce({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
@@ -42231,9 +42196,9 @@ function Jce({ value: e, max: t }) {
});
}
function Yce(e) {
- let { job: t } = uj(e), n = t.data, r = t.isError ? n ? ZO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = sj(e), n = t.data, r = t.isError ? n ? JO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : tk(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? OS : Kte;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : QO(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? DS : Jte;
return /* @__PURE__ */ (0, L.jsxs)("aside", {
role: a ? "alert" : "status",
className: qce[s],
@@ -42249,42 +42214,42 @@ function Yce(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, L.jsx)(RA, {
+ }), /* @__PURE__ */ (0, L.jsx)(FA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: hS,
+ trailingIcon: pS,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var Xce = "/api/playlists", tL = "/api/playlist", nL = ["playlists"], rL = (e) => jw(Xce, e);
+var Xce = "/api/playlists", $I = "/api/playlist", eL = ["playlists"], tL = (e) => Aw(Xce, e);
async function Zce(e) {
await X.fetchQuery({
- queryKey: nL,
- queryFn: () => rL(e),
+ queryKey: eL,
+ queryFn: () => tL(e),
staleTime: 0
});
}
-var iL = () => X.invalidateQueries({
- queryKey: nL,
+var nL = () => X.invalidateQueries({
+ queryKey: eL,
exact: !0
-}), Qce = (e) => e.current_asset_id || e.preview_asset_id || null, aL = (e) => `/poster?id=${e}&c=4`, $ce = (e) => q(tL, {
+}), Qce = (e) => e.current_asset_id || e.preview_asset_id || null, rL = (e) => `/poster?id=${e}&c=4`, $ce = (e) => q($I, {
action: "create",
name: e,
asset_ids: []
-}), oL = (e, t) => q(tL, {
+}), iL = (e, t) => q($I, {
action: "rename",
id: e,
name: t
-}), sL = (e) => q(tL, {
+}), aL = (e) => q($I, {
action: "delete",
id: e
-}), ele = (e) => jw(`${tL}?id=${e}`).catch(() => null);
+}), ele = (e) => Aw(`${$I}?id=${e}`).catch(() => null);
function tle(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(tL, {
+ return q($I, {
action: "create",
name: e.name,
asset_ids: t,
@@ -42294,18 +42259,18 @@ function tle(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var nle = kT("ellipsis"), rle = kT("pencil"), ile = kT("trash"), ale = kT("playlist"), cL = Cw(BA, VA, "text-body-2-medium"), lL = "播放列表名称不能为空", uL = (e) => async () => {
+var nle = wT("ellipsis"), rle = wT("pencil"), ile = wT("trash"), ale = wT("playlist"), oL = Sw(LA, RA, "text-body-2-medium"), sL = "播放列表名称不能为空", cL = (e) => async () => {
try {
await e();
} finally {
- iL();
+ nL();
}
};
function ole({ toast: e }) {
let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = At({
mutationFn: (e) => $ce(e),
onSuccess: (t) => {
- n(""), i(""), iL(), e("已新建播放列表", { undo: uL(() => sL(t.playlist.id)) });
+ n(""), i(""), nL(), e("已新建播放列表", { undo: cL(() => aL(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -42315,7 +42280,7 @@ function ole({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(lL);
+ i(sL);
return;
}
a.mutate(t);
@@ -42324,7 +42289,7 @@ function ole({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.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, L.jsx)(rM, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -42354,13 +42319,13 @@ function sle({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = At({
- mutationFn: ({ row: e, value: t }) => oL(e.id, t),
+ mutationFn: ({ row: e, value: t }) => iL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), iL(), n("已重命名播放列表", { undo: uL(() => oL(r.id, r.name)) });
+ t(), nL(), n("已重命名播放列表", { undo: cL(() => iL(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, L.jsx)(OO, {
+ return /* @__PURE__ */ (0, L.jsx)(wO, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -42372,7 +42337,7 @@ function sle({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(lL);
+ o(sL);
return;
}
c.mutate({
@@ -42383,11 +42348,11 @@ function sle({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, L.jsx)(tE, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ZT, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, L.jsx)(rM, {
+ }), /* @__PURE__ */ (0, L.jsx)(eM, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -42433,19 +42398,19 @@ function cle({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: zA,
- children: /* @__PURE__ */ (0, L.jsxs)(jD, {
+ className: IA,
+ children: /* @__PURE__ */ (0, L.jsxs)(DD, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: cL,
+ className: oL,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, L.jsx)(rle, {
"aria-hidden": !0,
@@ -42453,7 +42418,7 @@ function cle({ name: e, onRename: t, onDelete: n }) {
}), "编辑名称"]
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: cL,
+ className: oL,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, L.jsx)(ile, {
"aria-hidden": !0,
@@ -42465,11 +42430,11 @@ function cle({ name: e, onRename: t, onDelete: n }) {
}
function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = kt({
- queryKey: nL,
- queryFn: ({ signal: e }) => rL(e)
+ queryKey: eL,
+ queryFn: ({ signal: e }) => tL(e)
}), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(a);
(0, I.useEffect)(() => {
- l.current !== a && (l.current = a, iL());
+ l.current !== a && (l.current = a, nL());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {
@@ -42488,7 +42453,7 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
danger: !0,
onConfirm: async () => {
let t = await ele(e.id);
- await sL(e.id), iL(), i("已删除播放列表", t ? { undo: uL(() => tle(t)) } : void 0);
+ await aL(e.id), nL(), i("已删除播放列表", t ? { undo: cL(() => tle(t)) } : void 0);
}
});
};
@@ -42510,13 +42475,13 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
let a = Qce(i);
- return /* @__PURE__ */ (0, L.jsx)(MT, {
+ return /* @__PURE__ */ (0, L.jsx)(DT, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? aL(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(aL),
+ poster: i.preview_asset_id ? rL(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(rL),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
@@ -42530,7 +42495,7 @@ function lle({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
icon: ale,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
@@ -42549,7 +42514,7 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
let c = () => n(t.id);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-goal-id": t.id,
- className: zw({
+ className: Rw({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -42565,7 +42530,7 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, L.jsx)("img", {
- src: gk(t),
+ src: pk(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -42615,17 +42580,17 @@ function ule({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
}
function dle(e) {
let t = kt({
- queryKey: pk,
- queryFn: ({ signal: e }) => mk(e)
+ queryKey: uk,
+ queryFn: ({ signal: e }) => dk(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: zw({
+ return r.length ? /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
+ className: Rw({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
@@ -42642,9 +42607,9 @@ function dle(e) {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(Vw, {
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: HS,
+ icon: VS,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
@@ -42652,7 +42617,7 @@ function dle(e) {
//#endregion
//#region src/react/review/bulk-toolbar.tsx
function fle(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = Sae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ 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 = wae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -42660,29 +42625,29 @@ function fle(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(wj, {
+ /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(wj, {
+ i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(xj, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Sj, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -42690,7 +42655,7 @@ function fle(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: vS,
+ leadingIcon: gS,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -42701,11 +42666,11 @@ function fle(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, L.jsxs)(FF, {
+ }), c.size ? /* @__PURE__ */ (0, L.jsxs)(fI, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, L.jsxs)(wj, {
+ b ? /* @__PURE__ */ (0, L.jsxs)(xj, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -42713,10 +42678,10 @@ function fle(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Sj, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: e
}, e))]
@@ -42762,14 +42727,14 @@ var ple = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, dL = "reviewgenretags";
+}, lL = "reviewgenretags";
function mle({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("datalist", {
- id: dL,
+ id: lL,
children: e.map((e) => /* @__PURE__ */ (0, L.jsx)("option", { value: e }, e))
}) : null;
}
-function fL({ candidate: e, selectable: t = !1 }) {
+function uL({ 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, L.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -42825,17 +42790,17 @@ function hle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, L.jsx)(fL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, L.jsx)(RD, {
+ children: /* @__PURE__ */ (0, L.jsx)(uL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(zD, {
+ children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(FD, {
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, L.jsx)(fL, {
+ children: /* @__PURE__ */ (0, L.jsx)(uL, {
candidate: e,
selectable: !0
})
@@ -42844,13 +42809,13 @@ function hle({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}
function gle({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), c = At({
- mutationFn: (t) => Mk(e, t),
+ mutationFn: (t) => kk(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Fk();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Mk();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -42869,16 +42834,16 @@ function gle({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(eM, {
+ /* @__PURE__ */ (0, L.jsx)(Zj, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(nM, {
+ children: /* @__PURE__ */ (0, L.jsx)($j, {
size: "small",
- list: t.length ? dL : void 0,
+ list: t.length ? lL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -42911,7 +42876,7 @@ function gle({ genre: e, tags: t, locked: n, toast: r }) {
});
}
function _le({ row: e, tags: t, locked: n, toast: r }) {
- let i = Dae(e);
+ let i = kae(e);
return i.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -42928,9 +42893,9 @@ function _le({ row: e, tags: t, locked: n, toast: r }) {
}) : null;
}
//#endregion
-//#region src/react/review/review-evidence.tsx
-var pL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vle = (e = "") => pL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function mL({ url: e }) {
+//#region src/react/components/legacy-avatar.ts
+var dL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", fL = (e = "") => /^https?:\/\//i.test(e) ? e : "", vle = (e = "") => fL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function pL({ url: e }) {
let t = vle(e || ""), [n, r] = (0, I.useState)(!1);
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
@@ -42946,7 +42911,7 @@ function mL({ url: e }) {
})
});
}
-function hL({ asset: e, openItem: t }) {
+function mL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -42962,7 +42927,7 @@ function hL({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, L.jsx)(K_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, L.jsx)(G_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, L.jsx)("b", {
@@ -42972,7 +42937,7 @@ function hL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: jS,
+ leadingIcon: AS,
onClick: () => t(e.id),
children: "打开原视频"
})]
@@ -42986,7 +42951,7 @@ function yle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
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 ${PF}`,
+ 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 ${dL}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -43003,7 +42968,7 @@ function yle({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
});
}
function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = pL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+ let o = fL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, L.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -43013,10 +42978,10 @@ function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, L.jsx)(Ow, {
+ children: [o ? /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "secondary",
size: "small",
- trailingIcon: CS,
+ trailingIcon: xS,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -43028,7 +42993,7 @@ function ble({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, L.jsx)(mL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, L.jsx)(pL, { url: e.preview_url }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -43127,7 +43092,7 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsx)(Pj, {
+ children: /* @__PURE__ */ (0, L.jsx)(jj, {
size: "sm",
state: {
isSelected: n,
@@ -43138,7 +43103,7 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, L.jsx)(K_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, L.jsx)(G_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -43147,15 +43112,15 @@ function xle({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Sle = zw({
+var Sle = Rw({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), gL = "flex min-h-6 min-w-0 items-center", Cle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+}), hL = "flex min-h-6 min-w-0 items-center", Cle = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function wle(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = AO(), h = AO(), g = t === "metadata_fields", _ = vae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wae(t, n), x = Ok(t, n), S = Dk(t, n), C = Tae(n), w = Eae(n), T = Ek(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, I.useRef)(!1), m = EO(), h = EO(), g = t === "metadata_fields", _ = bae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Eae(t, n), x = Tk(t, n), S = wk(t, n), C = Dae(n), w = Oae(n), T = Ck(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(hL, {
+ children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(mL, {
asset: e,
openItem: f.openItem
}, e.id))
@@ -43169,7 +43134,7 @@ function wle(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(hL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(mL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
@@ -43193,9 +43158,9 @@ function wle(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "inset",
- icon: Yte,
+ icon: TS,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(ble, {
@@ -43205,9 +43170,9 @@ function wle(e) {
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, L.jsx)(mL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {
- className: `${gL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, L.jsx)(Ew, {
+ }) : /* @__PURE__ */ (0, L.jsx)(pL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {
+ className: `${hL} flex-wrap gap-2`,
+ children: [/* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "blue",
children: x
@@ -43217,7 +43182,7 @@ function wle(e) {
children: S
})]
}) : /* @__PURE__ */ (0, L.jsx)("h4", {
- className: gL,
+ className: hL,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -43233,14 +43198,14 @@ function wle(e) {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${gL} shrink-0`,
+ className: `${hL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -43250,7 +43215,7 @@ function wle(e) {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+ O ? /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -43274,7 +43239,7 @@ function wle(e) {
!y && k ? k : null,
w.length || t === "creator_tags" ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(Ew, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(Tw, {
variant: "caption",
color: "soft",
children: e
@@ -43361,7 +43326,7 @@ function Ele({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: _k(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: mk(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -43385,32 +43350,32 @@ function Ele({ page: e, pages: t, onPage: n }) {
});
}
function Dle(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(wk(e.category) ? e.category : _ae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, I.useState)(xk(e.category) ? e.category : yae), [f, p] = (0, I.useState)("candidates"), [m, h] = (0, I.useState)(""), [g, _] = (0, I.useState)(1), [v, y] = (0, I.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, I.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, I.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, I.useState)(""), E = (0, I.useRef)(null), [D, O] = (0, I.useState)(0), [k, A] = (0, I.useState)(""), j = (0, I.useRef)(!0);
(0, I.useEffect)(() => () => {
j.current = !1;
}, []);
let M = kt({
- queryKey: Sk,
- queryFn: ({ signal: e }) => Ak(e)
+ queryKey: yk,
+ queryFn: ({ signal: e }) => Dk(e)
}).data || {
sections: {},
counts: {}
- }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = yae(N, ee), F = P.some(([e]) => e === f) ? f : "candidates", ne = Tk(N, F), re = ne.some((e) => e.key === m) ? m : "", ie = xae(bae(N, F, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, N = M.sections[u] || [], ee = u === "metadata_fields", te = s, P = xae(N, ee), F = P.some(([e]) => e === f) ? f : "candidates", ne = Sk(N, F), re = ne.some((e) => e.key === m) ? m : "", ie = Cae(Sae(N, F, re), g), 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) => b.get(e.item_key) || Oae(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || Aae(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
let t = new Set(e);
y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, R = (e, t) => C((n) => new Map(n).set(e, t)), z = (e) => {
d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), E.current = null, t({ category: e === "metadata_fields" ? "" : e });
}, de = At({
- mutationFn: ({ row: e, status: t }) => jk(kk(u, e, t, ce(e))),
+ mutationFn: ({ row: e, status: t }) => Ok(Ek(u, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Pk(u, [t.item_key]), ue([t.item_key]), o(kae(n));
+ jk(u, [t.item_key]), ue([t.item_key]), o(jae(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
}), fe = At({
@@ -43420,7 +43385,7 @@ function Dle(e) {
if (!j.current) break;
T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await jk(kk(u, a, e, ce(a)));
+ let t = await Ok(Ek(u, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -43434,7 +43399,7 @@ function Dle(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Pk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ jk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
T(K(e));
@@ -43464,7 +43429,7 @@ function Dle(e) {
O(e), A("");
let t = await i(e);
j.current && (O(0), A(t));
- }, ge = Ik(M.mirror, c), _e = M.genre_tags || [], ve = {
+ }, ge = Nk(M.mirror, c), _e = M.genre_tags || [], ve = {
openItem: n,
openEntity: r,
onReveal: he,
@@ -43473,7 +43438,7 @@ function Dle(e) {
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
+ return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
te ? /* @__PURE__ */ (0, L.jsx)(J, {
@@ -43490,11 +43455,11 @@ function Dle(e) {
children: ge
}) : null,
/* @__PURE__ */ (0, L.jsx)(mle, { tags: _e }),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(lO, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- wk(t) && z(t);
+ xk(t) && z(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -43503,22 +43468,22 @@ function Dle(e) {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, L.jsx)(mO, {
+ }), /* @__PURE__ */ (0, L.jsx)(uO, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: gae.map((e) => {
+ children: vae.map((e) => {
let t = Number(M.counts[e] || 0);
- return /* @__PURE__ */ (0, L.jsxs)(hO, {
+ return /* @__PURE__ */ (0, L.jsxs)(dO, {
id: e,
className: Tle,
- children: [Ck[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [bk[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, L.jsxs)(gO, {
+ }), /* @__PURE__ */ (0, L.jsxs)(fO, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -43538,7 +43503,7 @@ function Dle(e) {
onSelected: y,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => Ek(u, e)),
+ approvable: le.every((e) => Ck(u, e)),
busy: fe.isPending,
feedback: w,
onUnifySource: me,
@@ -43571,7 +43536,7 @@ function Dle(e) {
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return E.current = Cae(i, ae, E.current, e.item_key, t, n), i;
+ return E.current = Tae(i, ae, E.current, e.item_key, t, n), i;
}),
locked: te,
busy: de.isPending && de.variables?.row.item_key === e.item_key,
@@ -43586,8 +43551,8 @@ function Dle(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Vw, {
- icon: Gte,
+ }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Bw, {
+ icon: qte,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
@@ -43604,9 +43569,13 @@ function Dle(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Ole = "/api/scraping", kle = "/api/scraping/settings", Ale = "/api/scraping/check", _L = "/api/scraping/cover", jle = "/api/scraping/amane-bridge", Mle = "/api/scraping/amane-bridge/check", Nle = "/api/scraping/amane-bridge/rebuild", vL = ["scraping"], yL = ["scraping", "cover"], bL = ["scraping", "amane-bridge"], xL = (e) => jw(Ole, e), SL = (e) => jw(_L, e), CL = (e) => jw(jle, e);
+var Ole = "/api/scraping", kle = "/api/scraping/settings", Ale = "/api/scraping/check", gL = "/api/scraping/cover", jle = "/api/scraping/amane-bridge", Mle = "/api/scraping/amane-bridge/check", Nle = "/api/scraping/amane-bridge/rebuild", _L = ["scraping"], vL = ["scraping", "cover"], yL = ["scraping", "amane-bridge"], bL = (e) => Aw(Ole, e), xL = (e) => Aw(gL, e), SL = (e) => Aw(jle, e);
async function Ple(e) {
await Promise.all([
+ X.fetchQuery({
+ queryKey: _L,
+ queryFn: () => bL(e)
+ }),
X.fetchQuery({
queryKey: vL,
queryFn: () => xL(e)
@@ -43614,10 +43583,6 @@ async function Ple(e) {
X.fetchQuery({
queryKey: yL,
queryFn: () => SL(e)
- }),
- X.fetchQuery({
- queryKey: bL,
- queryFn: () => CL(e)
})
]);
}
@@ -43626,7 +43591,7 @@ function Fle(e, t) {
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Ile = [["peach", "Peach 代理"], ["direct", "直接连接"]], wL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+var Ile = [["peach", "Peach 代理"], ["direct", "直接连接"]], CL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
function Lle({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("img", {
src: f({ source: e }),
@@ -43639,7 +43604,7 @@ function Lle({ source: e }) {
});
}
function Rle({ source: e, toast: t }) {
- let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(wL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
+ let [n, r] = (0, I.useState)(e.network), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(CL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
@@ -43652,7 +43617,7 @@ function Rle({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(vL, (t) => t && {
+ X.setQueryData(_L, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
@@ -43682,40 +43647,40 @@ function Rle({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, L.jsx)(Lle, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Lle, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(tj, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(YA, { children: /* @__PURE__ */ (0, L.jsx)(qA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, L.jsx)(wj, {
+ children: /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Ile.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: Ile.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, L.jsxs)($A, {
+ T ? /* @__PURE__ */ (0, L.jsxs)(XA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, L.jsx)(RA, {
+ children: /* @__PURE__ */ (0, L.jsx)(FA, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: hS,
+ trailingIcon: pS,
children: "配置 Peach 代理"
})
}) : null,
@@ -43728,20 +43693,20 @@ function Rle({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, L.jsx)(RD, {
+ /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: CM,
- children: wL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
+ className: RM,
+ children: CL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(FD, {
value: e,
- className: wM,
+ className: zM,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, L.jsx)(rM, {
+ c === "paste" ? /* @__PURE__ */ (0, L.jsx)(eM, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -43750,7 +43715,7 @@ function Rle({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -43776,14 +43741,14 @@ function Rle({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, L.jsx)(nj, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, L.jsx)($A, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: t.ok ? "success" : "error",
children: Fle(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(ej, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(ZA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -43806,25 +43771,25 @@ function Rle({ source: e, toast: t }) {
});
}
function zle({ toast: e }) {
- let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = kj({
- queryKey: yL,
- queryFn: ({ signal: e }) => SL(e),
- start: () => q(_L, { code: t }),
+ let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = Ej({
+ queryKey: vL,
+ queryFn: ({ signal: e }) => xL(e),
+ start: () => q(gL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, L.jsx)(ZA, {
+ return /* @__PURE__ */ (0, L.jsx)(JA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ children: /* @__PURE__ */ (0, L.jsxs)(XA, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: /* @__PURE__ */ (0, L.jsx)(eM, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -43839,7 +43804,7 @@ function zle({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: s
@@ -43852,9 +43817,9 @@ function zle({ toast: e }) {
});
}
function Ble({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = kj({
- queryKey: bL,
- queryFn: ({ signal: e }) => CL(e),
+ let { query: t, running: n, outcome: r, start: i } = Ej({
+ queryKey: yL,
+ queryFn: ({ signal: e }) => SL(e),
start: () => q(Nle, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
@@ -43865,48 +43830,48 @@ function Ble({ toast: e }) {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
}), a = At({ mutationFn: () => q(Mle, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(ZA, {
+ if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(JA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(XA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, L.jsx)(ij, {
+ aside: /* @__PURE__ */ (0, L.jsx)(tj, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, L.jsxs)(oj, {
+ /* @__PURE__ */ (0, L.jsxs)(nj, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(rj, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)($A, {
+ /* @__PURE__ */ (0, L.jsxs)(XA, {
divided: !0,
children: [
- /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
] }),
- n ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: c
@@ -43917,7 +43882,7 @@ function Ble({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(ej, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsxs)(ZA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -43936,10 +43901,10 @@ function Ble({ toast: e }) {
}
function Vle({ toast: e }) {
let t = kt({
- queryKey: vL,
- queryFn: ({ signal: e }) => xL(e)
+ queryKey: _L,
+ queryFn: ({ signal: e }) => bL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ return n ? /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -43950,7 +43915,7 @@ function Vle({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, L.jsx)(Ble, { toast: e })
- ] }) : /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
@@ -43958,21 +43923,21 @@ function Vle({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var TL = "/api/configuration", Hle = "/api/pick-folder", EL = ["configuration"], DL = (e) => jw(TL, e);
-async function OL(e) {
+var wL = "/api/configuration", Hle = "/api/pick-folder", TL = ["configuration"], EL = (e) => Aw(wL, e);
+async function DL(e) {
await X.fetchQuery({
- queryKey: EL,
- queryFn: () => DL(e)
+ queryKey: TL,
+ queryFn: () => EL(e)
});
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function Ule({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.sites), i = qw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, I.useState)(e.sites), i = Kw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -43981,9 +43946,9 @@ function Ule({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, L.jsx)(rM, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(XA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
+ n.map((e) => /* @__PURE__ */ (0, L.jsx)(eM, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -43994,8 +43959,8 @@ function Ule({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -44017,8 +43982,8 @@ function Wle({ data: e, receipt: t }) {
});
}
function Gle({ startup: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = qw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ let [n, r] = (0, I.useState)(e.enabled), [i, a] = (0, I.useState)(e.silent), [o, s] = (0, I.useState)(e.desktop), c = Kw(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -44028,30 +43993,30 @@ function Gle({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsxs)(YA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -44059,11 +44024,11 @@ function Gle({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)($A, {
+ e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(XA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, L.jsx)(tj, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, L.jsx)(QA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -44074,7 +44039,7 @@ function Gle({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var kL = /* @__PURE__ */ new Set([
+var OL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
@@ -44085,12 +44050,12 @@ var kL = /* @__PURE__ */ new Set([
65,
67,
90
-], AL = 120;
+], kL = 120;
function qle({ initial: e, initialJob: t }) {
let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, I.useState)(""), c = qw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = kL.has(i.state);
+ }), [o, s] = (0, I.useState)(""), c = Kw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = OL.has(i.state);
(0, I.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -44107,9 +44072,9 @@ function qle({ initial: e, initialJob: t }) {
(0, I.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, I.useEffect)(() => {
- let e = new AbortController(), t = kL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = OL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await jw("/api/configuration/update-status", e.signal);
+ let t = await Aw("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -44117,12 +44082,12 @@ function qle({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await jw("/api/configuration/automatic-updates", e.signal);
+ let n = await Aw("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= AL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= kL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < AL && (n = setTimeout(c, t));
+ !e.signal.aborted && o < kL && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -44130,63 +44095,63 @@ function qle({ initial: e, initialJob: t }) {
}, [i.state]);
let m = () => {
d || (l.current = !1, s(""), c.run("download", (e) => q("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void c.run("check", (e) => jw("/api/configuration/updates", e), r, (t) => {
+ }, g = () => void c.run("check", (e) => Aw("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
}), c.setError(K(t));
}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsxs)(nj, { children: [
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)($A, {
+ /* @__PURE__ */ (0, L.jsxs)(XA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(tj, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(QA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(nj, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(tj, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)($A, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(QA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(nj, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, L.jsx)($A, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Kw, {
+ /* @__PURE__ */ (0, L.jsx)(Gw, {
label: "更新准备进度",
value: i.progress,
stops: Kle
}),
- /* @__PURE__ */ (0, L.jsxs)(tj, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, L.jsx)(tj, { children: v })
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(ej, {
- status: /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ status: /* @__PURE__ */ (0, L.jsx)(tj, {
href: n.release_url,
children: "查看发布页"
}),
@@ -44243,10 +44208,10 @@ function Yle({ data: e, receipt: t, reopenTutorial: n }) {
});
}
function Xle({ receipt: e, reopenTutorial: t }) {
- let n = qw();
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ let n = Kw();
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [/* @__PURE__ */ (0, L.jsx)(tj, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(XA, { children: [/* @__PURE__ */ (0, L.jsx)(QA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
@@ -44254,57 +44219,57 @@ function Xle({ receipt: e, reopenTutorial: t }) {
});
}
function Zle({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = qw(e.error), s = (r) => {
+ let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = Kw(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsxs)(YA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, L.jsx)(wj, {
+ children: /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: Jle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: Jle.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, L.jsx)($A, {
+ o.error ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(nj, { children: o.error })
+ children: /* @__PURE__ */ (0, L.jsx)($A, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -44314,11 +44279,11 @@ function Zle({ initial: e, receipt: t }) {
});
}
function Qle({ facts: e }) {
- return /* @__PURE__ */ (0, L.jsx)(ZA, {
+ return /* @__PURE__ */ (0, L.jsx)(JA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, L.jsx)(aj, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(oj, {
+ children: /* @__PURE__ */ (0, L.jsx)(nj, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(rj, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(tj, {
href: e.download_url,
children: e.download_label
}) : null]
@@ -44339,26 +44304,26 @@ function $le({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
- e.available ? /* @__PURE__ */ (0, L.jsx)(tj, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(XA, { children: [
+ e.available ? /* @__PURE__ */ (0, L.jsx)(QA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, L.jsx)(sj, {
+ /* @__PURE__ */ (0, L.jsx)(ij, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(qA, {
+ children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(WA, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, L.jsx)(ej, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(ZA, {
status: s ? /* @__PURE__ */ (0, L.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -44401,13 +44366,13 @@ var eue = [
function nue() {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(tj, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(QA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(tj, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, L.jsxs)(sj, {
+ })] }), /* @__PURE__ */ (0, L.jsxs)(ij, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
/* @__PURE__ */ (0, L.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
@@ -44439,9 +44404,9 @@ function nue() {
/* @__PURE__ */ (0, L.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, L.jsx)(ij, {
+ /* @__PURE__ */ (0, L.jsx)(tj, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -44453,7 +44418,7 @@ function nue() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var jL = [
+var AL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -44501,7 +44466,7 @@ function rue(e) {
let t = e === "local" ? "" : p[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var ML = "auto";
+var jL = "auto";
function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
let i = (0, I.useRef)(null), [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(e), [l, u] = rue(n);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -44517,35 +44482,35 @@ function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, L.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: e || l }), ((e) => e && jL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: e || l }), ((e) => e && AL.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: zA,
- children: /* @__PURE__ */ (0, L.jsxs)(jD, {
+ className: IA,
+ children: /* @__PURE__ */ (0, L.jsxs)(DD, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, L.jsx)(tE, {
+ /* @__PURE__ */ (0, L.jsx)(ZT, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, L.jsx)(RD, {
+ /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": "候选图标",
- value: s || ML,
- onChange: (e) => c(e === ML ? "" : e),
+ value: s || jL,
+ onChange: (e) => c(e === jL ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: jL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
- value: e || ML,
+ children: AL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(FD, {
+ value: e || jL,
"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, L.jsx)(lj, { mark: e || l })
- }, e || ML))
+ children: /* @__PURE__ */ (0, L.jsx)(oj, { mark: e || l })
+ }, e || jL))
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -44569,13 +44534,13 @@ function iue({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var aue = "/api/configuration/push-discovery", oue = "/api/configuration/push-discovery/secret";
function sue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = qw(), l = AO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = Kw(), l = EO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -44588,11 +44553,11 @@ function sue({ initial: e, receipt: t }) {
c.run("save", (e) => q(aue, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsxs)(YA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -44602,10 +44567,10 @@ function sue({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -44615,10 +44580,10 @@ function sue({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(qA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, L.jsx)(yO, {
+ children: /* @__PURE__ */ (0, L.jsx)(hO, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -44629,30 +44594,30 @@ function sue({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, L.jsx)($A, {
+ d.enabled ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsxs)(aj, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(nj, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(rj, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, L.jsx)(oj, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(rj, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)($A, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", { children: /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(sj, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(ij, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -44663,17 +44628,17 @@ function sue({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, L.jsx)(tj, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(QA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)($A, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, L.jsx)(tj, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -44681,7 +44646,7 @@ function sue({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -44690,19 +44655,19 @@ function sue({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, L.jsx)(wj, {
+ /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(vO, {
- icon: yS,
+ /* @__PURE__ */ (0, L.jsx)(mO, {
+ icon: _S,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -44720,11 +44685,11 @@ function sue({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, L.jsx)($A, {
+ o || c.error ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(nj, { children: o || c.error })
+ children: /* @__PURE__ */ (0, L.jsx)($A, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(ej, {
+ /* @__PURE__ */ (0, L.jsxs)(ZA, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => {
@@ -44759,11 +44724,11 @@ function lue({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-search" })
});
}
-var NL = [
+var ML = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], uue = (e) => NL.find(([t]) => t === e)?.[1] ?? e, PL = (e) => p[e] || "database", FL = (e = "") => ({
+], uue = (e) => ML.find(([t]) => t === e)?.[1] ?? e, NL = (e) => p[e] || "database", PL = (e = "") => ({
path: e,
location: "local",
root: "",
@@ -44771,16 +44736,16 @@ var NL = [
library_icon: ""
});
function due(e) {
- let t = e.media_sources?.filter((e) => NL.some(([t]) => t === e.location));
+ let t = e.media_sources?.filter((e) => ML.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) => FL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => PL(e));
}
-var fue = (e) => !(e instanceof kw) || e.status !== 400 ? null : e.body?.errors ?? null;
+var fue = (e) => !(e instanceof Ow) || e.status !== 400 ? null : e.body?.errors ?? null;
function pue({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
@@ -44802,7 +44767,7 @@ function pue({ data: e, receipt: t }) {
});
}
function mue({ data: e, receipt: t }) {
- let [n, r] = (0, I.useState)(() => due(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = qw();
+ let [n, r] = (0, I.useState)(() => due(e)), [i, a] = (0, I.useState)(String(e.port)), [o, s] = (0, I.useState)(!1), [c, l] = (0, I.useState)([]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), [m, h] = (0, I.useState)(null), [g, _] = (0, I.useState)(null), [v, y] = (0, I.useState)(null), b = (0, I.useRef)(!1), x = (0, I.useRef)(e.revision), S = (0, I.useRef)([]), C = Kw();
(0, I.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, I.useEffect)(() => {
@@ -44818,7 +44783,7 @@ function mue({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, FL()]);
+ _(n.length), r((e) => [...e, PL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
@@ -44834,7 +44799,7 @@ function mue({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(TL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(wL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -44847,14 +44812,14 @@ function mue({ data: e, receipt: t }) {
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, L.jsx)(ZA, {
+ if (m) return /* @__PURE__ */ (0, L.jsx)(JA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(XA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, L.jsx)(RA, {
+ /* @__PURE__ */ (0, L.jsx)(FA, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -44864,14 +44829,14 @@ function mue({ 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, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
+ children: [/* @__PURE__ */ (0, L.jsxs)(XA, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, L.jsx)(ej, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -44882,7 +44847,7 @@ function mue({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -44895,14 +44860,14 @@ function mue({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, L.jsx)(vO, {
+ /* @__PURE__ */ (0, L.jsx)(mO, {
icon: lue,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(vO, {
- icon: yS,
+ n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(mO, {
+ icon: _S,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -44910,7 +44875,7 @@ function mue({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -44919,7 +44884,7 @@ function mue({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(iue, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ej, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(iue, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -44928,20 +44893,20 @@ function mue({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(rj, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(wj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(ej, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: NL.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(Tj, {
+ children: ML.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(Sj, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: PL(e) }), t]
+ children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: NL(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(rM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(eM, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -44959,17 +44924,17 @@ function mue({ data: e, receipt: t }) {
]
}),
A ? /* @__PURE__ */ (0, L.jsx)(nue, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, L.jsxs)(tj, { children: [
+ j.map((e) => /* @__PURE__ */ (0, L.jsxs)(QA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, L.jsxs)(ij, {
+ /* @__PURE__ */ (0, L.jsxs)(tj, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(tj, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(rM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(QA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(eM, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -44979,7 +44944,7 @@ function mue({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, L.jsx)(Fj, {
+ /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -44989,7 +44954,7 @@ function mue({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(ej, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(ZA, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -45024,20 +44989,20 @@ function hue({ online: e }) {
});
}
function gue({ data: e }) {
- let t = e.media_sources, n = qw();
- return t ? /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ let t = e.media_sources, n = Kw();
+ return t ? /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, L.jsx)(aj, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(oj, {
- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(lj, { mark: PL(e.location) }), uue(e.location)] }),
+ /* @__PURE__ */ (0, L.jsx)(nj, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(rj, {
+ term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(oj, { mark: NL(e.location) }), uue(e.location)] }),
children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(hue, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, L.jsx)($A, {
+ n.error ? /* @__PURE__ */ (0, L.jsx)(XA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(nj, { children: n.error })
+ children: /* @__PURE__ */ (0, L.jsx)($A, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
- onClick: () => void n.run("refresh", (e) => DL(e), (e) => X.setQueryData(EL, e)),
+ /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ onClick: () => void n.run("refresh", (e) => EL(e), (e) => X.setQueryData(TL, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -45052,7 +45017,7 @@ var _ue = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function vue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = qw(), g = (e) => {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(""), [o, s] = (0, I.useState)(""), [c, l] = (0, I.useState)(""), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)({}), m = (0, I.useRef)(null), h = Kw(), g = (e) => {
e.preventDefault();
let f = {};
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) {
@@ -45069,28 +45034,28 @@ function vue({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof kw ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof Ow ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
}, _ = _ue[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, L.jsxs)($A, { children: [
- _ ? /* @__PURE__ */ (0, L.jsx)(tj, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, L.jsxs)(XA, { children: [
+ _ ? /* @__PURE__ */ (0, L.jsx)(QA, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(Fj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(Mj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(rM, {
+ n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(eM, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -45103,7 +45068,7 @@ function vue({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(rM, {
+ v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(eM, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -45116,7 +45081,7 @@ function vue({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, L.jsx)(rM, {
+ }), /* @__PURE__ */ (0, L.jsx)(eM, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -45135,9 +45100,9 @@ function vue({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, L.jsx)(ej, {
+ }), v ? /* @__PURE__ */ (0, L.jsx)(ZA, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -45154,12 +45119,12 @@ var yue = 2e3, bue = [["quick", "临时链接"], ["named", "命名隧道"]], xue
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
function Sue({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = qw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ let [r, i] = (0, I.useState)(t), [a, o] = (0, I.useState)(e), [s, c] = (0, I.useState)(t.mode), [l, u] = (0, I.useState)(t.hostname), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)({}), h = Kw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, I.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- DL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(EL, t), i(t.tunnel), o(t.revision));
+ EL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (X.setQueryData(TL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
}, yue);
return () => {
@@ -45176,30 +45141,30 @@ function Sue({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof kw ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof Ow ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, L.jsxs)($A, { children: [
- r.named_available ? /* @__PURE__ */ (0, L.jsx)(RD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(XA, { children: [
+ r.named_available ? /* @__PURE__ */ (0, L.jsx)(PD, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: CM,
- children: bue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(zD, {
+ className: RM,
+ children: bue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(FD, {
value: e,
- className: wM,
+ className: zM,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(tj, { children: xue[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(rM, {
+ /* @__PURE__ */ (0, L.jsx)(QA, { children: xue[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(eM, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -45210,7 +45175,7 @@ function Sue({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, L.jsx)(rM, {
+ }), /* @__PURE__ */ (0, L.jsx)(eM, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -45230,7 +45195,7 @@ function Sue({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(tj, {
href: r.url,
children: r.url
})
@@ -45240,9 +45205,9 @@ function Sue({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsxs)(ej, {
+ r.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsxs)(ZA, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -45284,8 +45249,8 @@ function wue({ data: e, receipt: t }) {
});
}
function Tue({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = qw();
- return /* @__PURE__ */ (0, L.jsxs)(ZA, {
+ let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = Kw();
+ return /* @__PURE__ */ (0, L.jsxs)(JA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -45297,25 +45262,25 @@ function Tue({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, L.jsx)(QA, { children: /* @__PURE__ */ (0, L.jsx)(XA, {
+ /* @__PURE__ */ (0, L.jsx)(YA, { children: /* @__PURE__ */ (0, L.jsx)(qA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, L.jsx)(wj, {
+ children: /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Cue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: Cue.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)($A, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(XA, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(rM, {
+ i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(eM, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -45329,10 +45294,10 @@ function Tue({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, L.jsx)(nj, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, L.jsx)($A, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(ej, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(ZA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -45344,8 +45309,8 @@ function Tue({ initial: e, receipt: t }) {
//#region src/react/settings/configuration-page.tsx
function Eue({ receipt: e, reopenTutorial: t }) {
let n = kt({
- queryKey: EL,
- queryFn: ({ signal: e }) => DL(e)
+ queryKey: TL,
+ queryFn: ({ signal: e }) => EL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, L.jsx)("div", {
className: "configpage",
@@ -45396,29 +45361,29 @@ var Due = (e) => {
};
function Oue({ openConfiguration: e }) {
let t = kt({
- queryKey: EL,
- queryFn: ({ signal: e }) => DL(e)
+ queryKey: TL,
+ queryFn: ({ signal: e }) => EL(e)
}), n = t.data;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, L.jsxs)(aj, { children: [
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ children: [n ? /* @__PURE__ */ (0, L.jsxs)(nj, { children: [
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, L.jsx)(oj, {
+ /* @__PURE__ */ (0, L.jsx)(rj, {
term: "更新",
children: Due(n)
})
- ] }) : /* @__PURE__ */ (0, L.jsx)($A, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)(XA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开配置",
children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(ej, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(ZA, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: e,
@@ -45429,14 +45394,14 @@ function Oue({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var kue = "/api/stats", IL = ["stats"], LL = (e) => jw(kue, e);
+var kue = "/api/stats", FL = ["stats"], IL = (e) => Aw(kue, e);
async function Aue(e) {
await X.fetchQuery({
- queryKey: IL,
- queryFn: () => LL(e)
+ queryKey: FL,
+ queryFn: () => IL(e)
});
}
-var RL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, zL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, BL = (e) => (e.max_reached || 0) * 100, Mue = (e) => e.kind === "online" ? "在线直接观看" : zL(e) < BL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pue = (e) => Math.max(1, ...e) * 1.1, Fue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iue = {
+var LL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zL = (e) => (e.max_reached || 0) * 100, Mue = (e) => e.kind === "online" ? "在线直接观看" : RL(e) < zL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", Nue = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, Pue = (e) => Math.max(1, ...e) * 1.1, Fue = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), Iue = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -45452,10 +45417,10 @@ var RL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, VL = (e, t = {}) => e.map((e) => ({
+}, BL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), zue = (e) => VL(e, Rue), Bue = [
+})), zue = (e) => BL(e, Rue), Bue = [
[
1,
1,
@@ -45495,41 +45460,41 @@ var RL = (e, t) => t ? Math.round(e / t * 100) : 0, jue = (e) => e >= 3600 ? `${
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
})), Hue = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function HL(e) {
+function VL(e) {
return typeof e == "string" && Hue.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
var Uue = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function UL(e) {
+function HL(e) {
return typeof e == "string" && Uue.has(e);
}
-function WL(e) {
+function UL(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function GL(e) {
+function WL(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (UL(n) || WL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HL(n) || UL(n)) && (t[n] = e[n]);
return t;
}
-function KL(e) {
+function GL(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, I.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return GL(t);
+ return WL(t);
}
- return typeof e == "object" && !Array.isArray(e) ? GL(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? WL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function qL(e) {
+function KL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (UL(n) || WL(n) || HL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HL(n) || UL(n) || VL(n)) && (t[n] = e[n]);
return t;
}
function Wue(e) {
- return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? qL(e.props) : typeof e == "object" && !Array.isArray(e) ? qL(e) : null;
+ return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? KL(e.props) : typeof e == "object" && !Array.isArray(e) ? KL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
@@ -45543,14 +45508,14 @@ var Gue = [
"title",
"desc"
];
-function JL() {
- return JL = Object.assign ? Object.assign.bind() : function(e) {
+function qL() {
+ return qL = 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;
- }, JL.apply(null, arguments);
+ }, qL.apply(null, arguments);
}
function Kue(e, t) {
if (e == null) return {};
@@ -45570,14 +45535,14 @@ function que(e, t) {
}
return n;
}
-var YL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var JL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Kue(e, Gue), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Wm("recharts-surface", o);
- return /*#__PURE__*/ I.createElement("svg", JL({}, qL(u), {
+ return /*#__PURE__*/ I.createElement("svg", qL({}, KL(u), {
className: f,
width: r,
height: i,
@@ -45586,14 +45551,14 @@ var YL = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
ref: t
}), /*#__PURE__*/ I.createElement("title", null, c), /*#__PURE__*/ I.createElement("desc", null, l), n);
}), Jue = ["children", "className"];
-function XL() {
- return XL = Object.assign ? Object.assign.bind() : function(e) {
+function YL() {
+ return YL = 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;
- }, XL.apply(null, arguments);
+ }, YL.apply(null, arguments);
}
function Yue(e, t) {
if (e == null) return {};
@@ -45613,39 +45578,39 @@ function Xue(e, t) {
}
return n;
}
-var ZL = /*#__PURE__*/ I.forwardRef((e, t) => {
+var XL = /*#__PURE__*/ I.forwardRef((e, t) => {
var { children: n, className: r } = e, i = Yue(e, Jue), a = Wm("recharts-layer", r);
- return /*#__PURE__*/ I.createElement("g", XL({ className: a }, qL(i), { ref: t }), n);
-}), QL = /*#__PURE__*/ (0, I.createContext)(null), Zue = () => (0, I.useContext)(QL);
+ return /*#__PURE__*/ I.createElement("g", YL({ className: a }, KL(i), { ref: t }), n);
+}), ZL = /*#__PURE__*/ (0, I.createContext)(null), Zue = () => (0, I.useContext)(ZL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function $L(e) {
+function QL(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var eR = Math.cos, tR = Math.sin, nR = Math.sqrt, rR = Math.PI;
-rR / 2;
-var iR = 2 * rR, aR = Math.PI, oR = 2 * aR, sR = 1e-6, Que = oR - sR;
-function cR(e) {
+var $L = Math.cos, eR = Math.sin, tR = Math.sqrt, nR = Math.PI;
+nR / 2;
+var rR = 2 * nR, iR = Math.PI, aR = 2 * iR, oR = 1e-6, Que = aR - oR;
+function sR(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
function $ue(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return cR;
+ if (t > 15) return sR;
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 lR = class {
+var cR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? cR : $ue(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sR : $ue(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -45666,18 +45631,18 @@ var lR = 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 > sR) {
- if (!(Math.abs(u * s - c * l) > sR) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > oR) {
+ if (!(Math.abs(u * s - c * l) > oR) || !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((aR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > sR && 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((iR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > oR && 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) > sR || Math.abs(this._y1 - l) > sR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % oR + oR), d > Que ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > sR && this._append`A${n},${n},0,${+(d >= aR)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oR || Math.abs(this._y1 - l) > oR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aR + aR), d > Que ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oR && this._append`A${n},${n},0,${+(d >= iR)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -45686,10 +45651,10 @@ var lR = class {
return this._;
}
};
-lR.prototype;
+cR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function uR(e) {
+function lR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -45700,18 +45665,18 @@ function uR(e) {
t = e;
}
return e;
- }, () => new lR(t);
+ }, () => new cR(t);
}
Array.prototype.slice;
-function dR(e) {
+function uR(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 fR(e) {
+function dR(e) {
this._context = e;
}
-fR.prototype = {
+dR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -45734,33 +45699,33 @@ fR.prototype = {
}
}
};
-function pR(e) {
- return new fR(e);
+function fR(e) {
+ return new dR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function mR(e) {
+function pR(e) {
return e[0];
}
-function hR(e) {
+function mR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function gR(e, t) {
- var n = $L(!0), r = null, i = pR, a = null, o = uR(s);
- e = typeof e == "function" ? e : e === void 0 ? mR : $L(e), t = typeof t == "function" ? t : t === void 0 ? hR : $L(t);
+function hR(e, t) {
+ var n = QL(!0), r = null, i = fR, a = null, o = lR(s);
+ e = typeof e == "function" ? e : e === void 0 ? pR : QL(e), t = typeof t == "function" ? t : t === void 0 ? mR : QL(t);
function s(s) {
- var c, l = (s = dR(s)).length, u, d = !1, f;
+ var c, l = (s = uR(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 : $L(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QL(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : $L(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QL(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : $L(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : QL(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -45769,11 +45734,11 @@ function gR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function _R(e, t, n) {
- var r = null, i = $L(!0), a = null, o = pR, s = null, c = uR(l);
- e = typeof e == "function" ? e : e === void 0 ? mR : $L(+e), t = typeof t == "function" ? t : $L(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? hR : $L(+n);
+function gR(e, t, n) {
+ var r = null, i = QL(!0), a = null, o = fR, s = null, c = lR(l);
+ e = typeof e == "function" ? e : e === void 0 ? pR : QL(+e), t = typeof t == "function" ? t : QL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? mR : QL(+n);
function l(l) {
- var u, d, f, p = (l = dR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = uR(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();
@@ -45787,20 +45752,20 @@ function _R(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return gR().defined(i).curve(o).context(a);
+ return hR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : $L(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QL(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : $L(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QL(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : $L(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : QL(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : $L(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QL(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : $L(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QL(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : $L(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : QL(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -45808,7 +45773,7 @@ function _R(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : $L(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : QL(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -45817,7 +45782,7 @@ function _R(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var vR = class {
+var _R = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -45845,69 +45810,69 @@ var vR = class {
}
};
function ede(e) {
- return new vR(e, !0);
+ return new _R(e, !0);
}
function tde(e) {
- return new vR(e, !1);
+ return new _R(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var yR = { draw(e, t) {
- let n = nR(t / rR);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, iR);
+var vR = { draw(e, t) {
+ let n = tR(t / nR);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, rR);
} }, nde = { draw(e, t) {
- let n = nR(t / 5) / 2;
+ let n = tR(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, bR = nR(1 / 3), rde = bR * 2, ide = { draw(e, t) {
- let n = nR(t / rde), r = n * bR;
+} }, yR = tR(1 / 3), rde = yR * 2, ide = { draw(e, t) {
+ let n = tR(t / rde), r = n * yR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
} }, ade = { draw(e, t) {
- let n = nR(t), r = -n / 2;
+ let n = tR(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, ode = .8908130915292852, xR = tR(rR / 10) / tR(7 * rR / 10), sde = tR(iR / 10) * xR, cde = -eR(iR / 10) * xR, lde = { draw(e, t) {
- let n = nR(t * ode), r = sde * n, i = cde * n;
+} }, ode = .8908130915292852, bR = eR(nR / 10) / eR(7 * nR / 10), sde = eR(rR / 10) * bR, cde = -$L(rR / 10) * bR, lde = { draw(e, t) {
+ let n = tR(t * ode), r = sde * n, i = cde * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = iR * t / 5, o = eR(a), s = tR(a);
+ let a = rR * t / 5, o = $L(a), s = eR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, SR = nR(3), ude = { draw(e, t) {
- let n = -nR(t / (SR * 3));
- e.moveTo(0, n * 2), e.lineTo(-SR * n, -n), e.lineTo(SR * n, -n), e.closePath();
-} }, CR = -.5, wR = nR(3) / 2, TR = 1 / nR(12), dde = (TR / 2 + 1) * 3, fde = { draw(e, t) {
- let n = nR(t / dde), r = n / 2, i = n * TR, a = r, o = n * TR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(CR * r - wR * i, wR * r + CR * i), e.lineTo(CR * a - wR * o, wR * a + CR * o), e.lineTo(CR * s - wR * c, wR * s + CR * c), e.lineTo(CR * r + wR * i, CR * i - wR * r), e.lineTo(CR * a + wR * o, CR * o - wR * a), e.lineTo(CR * s + wR * c, CR * c - wR * s), e.closePath();
+} }, xR = tR(3), ude = { draw(e, t) {
+ let n = -tR(t / (xR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-xR * n, -n), e.lineTo(xR * n, -n), e.closePath();
+} }, SR = -.5, CR = tR(3) / 2, wR = 1 / tR(12), dde = (wR / 2 + 1) * 3, fde = { draw(e, t) {
+ let n = tR(t / dde), r = n / 2, i = n * wR, a = r, o = n * wR + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(SR * r - CR * i, CR * r + SR * i), e.lineTo(SR * a - CR * o, CR * a + SR * o), e.lineTo(SR * s - CR * c, CR * s + SR * c), e.lineTo(SR * r + CR * i, SR * i - CR * r), e.lineTo(SR * a + CR * o, SR * o - CR * a), e.lineTo(SR * s + CR * c, SR * c - CR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
function pde(e, t) {
- let n = null, r = uR(i);
- e = typeof e == "function" ? e : $L(e || yR), t = typeof t == "function" ? t : $L(t === void 0 ? 64 : +t);
+ let n = null, r = lR(i);
+ e = typeof e == "function" ? e : QL(e || vR), t = typeof t == "function" ? t : QL(t === void 0 ? 64 : +t);
function i() {
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 : $L(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QL(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : $L(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : QL(+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 ER() {}
+function TR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function DR(e, t, n) {
+function ER(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 OR(e) {
+function DR(e) {
this._context = e;
}
-OR.prototype = {
+DR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -45919,7 +45884,7 @@ OR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: DR(this, this._x1, this._y1);
+ case 3: ER(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;
@@ -45933,22 +45898,22 @@ OR.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: DR(this, e, t);
+ default: ER(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function mde(e) {
- return new OR(e);
+ return new DR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function kR(e) {
+function OR(e) {
this._context = e;
}
-kR.prototype = {
- areaStart: ER,
- areaEnd: ER,
+OR.prototype = {
+ areaStart: TR,
+ areaEnd: TR,
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;
},
@@ -45974,20 +45939,20 @@ kR.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: DR(this, e, t);
+ default: ER(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function hde(e) {
- return new kR(e);
+ return new OR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function AR(e) {
+function kR(e) {
this._context = e;
}
-AR.prototype = {
+kR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46014,22 +45979,22 @@ AR.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: DR(this, e, t);
+ default: ER(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
function gde(e) {
- return new AR(e);
+ return new kR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function jR(e) {
+function AR(e) {
this._context = e;
}
-jR.prototype = {
- areaStart: ER,
- areaEnd: ER,
+AR.prototype = {
+ areaStart: TR,
+ areaEnd: TR,
lineStart: function() {
this._point = 0;
},
@@ -46041,29 +46006,29 @@ jR.prototype = {
}
};
function _de(e) {
- return new jR(e);
+ return new AR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function MR(e) {
+function jR(e) {
return e < 0 ? -1 : 1;
}
-function NR(e, t, n) {
+function MR(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 (MR(a) + MR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (jR(a) + jR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function PR(e, t) {
+function NR(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function FR(e, t, n) {
+function PR(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 IR(e) {
+function FR(e) {
this._context = e;
}
-IR.prototype = {
+FR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46078,7 +46043,7 @@ IR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: FR(this, this._t0, PR(this, this._t0));
+ case 3: PR(this, this._t0, NR(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -46093,24 +46058,24 @@ IR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, FR(this, PR(this, n = NR(this, e, t)), n);
+ this._point = 3, PR(this, NR(this, n = MR(this, e, t)), n);
break;
- default: FR(this, this._t0, n = NR(this, e, t));
+ default: PR(this, this._t0, n = MR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function LR(e) {
- this._context = new RR(e);
+function IR(e) {
+ this._context = new LR(e);
}
-(LR.prototype = Object.create(IR.prototype)).point = function(e, t) {
- IR.prototype.point.call(this, t, e);
+(IR.prototype = Object.create(FR.prototype)).point = function(e, t) {
+ FR.prototype.point.call(this, t, e);
};
-function RR(e) {
+function LR(e) {
this._context = e;
}
-RR.prototype = {
+LR.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -46125,17 +46090,17 @@ RR.prototype = {
}
};
function vde(e) {
- return new IR(e);
+ return new FR(e);
}
function yde(e) {
- return new LR(e);
+ return new IR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function zR(e) {
+function RR(e) {
this._context = e;
}
-zR.prototype = {
+RR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46149,7 +46114,7 @@ zR.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 = BR(e), i = BR(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 = zR(e), i = zR(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;
},
@@ -46157,7 +46122,7 @@ zR.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function BR(e) {
+function zR(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];
@@ -46166,14 +46131,14 @@ function BR(e) {
return [i, a];
}
function bde(e) {
- return new zR(e);
+ return new RR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function VR(e, t) {
+function BR(e, t) {
this._context = e, this._t = t;
}
-VR.prototype = {
+BR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -46202,22 +46167,22 @@ VR.prototype = {
}
};
function xde(e) {
- return new VR(e, .5);
+ return new BR(e, .5);
}
function Sde(e) {
- return new VR(e, 0);
+ return new BR(e, 0);
}
function Cde(e) {
- return new VR(e, 1);
+ return new BR(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function HR(e, t) {
+function VR(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 UR(e) {
+function HR(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
@@ -46231,21 +46196,21 @@ function Tde(e) {
return t.key = e, t;
}
function Ede() {
- var e = $L([]), t = UR, n = HR, r = wde;
+ var e = QL([]), t = HR, n = VR, r = wde;
function i(i) {
var a = Array.from(e.apply(this, arguments), Tde), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = dR(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = uR(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 : $L(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : QL(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : $L(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : QL(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? UR : typeof e == "function" ? e : $L(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? HR : typeof e == "function" ? e : QL(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? HR, i) : n;
+ return arguments.length ? (n = e ?? VR, i) : n;
}, i;
}
//#endregion
@@ -46256,7 +46221,7 @@ function Dde(e, t) {
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;
}
- HR(e, t);
+ VR(e, t);
}
}
//#endregion
@@ -46267,7 +46232,7 @@ function Ode(e, t) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- HR(e, t);
+ VR(e, t);
}
}
//#endregion
@@ -46284,18 +46249,18 @@ function kde(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, HR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, VR(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function WR(e) {
+function UR(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
var Ade = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function GR(e) {
+function WR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
@@ -46305,30 +46270,30 @@ function GR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function KR(e) {
+function GR(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 qR(e) {
+function KR(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
function jde(e) {
- return e == null ? "" : JR(e);
+ return e == null ? "" : qR(e);
}
-function JR(e) {
+function qR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(JR).join(",");
- if (qR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(qR).join(",");
+ if (KR(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 YR(e) {
- if (Array.isArray(e)) return e.map(KR);
+function JR(e) {
+ if (Array.isArray(e)) return e.map(GR);
if (typeof e == "symbol") return [e];
e = jde(e);
let t = [], n = e.length;
@@ -46358,23 +46323,23 @@ function YR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function XR(e, t, n) {
+function YR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (WR(t)) return n;
+ if (UR(t)) return n;
let r = e[t];
- return r === void 0 ? GR(t) && !Object.hasOwn(e, t) ? XR(e, YR(t), n) : n : r;
+ return r === void 0 ? WR(t) && !Object.hasOwn(e, t) ? YR(e, JR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = KR(t));
+ typeof t == "number" && (t = GR(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
if (Array.isArray(t)) return Mde(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), WR(t)) return n;
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), UR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
@@ -46384,7 +46349,7 @@ function Mde(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || WR(t[e])) return n;
+ if (r == null || UR(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
@@ -46392,49 +46357,49 @@ function Mde(e, t, n) {
//#endregion
//#region node_modules/recharts/es6/util/round.js
var Nde = 4;
-function ZR(e) {
+function XR(e) {
var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nde), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function QR(e) {
+function ZR(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 + ZR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + XR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var $R = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, ez = (e) => typeof e == "number" && e != +e, tz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !ez(e), nz = (e) => Z(e) || typeof e == "string", Pde = 0, rz = (e) => {
+var QR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $R = (e) => typeof e == "number" && e != +e, ez = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$R(e), tz = (e) => Z(e) || typeof e == "string", Pde = 0, nz = (e) => {
var t = ++Pde;
return `${e || ""}${t}`;
-}, iz = 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 (tz(e)) {
+ if (ez(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return ez(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, az = (e) => {
+ return $R(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, iz = (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 oz(e, t, n) {
- return Z(e) && Z(t) ? ZR(e + n * (t - e)) : t;
+function az(e, t, n) {
+ return Z(e) && Z(t) ? XR(e + n * (t - e)) : t;
}
-function sz(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : XR(e, t)) === n);
+function oz(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : YR(e, t)) === n);
}
-var cz = (e) => e == null, lz = (e) => cz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function uz(e) {
+var sz = (e) => e == null, cz = (e) => sz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function lz(e) {
return e != null;
}
-function dz() {}
+function uz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
var Fde = [
@@ -46442,16 +46407,16 @@ var Fde = [
"size",
"sizeType"
];
-function fz() {
- return fz = Object.assign ? Object.assign.bind() : function(e) {
+function dz() {
+ return dz = 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;
- }, fz.apply(null, arguments);
+ }, dz.apply(null, arguments);
}
-function pz(e, t) {
+function fz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46461,12 +46426,12 @@ function pz(e, t) {
}
return n;
}
-function mz(e) {
+function pz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pz(Object(n), !0).forEach(function(t) {
+ t % 2 ? fz(Object(n), !0).forEach(function(t) {
Ide(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46512,15 +46477,15 @@ function Bde(e, t) {
}
return n;
}
-var hz = {
- symbolCircle: yR,
+var mz = {
+ symbolCircle: vR,
symbolCross: nde,
symbolDiamond: ide,
symbolSquare: ade,
symbolStar: lde,
symbolTriangle: ude,
symbolWye: fde
-}, Vde = Math.PI / 180, Hde = (e) => hz[`symbol${lz(e)}`] || yR, Ude = (e, t, n) => {
+}, Vde = Math.PI / 180, Hde = (e) => mz[`symbol${cz(e)}`] || vR, Ude = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
@@ -46534,9 +46499,9 @@ var hz = {
default: return Math.PI * e * e / 4;
}
}, Wde = (e, t) => {
- hz[`symbol${lz(e)}`] = t;
-}, gz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = mz(mz({}, zde(e, Fde)), {}, {
+ mz[`symbol${cz(e)}`] = t;
+}, hz = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pz(pz({}, zde(e, Fde)), {}, {
type: t,
size: n,
sizeType: r
@@ -46545,35 +46510,35 @@ var hz = {
var o = () => {
var e = Hde(a), t = pde().type(e).size(Ude(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = qL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", fz({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = KL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", dz({}, u, {
className: Wm("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-gz.registerSymbol = Wde;
+hz.registerSymbol = Wde;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var _z = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, vz = (e, t) => {
+var gz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _z = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, I.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- HL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ VL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, Gde = (e, t, n) => (r) => (e(t, n, r), null), yz = (e, t, n) => {
+}, Gde = (e, t, n) => (r) => (e(t, n, r), null), vz = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- HL(i) && typeof a == "function" && (r ||= {}, r[i] = Gde(a, t, n));
+ VL(i) && typeof a == "function" && (r ||= {}, r[i] = Gde(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function bz(e, t) {
+function yz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46586,9 +46551,9 @@ function bz(e, t) {
function Kde(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? bz(Object(n), !0).forEach(function(t) {
+ t % 2 ? yz(Object(n), !0).forEach(function(t) {
qde(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46616,22 +46581,22 @@ function Yde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function xz(e, t) {
+function bz(e, t) {
var n = Kde({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
-function Sz() {
- return Sz = Object.assign ? Object.assign.bind() : function(e) {
+function xz() {
+ return xz = 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;
- }, Sz.apply(null, arguments);
+ }, xz.apply(null, arguments);
}
-function Cz(e, t) {
+function Sz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46641,12 +46606,12 @@ function Cz(e, t) {
}
return n;
}
-function wz(e) {
+function Cz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Cz(Object(n), !0).forEach(function(t) {
+ t % 2 ? Sz(Object(n), !0).forEach(function(t) {
Xde(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Cz(Object(n)).forEach(function(t) {
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
@@ -46674,7 +46639,7 @@ function Qde(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Tz = 32, $de = {
+var wz = 32, $de = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -46686,7 +46651,7 @@ function efe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
function tfe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = Tz / 2, a = Tz / 6, o = Tz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+ var { data: t, iconType: n, inactiveColor: r } = e, i = wz / 2, a = wz / 6, o = wz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {
strokeWidth: 4,
@@ -46695,7 +46660,7 @@ function tfe(e) {
strokeDasharray: efe(t.payload),
x1: 0,
y1: i,
- x2: Tz,
+ x2: wz,
y2: i,
className: "recharts-legend-icon"
});
@@ -46705,25 +46670,25 @@ function tfe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${Tz}M${2 * o},${i}
+ H${wz}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ I.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${Tz / 8}h${Tz}v${Tz * 3 / 4}h${-Tz}z`,
+ d: `M0,${wz / 8}h${wz}v${wz * 3 / 4}h${-wz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ I.isValidElement(t.legendIcon)) {
- var l = wz({}, t);
+ var l = Cz({}, t);
return delete l.legendIcon, /*#__PURE__*/ I.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ I.createElement(gz, {
+ return /*#__PURE__*/ I.createElement(hz, {
fill: s,
cx: i,
cy: i,
- size: Tz,
+ size: wz,
sizeType: "diameter",
type: c
});
@@ -46732,8 +46697,8 @@ function nfe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: Tz,
- height: Tz
+ width: wz,
+ height: wz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -46749,14 +46714,14 @@ function nfe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? wz({}, s) : {};
+ var p = typeof s == "object" ? Cz({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ I.createElement("li", Sz({
+ return /*#__PURE__*/ I.createElement("li", xz({
className: f,
style: l,
key: `legend-item-${r}`
- }, yz(e, t, r)), /*#__PURE__*/ I.createElement(YL, {
+ }, vz(e, t, r)), /*#__PURE__*/ I.createElement(JL, {
width: n,
height: n,
viewBox: c,
@@ -46773,7 +46738,7 @@ function nfe(e) {
});
}
var rfe = (e) => {
- var t = xz(e, $de), { payload: n, layout: r, align: i } = t;
+ var t = bz(e, $de), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -46783,7 +46748,7 @@ var rfe = (e) => {
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ I.createElement(nfe, Sz({}, t, { payload: n })));
+ }, /*#__PURE__*/ I.createElement(nfe, xz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
@@ -46804,7 +46769,7 @@ function afe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function Ez(e) {
+function Tz(e) {
return e;
}
//#endregion
@@ -46814,19 +46779,19 @@ function ofe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function Dz(e) {
+function Ez(e) {
return e != null && typeof e != "function" && ofe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
function sfe(e) {
return function(t) {
- return XR(t, e);
+ return YR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function Oz(e) {
+function Dz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
@@ -46841,33 +46806,33 @@ function lfe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
-function kz(e) {
+function Oz(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 ufe = "[object RegExp]", Az = "[object String]", jz = "[object Number]", Mz = "[object Boolean]", Nz = "[object Arguments]", dfe = "[object Symbol]", ffe = "[object Date]", pfe = "[object Map]", mfe = "[object Set]", hfe = "[object Array]", gfe = "[object ArrayBuffer]", _fe = "[object Object]", vfe = "[object DataView]", yfe = "[object Uint8Array]", bfe = "[object Uint8ClampedArray]", xfe = "[object Uint16Array]", Sfe = "[object Uint32Array]", Cfe = "[object Int8Array]", wfe = "[object Int16Array]", Tfe = "[object Int32Array]", Efe = "[object Float32Array]", Dfe = "[object Float64Array]", Pz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var ufe = "[object RegExp]", kz = "[object String]", Az = "[object Number]", jz = "[object Boolean]", Mz = "[object Arguments]", dfe = "[object Symbol]", ffe = "[object Date]", pfe = "[object Map]", mfe = "[object Set]", hfe = "[object Array]", gfe = "[object ArrayBuffer]", _fe = "[object Object]", vfe = "[object DataView]", yfe = "[object Uint8Array]", bfe = "[object Uint8ClampedArray]", xfe = "[object Uint16Array]", Sfe = "[object Uint32Array]", Cfe = "[object Int8Array]", wfe = "[object Int16Array]", Tfe = "[object Int32Array]", Efe = "[object Float32Array]", Dfe = "[object Float64Array]", Nz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
function Ofe(e) {
- return Pz.Buffer !== void 0 && Pz.Buffer.isBuffer(e);
+ return Nz.Buffer !== void 0 && Nz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
function kfe(e, t) {
- return Fz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+ return Pz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Fz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function Pz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (Oz(e)) return e;
+ if (Dz(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] = Fz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Pz(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());
@@ -46878,71 +46843,71 @@ function Fz(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, Fz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, Pz(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(Fz(a, void 0, n, r, i));
+ for (let a of e) t.add(Pz(a, void 0, n, r, i));
return t;
}
if (Ofe(e)) return e.subarray();
if (cfe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Fz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Pz(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), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(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), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(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), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(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, Iz(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, Fz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(t, e, n, r, i), t;
}
if (typeof e == "object" && Afe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), Iz(t, e, n, r, i), t;
+ return r.set(e, t), Fz(t, e, n, r, i), t;
}
return e;
}
-function Iz(e, t, n = e, r, i) {
+function Fz(e, t, n = e, r, i) {
let a = [...Object.keys(t), ...lfe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Fz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = Pz(t[s], s, n, r, i));
}
}
function Afe(e) {
- switch (kz(e)) {
- case Nz:
+ switch (Oz(e)) {
+ case Mz:
case hfe:
case gfe:
case vfe:
- case Mz:
+ case jz:
case ffe:
case Efe:
case Dfe:
@@ -46950,11 +46915,11 @@ function Afe(e) {
case wfe:
case Tfe:
case pfe:
- case jz:
+ case Az:
case _fe:
case ufe:
case mfe:
- case Az:
+ case kz:
case dfe:
case yfe:
case bfe:
@@ -46966,44 +46931,44 @@ function Afe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
function jfe(e) {
- return Fz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+ return Pz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function Lz(e, t) {
+function Iz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function Rz(e) {
+function Lz(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function zz(e, t, n) {
- return typeof n == "function" ? Bz(e, t, function e(t, r, i, a, o, s) {
+function Rz(e, t, n) {
+ return typeof n == "function" ? zz(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? Bz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : zz(e, t, () => void 0);
+ return c === void 0 ? zz(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : Rz(e, t, () => void 0);
}
-function Bz(e, t, n, r, i = !1) {
+function zz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
case "object": return Mfe(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? Bz(e, { ...t }, n, r, i) : Lz(e, t);
- default: return Rz(e) && i ? typeof t != "string" || t === "" : Lz(e, t);
+ case "function": return Object.keys(t).length > 0 ? zz(e, { ...t }, n, r, i) : Iz(e, t);
+ default: return Lz(e) && i ? typeof t != "string" || t === "" : Iz(e, t);
}
}
function Mfe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return Vz(e, t, n, r);
+ if (Array.isArray(t)) return Bz(e, t, n, r);
if (t instanceof Map) return Nfe(e, t, n, r);
if (t instanceof Set) return Pfe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) Oz(e) && (e = Object(e));
+ if (i) Dz(e) && (e = Object(e));
else {
- let t = kz(e);
+ let t = Oz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -47025,7 +46990,7 @@ function Nfe(e, t, n, r) {
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
return !0;
}
-function Vz(e, t, n, r) {
+function Bz(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -47044,17 +47009,17 @@ function Vz(e, t, n, r) {
return !0;
}
function Pfe(e, t, n, r) {
- return t.size === 0 || e instanceof Set && Vz([...e], [...t], n, r);
+ return t.size === 0 || e instanceof Set && Bz([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function Hz(e, t) {
- return zz(e, t, () => void 0);
+function Vz(e, t) {
+ return Rz(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
function Ffe(e) {
- return e = jfe(e), (t) => Hz(t, e);
+ return e = jfe(e), (t) => Vz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
@@ -47063,20 +47028,20 @@ function Ife(e, t) {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (kz(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (Oz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), Iz(t, e, i, a), t;
+ return a.set(e, t), Fz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case jz:
case Az:
- case Mz: {
+ case kz:
+ case jz: {
let t = new e.constructor(e?.valueOf());
- return Iz(t, e), t;
+ return Fz(t, e), t;
}
- case Nz: {
+ case Mz: {
let t = {};
- return Iz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return Fz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -47091,7 +47056,7 @@ function Lfe(e) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
var Rfe = /^(?:0|[1-9]\d*)$/;
-function Uz(e, t = 2 ** 53 - 1) {
+function Hz(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
@@ -47101,17 +47066,17 @@ function Uz(e, t = 2 ** 53 - 1) {
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
function zfe(e) {
- return typeof e == "object" && !!e && kz(e) === "[object Arguments]";
+ return typeof e == "object" && !!e && Oz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
function Bfe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && GR(t) && !(t in Object(e)) ? YR(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && WR(t) && !(t in Object(e)) ? JR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = KR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zfe(r)) && Uz(t) && Number(t) < r.length)) return !1;
+ let t = GR(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || zfe(r)) && Hz(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
@@ -47123,17 +47088,17 @@ function Vfe(e, t) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = KR(e);
+ case "number": e = GR(e);
}
return t = Lfe(t), function(n) {
- let r = XR(n, e);
- return r === void 0 ? Bfe(n, e) : t === void 0 ? r === void 0 : Hz(r, t);
+ let r = YR(n, e);
+ return r === void 0 ? Bfe(n, e) : t === void 0 ? r === void 0 : Vz(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function Wz(e) {
- if (e == null) return Ez;
+function Uz(e) {
+ if (e == null) return Tz;
switch (typeof e) {
case "function": return e;
case "object": return Array.isArray(e) && e.length === 2 ? Vfe(e[0], e[1]) : Ffe(e);
@@ -47147,13 +47112,13 @@ function Hfe(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function Gz(e, t = Ez) {
- return Dz(e) ? ife(Array.from(e), afe(Wz(t), 1)).map(Hfe) : [];
+function Wz(e, t = Tz) {
+ return Ez(e) ? ife(Array.from(e), afe(Uz(t), 1)).map(Hfe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function Kz(e, t, n) {
- return t === !0 ? Gz(e, n) : typeof t == "function" ? Gz(e, t) : e;
+function Gz(e, t, n) {
+ return t === !0 ? Wz(e, n) : typeof t == "function" ? Wz(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
@@ -47204,15 +47169,15 @@ var Ufe = /* @__PURE__ */ M(((e) => {
};
})), Wfe = /* @__PURE__ */ M(((e, t) => {
t.exports = Ufe();
-})), qz = /*#__PURE__*/ (0, I.createContext)(null), Gfe = Wfe(), Kfe = (e) => e, Jz = () => {
- var e = (0, I.useContext)(qz);
+})), Kz = /*#__PURE__*/ (0, I.createContext)(null), Gfe = Wfe(), Kfe = (e) => e, qz = () => {
+ var e = (0, I.useContext)(Kz);
return e ? e.store.dispatch : Kfe;
-}, Yz = () => {}, qfe = () => Yz, Jfe = (e, t) => e === t;
+}, Jz = () => {}, qfe = () => Jz, Jfe = (e, t) => e === t;
function Q(e) {
- var t = (0, I.useContext)(qz), n = (0, I.useMemo)(() => t ? (t) => {
+ var t = (0, I.useContext)(Kz), n = (0, I.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : Yz, [t, e]);
- return (0, Gfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : qfe, t ? t.store.getState : Yz, t ? t.store.getState : Yz, n, Jfe);
+ } : Jz, [t, e]);
+ return (0, Gfe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : qfe, t ? t.store.getState : Jz, t ? t.store.getState : Jz, n, Jfe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
@@ -47228,7 +47193,7 @@ function Zfe(e, t = "expected all items to be functions, instead received the fo
throw TypeError(`${t}[${n}]`);
}
}
-var Xz = (e) => Array.isArray(e) ? e : [e];
+var Yz = (e) => Array.isArray(e) ? e : [e];
function Qfe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
return Zfe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
@@ -47245,8 +47210,8 @@ var epe = class {
deref() {
return this.value;
}
-}, tpe = typeof WeakRef < "u" ? WeakRef : epe, npe = 0, Zz = 1;
-function Qz() {
+}, tpe = typeof WeakRef < "u" ? WeakRef : epe, npe = 0, Xz = 1;
+function Zz() {
return {
s: npe,
v: void 0,
@@ -47254,8 +47219,8 @@ function Qz() {
p: null
};
}
-function $z(e, t = {}) {
- let n = Qz(), { resultEqualityCheck: r } = t, i, a = 0;
+function Qz(e, t = {}) {
+ let n = Zz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -47264,24 +47229,24 @@ function $z(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = Qz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Zz(), 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 = Qz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = Zz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === Zz) c = t.v;
+ if (t.s === Xz) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new tpe(c) : c;
}
- return s.s = Zz, s.v = c, c;
+ return s.s = Xz, s.v = c, c;
}
return o.clearCache = () => {
- n = Qz(), o.resetResultsCount();
+ n = Zz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
@@ -47293,10 +47258,10 @@ function rpe(e, ...t) {
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
typeof o == "object" && (a = o, o = e.pop()), Yfe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = $z, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Qz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = Xz(c), p = Xz(u), m = Qfe(e), h = s(function() {
+ }, f = Yz(c), p = Yz(u), m = Qfe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
@@ -47322,7 +47287,7 @@ function rpe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ rpe($z), ipe = Object.assign((e, t = $) => {
+var $ = /* @__PURE__ */ rpe(Qz), ipe = Object.assign((e, t = $) => {
Xfe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
@@ -47340,17 +47305,17 @@ function ape(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function eB(e, t, n) {
- return Rz(n) && (typeof t == "number" && Dz(n) && Uz(t) && t < n.length || typeof t == "string" && t in n) ? Lz(n[t], e) : !1;
+function $z(e, t, n) {
+ return Lz(n) && (typeof t == "number" && Ez(n) && Hz(t) && t < n.length || typeof t == "string" && t in n) ? Iz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function tB(e) {
+function eB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
var ope = (e, t, n) => {
if (e !== t) {
- let r = tB(e), i = tB(t);
+ let r = eB(e), i = eB(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -47360,13 +47325,13 @@ var ope = (e, t, n) => {
return 0;
}, spe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cpe = /^\w*$/;
function lpe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || qR(e) ? !0 : typeof e == "string" && (cpe.test(e) || !spe.test(e)) || t != null && Object.hasOwn(t, e);
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KR(e) ? !0 : typeof e == "string" && (cpe.test(e) || !spe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
function upe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = Dz(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 = Ez(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -47376,7 +47341,7 @@ function upe(e, t, n, r) {
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) || lpe(e) ? e : {
key: e,
- path: YR(e)
+ path: JR(e)
}));
return e.map((e) => ({
original: e,
@@ -47391,15 +47356,15 @@ function upe(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function nB(e, ...t) {
+function tB(e, ...t) {
let n = t.length;
- return n > 1 && eB(e, t[0], t[1]) ? t = [] : n > 2 && eB(t[0], t[1], t[2]) && (t = [t[0]]), upe(e, ape(t), ["asc"]);
+ return n > 1 && $z(e, t[0], t[1]) ? t = [] : n > 2 && $z(t[0], t[1], t[2]) && (t = [t[0]]), upe(e, ape(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var rB = (e) => e.legend.settings, dpe = (e) => e.legend.size, fpe = $([(e) => e.legend.payload, rB], (e, t) => {
+var nB = (e) => e.legend.settings, dpe = (e) => e.legend.size, fpe = $([(e) => e.legend.payload, nB], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? nB(r, n) : r;
+ return n ? tB(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
@@ -47408,8 +47373,8 @@ function ppe() {
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var iB = 1;
-function aB() {
+var rB = 1;
+function iB() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, I.useState)({
height: 0,
left: 0,
@@ -47424,7 +47389,7 @@ function aB() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > iB || Math.abs(i.left - t.left) > iB || Math.abs(i.top - t.top) > iB || Math.abs(i.width - t.width) > iB) && n({
+ (Math.abs(i.height - t.height) > rB || Math.abs(i.left - t.left) > rB || Math.abs(i.top - t.top) > rB || Math.abs(i.width - t.width) > rB) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -47441,26 +47406,26 @@ function aB() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function oB(e) {
+function aB(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 sB = typeof Symbol == "function" && Symbol.observable || "@@observable", cB = () => Math.random().toString(36).substring(7).split("").join("."), lB = {
- INIT: `@@redux/INIT${/* @__PURE__ */ cB()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ cB()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${cB()}`
+var oB = typeof Symbol == "function" && Symbol.observable || "@@observable", sB = () => Math.random().toString(36).substring(7).split("").join("."), cB = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ sB()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ sB()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${sB()}`
};
-function uB(e) {
+function lB(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 dB(e, t, n) {
- if (typeof e != "function") throw Error(oB(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(oB(0));
+function uB(e, t, n) {
+ if (typeof e != "function") throw Error(aB(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(aB(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(oB(1));
- return n(dB)(e, t);
+ if (typeof n != "function") throw Error(aB(1));
+ return n(uB)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -47469,27 +47434,27 @@ function dB(e, t, n) {
}));
}
function u() {
- if (c) throw Error(oB(3));
+ if (c) throw Error(aB(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(oB(4));
- if (c) throw Error(oB(5));
+ if (typeof e != "function") throw Error(aB(4));
+ if (c) throw Error(aB(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(oB(6));
+ if (c) throw Error(aB(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!uB(e)) throw Error(oB(7));
- if (e.type === void 0) throw Error(oB(8));
- if (typeof e.type != "string") throw Error(oB(17));
- if (c) throw Error(oB(9));
+ if (!lB(e)) throw Error(aB(7));
+ if (e.type === void 0) throw Error(aB(8));
+ if (typeof e.type != "string") throw Error(aB(17));
+ if (c) throw Error(aB(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -47500,41 +47465,41 @@ function dB(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(oB(10));
- r = e, f({ type: lB.REPLACE });
+ if (typeof e != "function") throw Error(aB(10));
+ r = e, f({ type: cB.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(oB(11));
+ if (typeof t != "object" || !t) throw Error(aB(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [sB]() {
+ [oB]() {
return this;
}
};
}
- return f({ type: lB.INIT }), {
+ return f({ type: cB.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [sB]: m
+ [oB]: m
};
}
function mpe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: lB.INIT }) === void 0) throw Error(oB(12));
- if (n(void 0, { type: lB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(oB(13));
+ if (n(void 0, { type: cB.INIT }) === void 0) throw Error(aB(12));
+ if (n(void 0, { type: cB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(aB(13));
});
}
-function fB(e) {
+function dB(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -47551,124 +47516,124 @@ function fB(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(oB(14));
+ if (u === void 0) throw t && t.type, Error(aB(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function pB(...e) {
+function fB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
function hpe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(oB(15));
+ throw Error(aB(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = pB(...e.map((e) => e(o)))(i.dispatch), {
+ return a = fB(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function mB(e) {
- return uB(e) && "type" in e && typeof e.type == "string";
+function pB(e) {
+ return lB(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var hB = Symbol.for("immer-nothing"), gB = Symbol.for("immer-draftable"), _B = Symbol.for("immer-state");
-function vB(e, ...t) {
+var mB = Symbol.for("immer-nothing"), hB = Symbol.for("immer-draftable"), gB = Symbol.for("immer-state");
+function _B(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var yB = Object, bB = yB.getPrototypeOf, xB = "constructor", SB = "prototype", CB = "configurable", wB = "enumerable", TB = "writable", EB = "value", DB = (e) => !!e && !!e[_B];
-function OB(e) {
- return e ? AB(e) || IB(e) || !!e[gB] || !!e[xB]?.[gB] || LB(e) || RB(e) : !1;
+var vB = Object, yB = vB.getPrototypeOf, bB = "constructor", xB = "prototype", SB = "configurable", CB = "enumerable", wB = "writable", TB = "value", EB = (e) => !!e && !!e[gB];
+function DB(e) {
+ return e ? kB(e) || FB(e) || !!e[hB] || !!e[bB]?.[hB] || IB(e) || LB(e) : !1;
}
-var gpe = yB[SB][xB].toString(), kB = /* @__PURE__ */ new WeakMap();
-function AB(e) {
- if (!e || !zB(e)) return !1;
- let t = bB(e);
- if (t === null || t === yB[SB]) return !0;
- let n = yB.hasOwnProperty.call(t, xB) && t[xB];
+var gpe = vB[xB][bB].toString(), OB = /* @__PURE__ */ new WeakMap();
+function kB(e) {
+ if (!e || !RB(e)) return !1;
+ let t = yB(e);
+ if (t === null || t === vB[xB]) return !0;
+ let n = vB.hasOwnProperty.call(t, bB) && t[bB];
if (n === Object) return !0;
- if (!BB(n)) return !1;
- let r = kB.get(n);
- return r === void 0 && (r = Function.toString.call(n), kB.set(n, r)), r === gpe;
+ if (!zB(n)) return !1;
+ let r = OB.get(n);
+ return r === void 0 && (r = Function.toString.call(n), OB.set(n, r)), r === gpe;
}
-function jB(e, t, n = !0) {
- MB(e) === 0 ? (n ? Reflect.ownKeys(e) : yB.keys(e)).forEach((n) => {
+function AB(e, t, n = !0) {
+ jB(e) === 0 ? (n ? Reflect.ownKeys(e) : vB.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function MB(e) {
- let t = e[_B];
- return t ? t.type_ : IB(e) ? 1 : LB(e) ? 2 : RB(e) ? 3 : 0;
+function jB(e) {
+ let t = e[gB];
+ return t ? t.type_ : FB(e) ? 1 : IB(e) ? 2 : LB(e) ? 3 : 0;
}
-var NB = (e, t, n = MB(e)) => n === 2 ? e.has(t) : yB[SB].hasOwnProperty.call(e, t), PB = (e, t, n = MB(e)) => n === 2 ? e.get(t) : e[t], FB = (e, t, n, r = MB(e)) => {
+var MB = (e, t, n = jB(e)) => n === 2 ? e.has(t) : vB[xB].hasOwnProperty.call(e, t), NB = (e, t, n = jB(e)) => n === 2 ? e.get(t) : e[t], PB = (e, t, n, r = jB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
function _pe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var IB = Array.isArray, LB = (e) => e instanceof Map, RB = (e) => e instanceof Set, zB = (e) => typeof e == "object", BB = (e) => typeof e == "function", VB = (e) => typeof e == "boolean";
+var FB = Array.isArray, IB = (e) => e instanceof Map, LB = (e) => e instanceof Set, RB = (e) => typeof e == "object", zB = (e) => typeof e == "function", BB = (e) => typeof e == "boolean";
function vpe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var HB = (e) => e.copy_ || e.base_, UB = (e) => e.modified_ ? e.copy_ : e.base_;
-function WB(e, t) {
- if (LB(e)) return new Map(e);
- if (RB(e)) return new Set(e);
- if (IB(e)) return Array[SB].slice.call(e);
- let n = AB(e);
+var VB = (e) => e.copy_ || e.base_, HB = (e) => e.modified_ ? e.copy_ : e.base_;
+function UB(e, t) {
+ if (IB(e)) return new Map(e);
+ if (LB(e)) return new Set(e);
+ if (FB(e)) return Array[xB].slice.call(e);
+ let n = kB(e);
if (t === !0 || t === "class_only" && !n) {
- let t = yB.getOwnPropertyDescriptors(e);
- delete t[_B];
+ let t = vB.getOwnPropertyDescriptors(e);
+ delete t[gB];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[TB] === !1 && (a[TB] = !0, a[CB] = !0), (a.get || a.set) && (t[i] = {
- [CB]: !0,
- [TB]: !0,
- [wB]: a[wB],
- [EB]: e[i]
+ a[wB] === !1 && (a[wB] = !0, a[SB] = !0), (a.get || a.set) && (t[i] = {
+ [SB]: !0,
+ [wB]: !0,
+ [CB]: a[CB],
+ [TB]: e[i]
});
}
- return yB.create(bB(e), t);
+ return vB.create(yB(e), t);
}
{
- let t = bB(e);
+ let t = yB(e);
if (t !== null && n) return { ...e };
- let r = yB.create(t);
- return yB.assign(r, e);
- }
-}
-function GB(e, t = !1) {
- return qB(e) || DB(e) || !OB(e) ? e : (MB(e) > 1 && yB.defineProperties(e, {
- set: KB,
- add: KB,
- clear: KB,
- delete: KB
- }), yB.freeze(e), t && jB(e, (e, t) => {
- GB(t, !0);
+ let r = vB.create(t);
+ return vB.assign(r, e);
+ }
+}
+function WB(e, t = !1) {
+ return KB(e) || EB(e) || !DB(e) ? e : (jB(e) > 1 && vB.defineProperties(e, {
+ set: GB,
+ add: GB,
+ clear: GB,
+ delete: GB
+ }), vB.freeze(e), t && AB(e, (e, t) => {
+ WB(t, !0);
}, !1), e);
}
function ype() {
- vB(2);
+ _B(2);
}
-var KB = { [EB]: ype };
-function qB(e) {
- return e === null || !zB(e) || yB.isFrozen(e);
+var GB = { [TB]: ype };
+function KB(e) {
+ return e === null || !RB(e) || vB.isFrozen(e);
}
-var JB = "MapSet", YB = "Patches", XB = "ArrayMethods", ZB = {};
-function QB(e) {
- let t = ZB[e];
- return t || vB(0, e), t;
+var qB = "MapSet", JB = "Patches", YB = "ArrayMethods", XB = {};
+function ZB(e) {
+ let t = XB[e];
+ return t || _B(0, e), t;
}
-var $B = (e) => !!ZB[e], eV, tV = () => eV, bpe = (e, t) => ({
+var QB = (e) => !!XB[e], $B, eV = () => $B, bpe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -47676,114 +47641,114 @@ var $B = (e) => !!ZB[e], eV, tV = () => eV, bpe = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: $B(JB) ? QB(JB) : void 0,
- arrayMethodsPlugin_: $B(XB) ? QB(XB) : void 0
+ mapSetPlugin_: QB(qB) ? ZB(qB) : void 0,
+ arrayMethodsPlugin_: QB(YB) ? ZB(YB) : void 0
});
-function nV(e, t) {
- t && (e.patchPlugin_ = QB(YB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function tV(e, t) {
+ t && (e.patchPlugin_ = ZB(JB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function rV(e) {
- iV(e), e.drafts_.forEach(xpe), e.drafts_ = null;
+function nV(e) {
+ rV(e), e.drafts_.forEach(xpe), e.drafts_ = null;
}
-function iV(e) {
- e === eV && (eV = e.parent_);
+function rV(e) {
+ e === $B && ($B = e.parent_);
}
-var aV = (e) => eV = bpe(eV, e);
+var iV = (e) => $B = bpe($B, e);
function xpe(e) {
- let t = e[_B];
+ let t = e[gB];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function oV(e, t) {
+function aV(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[_B].modified_ && (rV(t), vB(4)), OB(e) && (e = sV(t, e));
+ n[gB].modified_ && (nV(t), _B(4)), DB(e) && (e = oV(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[_B].base_, e, t);
- } else e = sV(t, n);
- return Spe(t, e, !0), rV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === hB ? void 0 : e;
-}
-function sV(e, t) {
- if (qB(t)) return t;
- let n = t[_B];
- if (!n) return fV(t, e.handledSet_, e);
- if (!lV(n, e)) return t;
+ r && r.generateReplacementPatches_(n[gB].base_, e, t);
+ } else e = oV(t, n);
+ return Spe(t, e, !0), nV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mB ? void 0 : e;
+}
+function oV(e, t) {
+ if (KB(t)) return t;
+ let n = t[gB];
+ if (!n) return dV(t, e.handledSet_, e);
+ if (!cV(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);
- dV(n, e);
+ uV(n, e);
}
return n.copy_;
}
function Spe(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && GB(t, n);
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && WB(t, n);
}
-function cV(e) {
+function sV(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var lV = (e, t) => e.scope_ === t, Cpe = [];
-function uV(e, t, n, r) {
- let i = HB(e), a = e.type_;
- if (r !== void 0 && PB(i, r, a) === t) {
- FB(i, r, n, a);
+var cV = (e, t) => e.scope_ === t, Cpe = [];
+function lV(e, t, n, r) {
+ let i = VB(e), a = e.type_;
+ if (r !== void 0 && NB(i, r, a) === t) {
+ PB(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- jB(i, (e, n) => {
- if (DB(n)) {
+ AB(i, (e, n) => {
+ if (EB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
let o = e.draftLocations_.get(t) ?? Cpe;
- for (let e of o) FB(i, e, n, a);
+ for (let e of o) PB(i, e, n, a);
}
function wpe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !lV(i, r)) return;
+ if (!i || !cV(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = UB(i);
- uV(e, i.draft_ ?? i, a, n), dV(i, r);
+ let a = HB(i);
+ lV(e, i.draft_ ?? i, a, n), uV(i, r);
});
}
-function dV(e, t) {
+function uV(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);
}
- cV(e);
+ sV(e);
}
}
function Tpe(e, t, n) {
let { scope_: r } = e;
- if (DB(n)) {
- let i = n[_B];
- lV(i, r) && i.callbacks_.push(function() {
- vV(e), uV(e, n, UB(i), t);
+ if (EB(n)) {
+ let i = n[gB];
+ cV(i, r) && i.callbacks_.push(function() {
+ _V(e), lV(e, n, HB(i), t);
});
- } else OB(n) && e.callbacks_.push(function() {
- let i = HB(e);
- e.type_ === 3 ? i.has(n) && fV(n, r.handledSet_, r) : PB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && fV(PB(e.copy_, t, e.type_), r.handledSet_, r);
+ } else DB(n) && e.callbacks_.push(function() {
+ let i = VB(e);
+ e.type_ === 3 ? i.has(n) && dV(n, r.handledSet_, r) : NB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && dV(NB(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function fV(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || DB(e) || t.has(e) || !OB(e) || qB(e) ? e : (t.add(e), jB(e, (r, i) => {
- if (DB(i)) {
- let t = i[_B];
- lV(t, n) && (FB(e, r, UB(t), e.type_), cV(t));
- } else OB(i) && fV(i, t, n);
+function dV(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || EB(e) || t.has(e) || !DB(e) || KB(e) ? e : (t.add(e), AB(e, (r, i) => {
+ if (EB(i)) {
+ let t = i[gB];
+ cV(t, n) && (PB(e, r, HB(t), e.type_), sV(t));
+ } else DB(i) && dV(i, t, n);
}), e);
}
function Epe(e, t) {
- let n = IB(e), r = {
+ let n = FB(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : tV(),
+ scope_: t ? t.scope_ : eV(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -47794,108 +47759,108 @@ function Epe(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = pV;
- n && (i = [r], a = mV);
+ }, i = r, a = fV;
+ n && (i = [r], a = pV);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var pV = {
+var fV = {
get(e, t) {
- if (t === _B) return e;
+ if (t === gB) 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 = HB(e);
- if (!NB(i, t, e.type_)) return Ope(e, i, t);
+ let i = VB(e);
+ if (!MB(i, t, e.type_)) return Ope(e, i, t);
let a = i[t];
- if (e.finalized_ || !OB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && vpe(t)) return a;
- if (a === hV(e.base_, t) || Dpe(e, t, a)) {
- vV(e);
- let n = e.type_ === 1 ? +t : t, r = yV(e.scope_, a, e, n);
+ if (e.finalized_ || !DB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && vpe(t)) return a;
+ if (a === mV(e.base_, t) || Dpe(e, t, a)) {
+ _V(e);
+ let n = e.type_ === 1 ? +t : t, r = vV(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in HB(e);
+ return t in VB(e);
},
ownKeys(e) {
- return Reflect.ownKeys(HB(e));
+ return Reflect.ownKeys(VB(e));
},
set(e, t, n) {
- let r = gV(HB(e), t);
+ let r = hV(VB(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = hV(HB(e), t), i = r?.[_B];
+ let r = mV(VB(e), t), i = r?.[gB];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (_pe(n, r) && (n !== void 0 || NB(e.base_, t, e.type_))) return !0;
- vV(e), _V(e);
+ if (_pe(n, r) && (n !== void 0 || MB(e.base_, t, e.type_))) return !0;
+ _V(e), gV(e);
}
- return e.copy_[t] === n && (n !== void 0 || NB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Tpe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || MB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Tpe(e, t, n), !0);
},
deleteProperty(e, t) {
- return vV(e), hV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), _V(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return _V(e), mV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), gV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = HB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = VB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [TB]: !0,
- [CB]: e.type_ !== 1 || t !== "length",
- [wB]: r[wB],
- [EB]: n[t]
+ [wB]: !0,
+ [SB]: e.type_ !== 1 || t !== "length",
+ [CB]: r[CB],
+ [TB]: n[t]
};
},
defineProperty() {
- vB(11);
+ _B(11);
},
getPrototypeOf(e) {
- return bB(e.base_);
+ return yB(e.base_);
},
setPrototypeOf() {
- vB(12);
+ _B(12);
}
-}, mV = {};
-for (let e in pV) {
- let t = pV[e];
- mV[e] = function() {
+}, pV = {};
+for (let e in fV) {
+ let t = fV[e];
+ pV[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-mV.deleteProperty = function(e, t) {
- return mV.set.call(this, e, t, void 0);
-}, mV.set = function(e, t, n) {
- return pV.set.call(this, e[0], t, n, e[0]);
+pV.deleteProperty = function(e, t) {
+ return pV.set.call(this, e, t, void 0);
+}, pV.set = function(e, t, n) {
+ return fV.set.call(this, e[0], t, n, e[0]);
};
-function hV(e, t) {
- let n = e[_B];
- return (n ? HB(n) : e)[t];
+function mV(e, t) {
+ let n = e[gB];
+ return (n ? VB(n) : e)[t];
}
function Dpe(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !OB(n) || n[_B] ? !1 : e.baseRefs_.has(n);
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DB(n) || n[gB] ? !1 : e.baseRefs_.has(n);
}
function Ope(e, t, n) {
- let r = gV(t, n);
- return r ? EB in r ? r[EB] : r.get?.call(e.draft_) : void 0;
+ let r = hV(t, n);
+ return r ? TB in r ? r[TB] : r.get?.call(e.draft_) : void 0;
}
-function gV(e, t) {
+function hV(e, t) {
if (!(t in e)) return;
- let n = bB(e);
+ let n = yB(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = bB(n);
+ n = yB(n);
}
}
-function _V(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && _V(e.parent_));
+function gV(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && gV(e.parent_));
}
-function vV(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), WB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function _V(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), UB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
var kpe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (BB(e) && !BB(t)) {
+ if (zB(e) && !zB(t)) {
let n = t;
t = e;
let r = this;
@@ -47903,30 +47868,30 @@ var kpe = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- BB(t) || vB(6), n !== void 0 && !BB(n) && vB(7);
+ zB(t) || _B(6), n !== void 0 && !zB(n) && _B(7);
let r;
- if (OB(e)) {
- let i = aV(this), a = yV(i, e, void 0), o = !0;
+ if (DB(e)) {
+ let i = iV(this), a = vV(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? rV(i) : iV(i);
+ o ? nV(i) : rV(i);
}
- return nV(i, n), oV(r, i);
+ return tV(i, n), aV(r, i);
}
- if (!e || !zB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === hB && (r = void 0), this.autoFreeze_ && GB(r, !0), n) {
+ if (!e || !RB(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === mB && (r = void 0), this.autoFreeze_ && WB(r, !0), n) {
let t = [], i = [];
- QB(YB).generateReplacementPatches_(e, r, {
+ ZB(JB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- vB(1, e);
+ _B(1, e);
}, this.produceWithPatches = (e, t) => {
- if (BB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (zB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -47935,18 +47900,18 @@ var kpe = class {
n,
r
];
- }, VB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), VB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), VB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, BB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), BB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), BB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- OB(e) || vB(8), DB(e) && (e = bV(e));
- let t = aV(this), n = yV(t, e, void 0);
- return n[_B].isManual_ = !0, iV(t), n;
+ DB(e) || _B(8), EB(e) && (e = yV(e));
+ let t = iV(this), n = vV(t, e, void 0);
+ return n[gB].isManual_ = !0, rV(t), n;
}
finishDraft(e, t) {
- let n = e && e[_B];
- (!n || !n.isManual_) && vB(9);
+ let n = e && e[gB];
+ (!n || !n.isManual_) && _B(9);
let { scope_: r } = n;
- return nV(r, t), oV(void 0, r);
+ return tV(r, t), aV(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -47970,48 +47935,48 @@ var kpe = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = QB(YB).applyPatches_;
- return DB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = ZB(JB).applyPatches_;
+ return EB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function yV(e, t, n, r) {
- let [i, a] = LB(t) ? QB(JB).proxyMap_(t, n) : RB(t) ? QB(JB).proxySet_(t, n) : Epe(t, n);
- return (n?.scope_ ?? tV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? wpe(n, a, r) : a.callbacks_.push(function(e) {
+function vV(e, t, n, r) {
+ let [i, a] = IB(t) ? ZB(qB).proxyMap_(t, n) : LB(t) ? ZB(qB).proxySet_(t, n) : Epe(t, n);
+ return (n?.scope_ ?? eV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? wpe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function bV(e) {
- return DB(e) || vB(10, e), xV(e);
+function yV(e) {
+ return EB(e) || _B(10, e), bV(e);
}
-function xV(e) {
- if (!OB(e) || qB(e)) return e;
- let t = e[_B], n, r = !0;
+function bV(e) {
+ if (!DB(e) || KB(e)) return e;
+ let t = e[gB], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = WB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = WB(e, !0);
- return jB(n, (e, t) => {
- FB(n, e, xV(t));
+ t.finalized_ = !0, n = UB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = UB(e, !0);
+ return AB(n, (e, t) => {
+ PB(n, e, bV(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var SV = new kpe().produce;
+var xV = new kpe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function CV(e) {
+function SV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var Ape = CV(), jpe = CV, Mpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? pB : pB.apply(null, arguments);
+var Ape = SV(), jpe = SV, Mpe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? fB : fB.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function wV(e, t) {
+function CV(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(NH(0));
+ if (!r) throw Error(MH(0));
return {
type: e,
payload: r.payload,
@@ -48024,9 +47989,9 @@ function wV(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => mB(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => pB(t) && t.type === e, n;
}
-var TV = class e extends Array {
+var wV = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -48040,29 +48005,29 @@ var TV = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function EV(e) {
- return OB(e) ? SV(e, () => {}) : e;
+function TV(e) {
+ return DB(e) ? xV(e, () => {}) : e;
}
-function DV(e, t, n) {
+function EV(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function OV(e) {
+function DV(e) {
return typeof e == "boolean";
}
-var kV = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new TV();
- return t && (OV(t) ? a.push(Ape) : a.push(jpe(t.extraArgument))), a;
-}, AV = "RTK_autoBatch", jV = () => (e) => ({
+var OV = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wV();
+ return t && (DV(t) ? a.push(Ape) : a.push(jpe(t.extraArgument))), a;
+}, kV = "RTK_autoBatch", AV = () => (e) => ({
payload: e,
- meta: { [AV]: !0 }
-}), MV = (e) => (t) => {
+ meta: { [kV]: !0 }
+}), jV = (e) => (t) => {
setTimeout(t, e);
-}, NV = (e, t) => (n) => {
+}, MV = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, PV = (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 ? NV(window.requestAnimationFrame, 100) : MV(10) : e.type === "callback" ? e.queueNotification : MV(e.timeout), l = () => {
+}, NV = (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 ? MV(window.requestAnimationFrame, 100) : jV(10) : e.type === "callback" ? e.queueNotification : jV(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -48074,37 +48039,37 @@ var kV = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[AV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[kV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, FV = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new TV(e);
- return n && r.push(PV(typeof n == "object" ? n : void 0)), r;
+}, PV = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new wV(e);
+ return n && r.push(NV(typeof n == "object" ? n : void 0)), r;
};
-function IV(e) {
- let t = kV(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function FV(e) {
+ let t = OV(), { 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 (uB(n)) c = fB(n);
- else throw Error(NH(1));
+ else if (lB(n)) c = dB(n);
+ else throw Error(MH(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = pB;
+ let u = fB;
i && (u = Mpe({
trace: !1,
...typeof i == "object" && i
}));
- let d = FV(hpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return dB(c, o, p);
+ let d = PV(hpe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return uB(c, o, p);
}
-function LV(e) {
+function IV(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(NH(28));
- if (r in t) throw Error(NH(29));
+ if (!r) throw Error(MH(28));
+ if (r in t) throw Error(MH(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -48129,25 +48094,25 @@ function LV(e) {
r
];
}
-function RV(e) {
+function LV(e) {
return typeof e == "function";
}
-function zV(e, t) {
- let [n, r, i] = LV(t), a;
- if (RV(e)) a = () => EV(e());
+function RV(e, t) {
+ let [n, r, i] = IV(t), a;
+ if (LV(e)) a = () => TV(e());
else {
- let t = EV(e);
+ let t = TV(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 (DB(e)) {
+ if (EB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (OB(e)) return SV(e, (e) => n(e, t));
+ if (DB(e)) return xV(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -48162,20 +48127,20 @@ function zV(e, t) {
}
return o.getInitialState = a, o;
}
-var BV = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", VV = (e = 21) => {
+var zV = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", BV = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += BV[Math.random() * 64 | 0];
+ for (; n--;) t += zV[Math.random() * 64 | 0];
return t;
-}, HV = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function UV(e, t) {
+}, VV = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function HV(e, t) {
return `${e}/${t}`;
}
-function WV({ creators: e } = {}) {
- let t = e?.asyncThunk?.[HV];
+function UV({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[VV];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(NH(11));
- let i = (typeof e.reducers == "function" ? e.reducers(qV()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(MH(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(KV()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -48183,8 +48148,8 @@ function WV({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(NH(12));
- if (n in o.sliceCaseReducersByType) throw Error(NH(13));
+ if (!n) throw Error(MH(12));
+ if (n in o.sliceCaseReducersByType) throw Error(MH(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -48203,17 +48168,17 @@ function WV({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: UV(n, r),
+ type: HV(n, r),
createNotation: typeof e.reducers == "function"
};
- YV(a) ? ZV(o, a, s, t) : JV(o, a, s);
+ JV(a) ? XV(o, a, s, t) : qV(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? LV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? IV(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return zV(e.initialState, (e) => {
+ return RV(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);
@@ -48230,12 +48195,12 @@ function WV({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = DV(d, r, m)), i;
+ return i === void 0 && n && (i = EV(d, r, m)), i;
}
function i(t = l) {
- return DV(DV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return EV(EV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = GV(a, t, () => DV(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = WV(a, t, () => EV(d, t, m), n);
return r;
});
}
@@ -48269,15 +48234,15 @@ function WV({ creators: e } = {}) {
return g;
};
}
-function GV(e, t, n, r) {
+function WV(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 KV = /* @__PURE__ */ WV();
-function qV() {
+var GV = /* @__PURE__ */ UV();
+function KV() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -48301,57 +48266,57 @@ function qV() {
asyncThunk: e
};
}
-function JV({ type: e, reducerName: t, createNotation: n }, r, i) {
+function qV({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !XV(r)) throw Error(NH(17));
+ if (n && !YV(r)) throw Error(MH(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? wV(e, o) : wV(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? CV(e, o) : CV(e));
}
-function YV(e) {
+function JV(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function XV(e) {
+function YV(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function ZV({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(NH(18));
+function XV({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(MH(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 || QV,
- pending: s || QV,
- rejected: c || QV,
- settled: l || QV
+ fulfilled: o || ZV,
+ pending: s || ZV,
+ rejected: c || ZV,
+ settled: l || ZV
});
}
-function QV() {}
-var $V = "task", eH = "listener", tH = "completed", nH = "cancelled", rH = `task-${nH}`, iH = `task-${tH}`, aH = `${eH}-${nH}`, oH = `${eH}-${tH}`, sH = class {
+function ZV() {}
+var QV = "task", $V = "listener", eH = "completed", tH = "cancelled", nH = `task-${tH}`, rH = `task-${eH}`, iH = `${$V}-${tH}`, aH = `${$V}-${eH}`, oH = class {
constructor(e) {
- this.code = e, this.message = `${$V} ${nH} (reason: ${e})`;
+ this.code = e, this.message = `${QV} ${tH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, cH = (e, t) => {
- if (typeof e != "function") throw TypeError(NH(32));
-}, lH = () => {}, uH = (e, t = lH) => (e.catch(t), e), dH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), fH = (e) => {
- if (e.aborted) throw new sH(e.reason);
+}, sH = (e, t) => {
+ if (typeof e != "function") throw TypeError(MH(32));
+}, cH = () => {}, lH = (e, t = cH) => (e.catch(t), e), uH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), dH = (e) => {
+ if (e.aborted) throw new oH(e.reason);
};
-function pH(e, t) {
- let n = lH;
+function fH(e, t) {
+ let n = cH;
return new Promise((r, i) => {
- let a = () => i(new sH(e.reason));
+ let a = () => i(new oH(e.reason));
if (e.aborted) {
a();
return;
}
- n = dH(e, a), t.finally(() => n()).then(r, i);
+ n = uH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = lH;
+ n = cH;
});
}
-var mH = async (e, t) => {
+var pH = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -48359,40 +48324,40 @@ var mH = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof sH ? "cancelled" : "rejected",
+ status: e instanceof oH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, hH = (e) => (t) => uH(pH(e, t).then((t) => (fH(e), t))), gH = (e) => {
- let t = hH(e);
+}, mH = (e) => (t) => lH(fH(e, t).then((t) => (dH(e), t))), hH = (e) => {
+ let t = mH(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: _H } = Object, vH = {}, yH = "listenerMiddleware", bH = (e, t) => {
- let n = (t) => dH(e, () => t.abort(e.reason));
+}, { assign: gH } = Object, _H = {}, vH = "listenerMiddleware", yH = (e, t) => {
+ let n = (t) => uH(e, () => t.abort(e.reason));
return (r, i) => {
- cH(r, "taskExecutor");
+ sH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = mH(async () => {
- fH(e), fH(a.signal);
+ let o = pH(async () => {
+ dH(e), dH(a.signal);
let t = await r({
- pause: hH(a.signal),
- delay: gH(a.signal),
+ pause: mH(a.signal),
+ delay: hH(a.signal),
signal: a.signal
});
- return fH(a.signal), t;
- }, () => a.abort(iH));
- return i?.autoJoin && t.push(o.catch(lH)), {
- result: hH(e)(o),
+ return dH(a.signal), t;
+ }, () => a.abort(rH));
+ return i?.autoJoin && t.push(o.catch(cH)), {
+ result: mH(e)(o),
cancel() {
- a.abort(rH);
+ a.abort(nH);
}
};
};
-}, xH = (e, t) => {
+}, bH = (e, t) => {
let n = async (n, r) => {
- fH(t);
+ dH(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -48410,47 +48375,47 @@ var mH = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await pH(t, Promise.race(a));
- return fH(t), e;
+ let e = await fH(t, Promise.race(a));
+ return dH(t), e;
} finally {
i();
}
};
- return ((e, t) => uH(n(e, t)));
-}, SH = (e) => {
+ return ((e, t) => lH(n(e, t)));
+}, xH = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = wV(t).match;
+ if (t) i = CV(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(NH(21));
- return cH(a, "options.listener"), {
+ else if (!i) throw Error(MH(21));
+ return sH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, CH = /* @__PURE__ */ _H((e) => {
- let { type: t, predicate: n, effect: r } = SH(e);
+}, SH = /* @__PURE__ */ gH((e) => {
+ let { type: t, predicate: n, effect: r } = xH(e);
return {
- id: VV(),
+ id: BV(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(NH(22));
+ throw Error(MH(22));
}
};
-}, { withTypes: () => CH }), wH = (e, t) => {
- let { type: n, effect: r, predicate: i } = SH(t);
+}, { withTypes: () => SH }), CH = (e, t) => {
+ let { type: n, effect: r, predicate: i } = xH(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, TH = (e) => {
+}, wH = (e) => {
e.pending.forEach((e) => {
- e.abort(aH);
+ e.abort(iH);
});
-}, EH = (e, t) => () => {
- for (let e of t.keys()) TH(e);
+}, TH = (e, t) => () => {
+ for (let e of t.keys()) wH(e);
e.clear();
-}, DH = (e, t, n) => {
+}, EH = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -48458,74 +48423,74 @@ var mH = async (e, t) => {
throw e;
}, 0);
}
-}, OH = /* @__PURE__ */ _H(/* @__PURE__ */ wV(`${yH}/add`), { withTypes: () => OH }), kH = /* @__PURE__ */ wV(`${yH}/removeAll`), AH = /* @__PURE__ */ _H(/* @__PURE__ */ wV(`${yH}/remove`), { withTypes: () => AH }), jH = (...e) => {
- console.error(`${yH}/error`, ...e);
-}, MH = (e = {}) => {
+}, DH = /* @__PURE__ */ gH(/* @__PURE__ */ CV(`${vH}/add`), { withTypes: () => DH }), OH = /* @__PURE__ */ CV(`${vH}/removeAll`), kH = /* @__PURE__ */ gH(/* @__PURE__ */ CV(`${vH}/remove`), { withTypes: () => kH }), AH = (...e) => {
+ console.error(`${vH}/error`, ...e);
+}, jH = (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 = jH } = e;
- cH(o, "onError");
+ }, { extra: a, onError: o = AH } = e;
+ sH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && TH(e);
+ e.unsubscribe(), t?.cancelActive && wH(e);
}), c = ((e) => {
- let n = wH(t, e) ?? CH(e);
+ let n = CH(t, e) ?? SH(e);
return s(n);
});
- _H(c, { withTypes: () => c });
+ gH(c, { withTypes: () => c });
let l = (e) => {
- let n = wH(t, e);
- return n && (n.unsubscribe(), e.cancelActive && TH(n)), !!n;
+ let n = CH(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && wH(n)), !!n;
};
- _H(l, { withTypes: () => l });
+ gH(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = xH(c, u.signal), f = [];
+ let u = new AbortController(), d = bH(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, _H({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, gH({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: gH(u.signal),
- pause: hH(u.signal),
+ delay: hH(u.signal),
+ pause: mH(u.signal),
extra: a,
signal: u.signal,
- fork: bH(u.signal, f),
+ fork: yH(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(aH), n.delete(e));
+ e !== u && (e.abort(iH), n.delete(e));
});
},
cancel: () => {
- u.abort(aH), e.pending.delete(u);
+ u.abort(iH), e.pending.delete(u);
},
throwIfCancelled: () => {
- fH(u.signal);
+ dH(u.signal);
}
})));
} catch (e) {
- e instanceof sH || DH(o, e, { raisedBy: "effect" });
+ e instanceof oH || EH(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(oH), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(aH), i(e), e.pending.delete(u);
}
- }, d = EH(t, n);
+ }, d = TH(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!mB(r)) return n(r);
- if (OH.match(r)) return c(r.payload);
- if (kH.match(r)) {
+ if (!pB(r)) return n(r);
+ if (DH.match(r)) return c(r.payload);
+ if (OH.match(r)) {
d();
return;
}
- if (AH.match(r)) return l(r.payload);
+ if (kH.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === vH) throw Error(NH(23));
+ if (i === _H) throw Error(MH(23));
return i;
}, s;
try {
@@ -48536,13 +48501,13 @@ var mH = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, DH(o, e, { raisedBy: "predicate" });
+ s = !1, EH(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = vH;
+ i = _H;
}
return s;
},
@@ -48551,12 +48516,12 @@ var mH = async (e, t) => {
clearListeners: d
};
};
-function NH(e) {
+function MH(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 PH = KV({
+var NH = GV({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -48584,23 +48549,23 @@ var PH = KV({
e.scale = t.payload;
}
}
-}), { setMargin: FH, setLayout: IH, setChartSize: LH, setScale: RH } = PH.actions, zH = PH.reducer;
+}), { setMargin: PH, setLayout: FH, setChartSize: IH, setScale: LH } = NH.actions, RH = NH.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function BH(e, t, n) {
+function zH(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 VH(e) {
+function BH(e) {
return Number.isFinite(e);
}
-function HH(e) {
+function VH(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function UH(e, t) {
+function HH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48610,30 +48575,30 @@ function UH(e, t) {
}
return n;
}
-function WH(e) {
+function UH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UH(Object(n), !0).forEach(function(t) {
- GH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UH(Object(n)).forEach(function(t) {
+ t % 2 ? HH(Object(n), !0).forEach(function(t) {
+ WH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GH(e, t, n) {
- return (t = KH(t)) in e ? Object.defineProperty(e, t, {
+function WH(e, t, n) {
+ return (t = GH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KH(e) {
- var t = qH(e, "string");
+function GH(e) {
+ var t = KH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qH(e, t) {
+function KH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48643,63 +48608,63 @@ function qH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function JH(e, t, n) {
- return cz(e) || cz(t) ? n : nz(t) ? XR(e, t, n) : typeof t == "function" ? t(e) : n;
+function qH(e, t, n) {
+ return sz(e) || sz(t) ? n : tz(t) ? YR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var YH = (e, t, n) => {
+var JH = (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 WH(WH({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return WH(WH({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return UH(UH({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return UH(UH({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, XH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", ZH = (e, t, n, r) => {
+}, YH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", XH = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
-}, QH = (e, t, n) => {
+}, ZH = (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 ? $R(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? QR(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 VH(i) ? {
+ return BH(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(uz) : c && l ? l.map((e, t) => {
+ }).filter(lz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(uz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(lz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(uz) : o.domain().map((e, t) => {
+ }).filter(lz) : o.domain().map((e, t) => {
var n = o.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(uz);
-}, $H = (e, t) => {
+ }).filter(lz);
+}, QH = (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;
-}, eU = {
+}, $H = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -48707,14 +48672,14 @@ var YH = (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 = ez(c) ? l : c;
+ var c = s[1], l = s[0], u = $R(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
expand: Dde,
- none: HR,
+ none: VR,
silhouette: Ode,
wiggle: kde,
positive: (e) => {
@@ -48724,70 +48689,70 @@ var YH = (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 = ez(o[1]) ? o[0] : o[1];
+ var s = $R(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, tU = (e, t, n) => {
- var r = eU[n] ?? HR, i = Ede().keys(t).value((e, t) => Number(JH(e, t, 0))).order(UR).offset(r)(e);
+}, eU = (e, t, n) => {
+ var r = $H[n] ?? VR, i = Ede().keys(t).value((e, t) => Number(qH(e, t, 0))).order(HR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = JH(e[i], t[r], 0);
+ var a = qH(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 nU(e) {
+function tU(e) {
return e == null ? void 0 : String(e);
}
-function rU(e) {
+function nU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !cz(i[t.dataKey])) {
- var s = sz(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !sz(i[t.dataKey])) {
+ var s = oz(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 = JH(i, cz(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = qH(i, sz(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var iU = (e) => {
+var rU = (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 = JH(a, t.dataKey, t.scale.domain()[o]);
- if (cz(s)) return null;
+ var s = qH(a, t.dataKey, t.scale.domain()[o]);
+ if (sz(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, aU = (e) => {
+}, iU = (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];
-}, oU = (e) => {
+}, aU = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, sU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], cU = (e, t, n) => {
- if (e != null) return sU(Object.keys(e).reduce((r, i) => {
+}, oU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], sU = (e, t, n) => {
+ if (e != null) return oU(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 = oU(BH(r, t, n));
- return !VH(i[0]) || !VH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = aU(zH(r, t, n));
+ return !BH(i[0]) || !BH(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]));
-}, lU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, dU = (e, t, n) => {
+}, cU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, lU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, uU = (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 = nB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = tB(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);
}
@@ -48795,26 +48760,233 @@ var iU = (e) => {
}
return n ? void 0 : 0;
};
-function fU(e) {
+function dU(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return WH(WH({}, t), {}, {
+ return UH(UH({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function pU(e, t) {
+function fU(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var mU = (e, t) => {
+var pU = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, hU = (e, t) => t === "centric" ? e.angle : e.radius, gU = (e) => e.layout.width, _U = (e) => e.layout.height, vU = (e) => e.layout.scale, yU = (e) => e.layout.margin, bU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), xU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), SU = "data-recharts-item-index";
+}, mU = (e, t) => t === "centric" ? e.angle : e.radius, hU = (e) => e.layout.width, gU = (e) => e.layout.height, _U = (e) => e.layout.scale, vU = (e) => e.layout.margin, yU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), bU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), xU = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function CU(e, t) {
+function SU(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 CU(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) {
+ wU(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SU(Object(n)).forEach(function(t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+}
+function wU(e, t, n) {
+ return (t = TU(t)) in e ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : e[t] = n, e;
+}
+function TU(e) {
+ var t = EU(e, "string");
+ return typeof t == "symbol" ? t : t + "";
+}
+function EU(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);
+}
+var DU = (e) => e.brush.height;
+function OU(e) {
+ return bU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
+function kU(e) {
+ return bU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
+function AU(e) {
+ return yU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+function jU(e) {
+ return yU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+}
+var MU = $([
+ hU,
+ gU,
+ vU,
+ DU,
+ OU,
+ kU,
+ AU,
+ jU,
+ nB,
+ dpe
+], (e, t, n, r, i, a, o, s, c, l) => {
+ var u = {
+ left: (n.left || 0) + i,
+ right: (n.right || 0) + a
+ }, d = CU(CU({}, {
+ top: (n.top || 0) + o,
+ bottom: (n.bottom || 0) + s
+ }), u), f = d.bottom;
+ d.bottom += r, d = JH(d, c, l);
+ var p = e - d.left - d.right, m = t - d.top - d.bottom;
+ return CU(CU({ brushBottom: f }, d), {}, {
+ width: Math.max(p, 0),
+ height: Math.max(m, 0)
+ });
+}), NU = $(MU, (e) => ({
+ x: e.left,
+ y: e.top,
+ width: e.width,
+ height: e.height
+})), PU = $(hU, gU, (e, t) => ({
+ x: 0,
+ y: 0,
+ width: e,
+ height: t
+})), FU = /*#__PURE__*/ (0, I.createContext)(null), IU = () => (0, I.useContext)(FU) != null, LU = (e) => e.brush, RU = $([
+ LU,
+ MU,
+ vU
+], (e, t, n) => ({
+ height: e.height,
+ x: Z(e.x) ? e.x : t.left,
+ y: Z(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
+ width: Z(e.width) ? e.width : t.width
+}));
+//#endregion
+//#region node_modules/es-toolkit/dist/function/debounce.mjs
+function zU(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 = () => {
+ s && c(), p();
+ }, u = null, d = () => {
+ u != null && clearTimeout(u), u = setTimeout(() => {
+ u = null, l();
+ }, t);
+ }, f = () => {
+ u !== null && (clearTimeout(u), u = null);
+ }, p = () => {
+ f(), i = void 0, a = null;
+ }, m = () => {
+ c();
+ }, h = function(...e) {
+ if (n?.aborted) return;
+ i = this, a = e;
+ let t = u == null;
+ d(), o && t && c();
+ };
+ return h.schedule = d, h.cancel = p, h.flush = m, n?.addEventListener("abort", p, { once: !0 }), h;
+}
+//#endregion
+//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
+function BU(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 = zU(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);
+ };
+ return u.cancel = l.cancel, u.flush = () => (l.flush(), s), u;
+}
+//#endregion
+//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
+function VU(e, t = 0, n = {}) {
+ let { leading: r = !0, trailing: i = !0 } = n;
+ return BU(e, t, {
+ leading: r,
+ maxWait: t,
+ trailing: i
+ });
+}
+//#endregion
+//#region node_modules/recharts/es6/util/LogUtils.js
+var HU = 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.");
+ else {
+ var r = 0;
+ console.warn(t.replace(/%s/g, () => n[r++]));
+ }
+ }
+}, UU = {
+ width: "100%",
+ height: "100%",
+ debounce: 0,
+ minWidth: 0,
+ initialDimension: {
+ width: -1,
+ height: -1
+ }
+}, WU = (e, t, n) => {
+ var { width: r = UU.width, height: i = UU.height, aspect: a, maxHeight: o } = n, s = ez(r) ? e : Number(r), c = ez(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
+ };
+}, GU = {
+ width: 0,
+ height: 0,
+ overflow: "visible"
+}, KU = {
+ width: 0,
+ overflowX: "visible"
+}, qU = {
+ height: 0,
+ overflowY: "visible"
+}, JU = {}, YU = (e) => {
+ var { width: t, height: n } = e, r = ez(t), i = ez(n);
+ return r && i ? GU : r ? KU : i ? qU : JU;
+};
+function XU(e) {
+ var { width: t, height: n, aspect: r } = e, i = t, a = n;
+ return i === void 0 && a === void 0 ? (i = UU.width, a = UU.height) : i === void 0 ? i = r && r > 0 ? void 0 : UU.width : a === void 0 && (a = r && r > 0 ? void 0 : UU.height), {
+ width: i,
+ height: a
+ };
+}
+//#endregion
+//#region node_modules/recharts/es6/component/ResponsiveContainer.js
+function ZU() {
+ return ZU = 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;
+ }, ZU.apply(null, arguments);
+}
+function QU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48824,30 +48996,30 @@ function CU(e, t) {
}
return n;
}
-function wU(e) {
+function $U(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CU(Object(n), !0).forEach(function(t) {
- TU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CU(Object(n)).forEach(function(t) {
+ t % 2 ? QU(Object(n), !0).forEach(function(t) {
+ eW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QU(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TU(e, t, n) {
- return (t = EU(t)) in e ? Object.defineProperty(e, t, {
+function eW(e, t, n) {
+ return (t = tW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EU(e) {
- var t = DU(e, "string");
+function tW(e) {
+ var t = nW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DU(e, t) {
+function nW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48857,226 +49029,19 @@ function DU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OU = (e) => e.brush.height;
-function kU(e) {
- return xU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function AU(e) {
- return xU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function jU(e) {
- return bU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-function MU(e) {
- return bU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-var NU = $([
- gU,
- _U,
- yU,
- OU,
- kU,
- AU,
- jU,
- MU,
- rB,
- dpe
-], (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({}, {
- top: (n.top || 0) + o,
- bottom: (n.bottom || 0) + s
- }), u), f = d.bottom;
- d.bottom += r, d = YH(d, c, l);
- var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return wU(wU({ brushBottom: f }, d), {}, {
- width: Math.max(p, 0),
- height: Math.max(m, 0)
- });
-}), PU = $(NU, (e) => ({
- x: e.left,
- y: e.top,
- width: e.width,
- height: e.height
-})), FU = $(gU, _U, (e, t) => ({
- x: 0,
- y: 0,
- width: e,
- height: t
-})), IU = /*#__PURE__*/ (0, I.createContext)(null), LU = () => (0, I.useContext)(IU) != null, RU = (e) => e.brush, zU = $([
- RU,
- NU,
- yU
-], (e, t, n) => ({
- height: e.height,
- x: Z(e.x) ? e.x : t.left,
- y: Z(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
- width: Z(e.width) ? e.width : t.width
-}));
-//#endregion
-//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function BU(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 = () => {
- s && c(), p();
- }, u = null, d = () => {
- u != null && clearTimeout(u), u = setTimeout(() => {
- u = null, l();
- }, t);
- }, f = () => {
- u !== null && (clearTimeout(u), u = null);
- }, p = () => {
- f(), i = void 0, a = null;
- }, m = () => {
- c();
- }, h = function(...e) {
- if (n?.aborted) return;
- i = this, a = e;
- let t = u == null;
- d(), o && t && c();
- };
- return h.schedule = d, h.cancel = p, h.flush = m, n?.addEventListener("abort", p, { once: !0 }), h;
-}
-//#endregion
-//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function VU(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 = BU(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);
- };
- return u.cancel = l.cancel, u.flush = () => (l.flush(), s), u;
-}
-//#endregion
-//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function HU(e, t = 0, n = {}) {
- let { leading: r = !0, trailing: i = !0 } = n;
- return VU(e, t, {
- leading: r,
- maxWait: t,
- trailing: i
- });
-}
-//#endregion
-//#region node_modules/recharts/es6/util/LogUtils.js
-var UU = 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.");
- else {
- var r = 0;
- console.warn(t.replace(/%s/g, () => n[r++]));
- }
- }
-}, WU = {
- width: "100%",
- height: "100%",
- debounce: 0,
- minWidth: 0,
- initialDimension: {
- width: -1,
- height: -1
- }
-}, GU = (e, t, n) => {
- var { width: r = WU.width, height: i = WU.height, aspect: a, maxHeight: o } = n, s = tz(r) ? e : Number(r), c = tz(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
- };
-}, KU = {
- width: 0,
- height: 0,
- overflow: "visible"
-}, qU = {
- width: 0,
- overflowX: "visible"
-}, JU = {
- height: 0,
- overflowY: "visible"
-}, YU = {}, XU = (e) => {
- var { width: t, height: n } = e, r = tz(t), i = tz(n);
- return r && i ? KU : r ? qU : i ? JU : YU;
-};
-function ZU(e) {
- var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = WU.width, a = WU.height) : i === void 0 ? i = r && r > 0 ? void 0 : WU.width : a === void 0 && (a = r && r > 0 ? void 0 : WU.height), {
- width: i,
- height: a
- };
-}
-//#endregion
-//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function QU() {
- return QU = 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;
- }, QU.apply(null, arguments);
-}
-function $U(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 eW(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $U(Object(n), !0).forEach(function(t) {
- tW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $U(Object(n)).forEach(function(t) {
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
- });
- }
- return e;
-}
-function tW(e, t, n) {
- return (t = nW(t)) in e ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[t] = n, e;
+var rW = /*#__PURE__*/ (0, I.createContext)(UU.initialDimension);
+function iW(e) {
+ return VH(e.width) && VH(e.height);
}
-function nW(e) {
- var t = rW(e, "string");
- return typeof t == "symbol" ? t : t + "";
-}
-function rW(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);
-}
-var iW = /*#__PURE__*/ (0, I.createContext)(WU.initialDimension);
function aW(e) {
- return HH(e.width) && HH(e.height);
-}
-function oW(e) {
var { children: t, width: n, height: r } = e, i = (0, I.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return aW(i) ? /*#__PURE__*/ I.createElement(iW.Provider, { value: i }, t) : null;
+ return iW(i) ? /*#__PURE__*/ I.createElement(rW.Provider, { value: i }, t) : null;
}
-var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = WU.initialDimension, width: i, height: a, minWidth: o = WU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = WU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
+var oW = () => (0, I.useContext)(rW), sW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = UU.initialDimension, width: i, height: a, minWidth: o = UU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = UU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
g.current = p, (0, I.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, I.useState)({
containerWidth: r.width,
@@ -49091,7 +49056,7 @@ var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
}, []);
(0, I.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return dz;
+ if (h.current == null || typeof ResizeObserver > "u") return uz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -49099,7 +49064,7 @@ var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = HU(e, u, {
+ u > 0 && (e = VU(e, u, {
trailing: !0,
leading: !1
}));
@@ -49109,17 +49074,17 @@ var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- UU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = GU(b, x, {
+ HU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = WU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return UU(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__*/ I.createElement("div", {
+ return HU(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__*/ I.createElement("div", {
id: d ? `${d}` : void 0,
className: Wm("recharts-responsive-container", f),
- style: eW(eW({}, m), {}, {
+ style: $U($U({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -49127,30 +49092,30 @@ var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ I.createElement("div", { style: XU({
+ }, /*#__PURE__*/ I.createElement("div", { style: YU({
width: i,
height: a
- }) }, /*#__PURE__*/ I.createElement(oW, {
+ }) }, /*#__PURE__*/ I.createElement(aW, {
width: S,
height: C
}, l)));
-}), lW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = sW();
- if (HH(n.width) && HH(n.height)) return e.children;
- var { width: r, height: i } = ZU({
+}), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = oW();
+ if (VH(n.width) && VH(n.height)) return e.children;
+ var { width: r, height: i } = XU({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = GU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = WU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(oW, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(aW, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ I.createElement(cW, QU({}, e, {
+ }, e.children) : /*#__PURE__*/ I.createElement(sW, ZU({}, e, {
width: r,
height: i,
ref: t
@@ -49158,7 +49123,7 @@ var sW = () => (0, I.useContext)(iW), cW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function uW(e) {
+function lW(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -49168,15 +49133,15 @@ function uW(e) {
height: e.height
};
}
-var dW = () => {
- var e = LU(), t = Q(PU), n = Q(zU), r = Q(RU)?.padding;
+var uW = () => {
+ var e = IU(), t = Q(NU), n = Q(RU), r = Q(LU)?.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
};
-}, fW = {
+}, dW = {
top: 0,
bottom: 0,
left: 0,
@@ -49184,16 +49149,16 @@ var dW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, pW = () => Q(NU) ?? fW, mW = () => Q(gU), hW = () => Q(_U), gW = () => Q((e) => e.layout.margin), _W = (e) => e.layout.layoutType, vW = () => Q(_W), yW = () => {
- var e = vW();
+}, fW = () => Q(MU) ?? dW, pW = () => Q(hU), mW = () => Q(gU), hW = () => Q((e) => e.layout.margin), gW = (e) => e.layout.layoutType, _W = () => Q(gW), vW = () => {
+ var e = _W();
if (e === "horizontal" || e === "vertical") return e;
-}, bW = (e) => {
+}, yW = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, xW = () => Q(bW), SW = () => vW() !== void 0, CW = (e) => {
- var t = Jz(), n = LU(), { width: r, height: i } = e, a = sW(), o = r, s = i;
+}, bW = () => Q(yW), xW = () => _W() !== void 0, SW = (e) => {
+ var t = qz(), n = IU(), { width: r, height: i } = e, a = oW(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, I.useEffect)(() => {
- !n && HH(o) && HH(s) && t(LH({
+ !n && VH(o) && VH(s) && t(IH({
width: o,
height: s
}));
@@ -49203,64 +49168,64 @@ var dW = () => {
o,
s
]), null;
-}, wW = Symbol.for("immer-nothing"), TW = Symbol.for("immer-draftable"), EW = Symbol.for("immer-state");
-function DW(e, ...t) {
+}, CW = Symbol.for("immer-nothing"), wW = Symbol.for("immer-draftable"), TW = Symbol.for("immer-state");
+function EW(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var OW = Object.getPrototypeOf;
-function kW(e) {
- return !!e && !!e[EW];
+var DW = Object.getPrototypeOf;
+function OW(e) {
+ return !!e && !!e[TW];
}
-function AW(e) {
- return e ? NW(e) || Array.isArray(e) || !!e[TW] || !!e.constructor?.[TW] || zW(e) || BW(e) : !1;
+function kW(e) {
+ return e ? MW(e) || Array.isArray(e) || !!e[wW] || !!e.constructor?.[wW] || RW(e) || zW(e) : !1;
}
-var jW = Object.prototype.constructor.toString(), MW = /* @__PURE__ */ new WeakMap();
-function NW(e) {
+var AW = Object.prototype.constructor.toString(), jW = /* @__PURE__ */ new WeakMap();
+function MW(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 = MW.get(n);
- return r === void 0 && (r = Function.toString.call(n), MW.set(n, r)), r === jW;
+ let r = jW.get(n);
+ return r === void 0 && (r = Function.toString.call(n), jW.set(n, r)), r === AW;
}
-function PW(e, t, n = !0) {
- FW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function NW(e, t, n = !0) {
+ PW(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 FW(e) {
- let t = e[EW];
- return t ? t.type_ : Array.isArray(e) ? 1 : zW(e) ? 2 : BW(e) ? 3 : 0;
+function PW(e) {
+ let t = e[TW];
+ return t ? t.type_ : Array.isArray(e) ? 1 : RW(e) ? 2 : zW(e) ? 3 : 0;
}
-function IW(e, t) {
- return FW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function FW(e, t) {
+ return PW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function LW(e, t, n) {
- let r = FW(e);
+function IW(e, t, n) {
+ let r = PW(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function RW(e, t) {
+function LW(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function zW(e) {
+function RW(e) {
return e instanceof Map;
}
-function BW(e) {
+function zW(e) {
return e instanceof Set;
}
-function VW(e) {
+function BW(e) {
return e.copy_ || e.base_;
}
-function HW(e, t) {
- if (zW(e)) return new Map(e);
- if (BW(e)) return new Set(e);
+function VW(e, t) {
+ if (RW(e)) return new Map(e);
+ if (zW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = NW(e);
+ let n = MW(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[EW];
+ delete t[TW];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -49271,40 +49236,40 @@ function HW(e, t) {
value: e[i]
});
}
- return Object.create(OW(e), t);
+ return Object.create(DW(e), t);
}
{
- let t = OW(e);
+ let t = DW(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function UW(e, t = !1) {
- return KW(e) || kW(e) || !AW(e) ? e : (FW(e) > 1 && Object.defineProperties(e, {
- set: GW,
- add: GW,
- clear: GW,
- delete: GW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => UW(e, !0)), e);
+function HW(e, t = !1) {
+ return GW(e) || OW(e) || !kW(e) ? e : (PW(e) > 1 && Object.defineProperties(e, {
+ set: WW,
+ add: WW,
+ clear: WW,
+ delete: WW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => HW(e, !0)), e);
}
-function WW() {
- DW(2);
+function UW() {
+ EW(2);
}
-var GW = { value: WW };
-function KW(e) {
+var WW = { value: UW };
+function GW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var qW = {};
-function JW(e) {
- let t = qW[e];
- return t || DW(0, e), t;
+var KW = {};
+function qW(e) {
+ let t = KW[e];
+ return t || EW(0, e), t;
}
-var YW;
-function XW() {
- return YW;
+var JW;
+function YW() {
+ return JW;
}
-function ZW(e, t) {
+function XW(e, t) {
return {
drafts_: [],
parent_: e,
@@ -49313,62 +49278,62 @@ function ZW(e, t) {
unfinalizedDrafts_: 0
};
}
-function QW(e, t) {
- t && (JW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function ZW(e, t) {
+ t && (qW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+}
+function QW(e) {
+ $W(e), e.drafts_.forEach(tG), e.drafts_ = null;
}
function $W(e) {
- eG(e), e.drafts_.forEach(nG), e.drafts_ = null;
+ e === JW && (JW = e.parent_);
}
function eG(e) {
- e === YW && (YW = e.parent_);
+ return JW = XW(JW, e);
}
function tG(e) {
- return YW = ZW(YW, e);
-}
-function nG(e) {
- let t = e[EW];
+ let t = e[TW];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function rG(e, t) {
+function nG(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[EW].modified_ && ($W(t), DW(4)), AW(e) && (e = iG(t, e), t.parent_ || oG(t, e)), t.patches_ && JW("Patches").generateReplacementPatches_(n[EW].base_, e, t.patches_, t.inversePatches_)) : e = iG(t, n, []), $W(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === wW ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[TW].modified_ && (QW(t), EW(4)), kW(e) && (e = rG(t, e), t.parent_ || aG(t, e)), t.patches_ && qW("Patches").generateReplacementPatches_(n[TW].base_, e, t.patches_, t.inversePatches_)) : e = rG(t, n, []), QW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === CW ? void 0 : e;
}
-function iG(e, t, n) {
- if (KW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[EW];
- if (!i) return PW(t, (r, a) => aG(e, i, t, r, a, n), r), t;
+function rG(e, t, n) {
+ if (GW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[TW];
+ if (!i) return NW(t, (r, a) => iG(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return oG(e, i.base_, !0), i.base_;
+ if (!i.modified_) return aG(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), PW(a, (r, a) => aG(e, i, t, r, a, n, o), r), oG(e, t, !1), n && e.patches_ && JW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), NW(a, (r, a) => iG(e, i, t, r, a, n, o), r), aG(e, t, !1), n && e.patches_ && qW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function aG(e, t, n, r, i, a, o) {
+function iG(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = KW(i);
+ let s = GW(i);
if (!(s && !o)) {
- if (kW(i)) {
- let o = iG(e, i, a && t && t.type_ !== 3 && !IW(t.assigned_, r) ? a.concat(r) : void 0);
- if (LW(n, r, o), kW(o)) e.canAutoFreeze_ = !1;
+ if (OW(i)) {
+ let o = rG(e, i, a && t && t.type_ !== 3 && !FW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (IW(n, r, o), OW(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (AW(i) && !s) {
+ if (kW(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- iG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (zW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && oG(e, i);
+ rG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (RW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && aG(e, i);
}
}
}
-function oG(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && UW(t, n);
+function aG(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && HW(t, n);
}
-function sG(e, t) {
+function oG(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : XW(),
+ scope_: t ? t.scope_ : YW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -49378,41 +49343,41 @@ function sG(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = cG;
- n && (i = [r], a = lG);
+ }, i = r, a = sG;
+ n && (i = [r], a = cG);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var cG = {
+var sG = {
get(e, t) {
- if (t === EW) return e;
- let n = VW(e);
- if (!IW(n, t)) return dG(e, n, t);
+ if (t === TW) return e;
+ let n = BW(e);
+ if (!FW(n, t)) return uG(e, n, t);
let r = n[t];
- return e.finalized_ || !AW(r) ? r : r === uG(e.base_, t) ? (mG(e), e.copy_[t] = gG(r, e)) : r;
+ return e.finalized_ || !kW(r) ? r : r === lG(e.base_, t) ? (pG(e), e.copy_[t] = hG(r, e)) : r;
},
has(e, t) {
- return t in VW(e);
+ return t in BW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(VW(e));
+ return Reflect.ownKeys(BW(e));
},
set(e, t, n) {
- let r = fG(VW(e), t);
+ let r = dG(BW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = uG(VW(e), t), i = r?.[EW];
+ let r = lG(BW(e), t), i = r?.[TW];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (RW(n, r) && (n !== void 0 || IW(e.base_, t))) return !0;
- mG(e), pG(e);
+ if (LW(n, r) && (n !== void 0 || FW(e.base_, t))) return !0;
+ pG(e), fG(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 uG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, mG(e), pG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return lG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, pG(e), fG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = VW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = BW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -49421,48 +49386,48 @@ var cG = {
};
},
defineProperty() {
- DW(11);
+ EW(11);
},
getPrototypeOf(e) {
- return OW(e.base_);
+ return DW(e.base_);
},
setPrototypeOf() {
- DW(12);
+ EW(12);
}
-}, lG = {};
-PW(cG, (e, t) => {
- lG[e] = function() {
+}, cG = {};
+NW(sG, (e, t) => {
+ cG[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), lG.deleteProperty = function(e, t) {
- return lG.set.call(this, e, t, void 0);
-}, lG.set = function(e, t, n) {
- return cG.set.call(this, e[0], t, n, e[0]);
+}), cG.deleteProperty = function(e, t) {
+ return cG.set.call(this, e, t, void 0);
+}, cG.set = function(e, t, n) {
+ return sG.set.call(this, e[0], t, n, e[0]);
};
-function uG(e, t) {
- let n = e[EW];
- return (n ? VW(n) : e)[t];
+function lG(e, t) {
+ let n = e[TW];
+ return (n ? BW(n) : e)[t];
}
-function dG(e, t, n) {
- let r = fG(t, n);
+function uG(e, t, n) {
+ let r = dG(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function fG(e, t) {
+function dG(e, t) {
if (!(t in e)) return;
- let n = OW(e);
+ let n = DW(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = OW(n);
+ n = DW(n);
}
}
-function pG(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && pG(e.parent_));
+function fG(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && fG(e.parent_));
}
-function mG(e) {
- e.copy_ ||= HW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function pG(e) {
+ e.copy_ ||= VW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var hG = class {
+var mG = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -49473,25 +49438,25 @@ var hG = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && DW(6), n !== void 0 && typeof n != "function" && DW(7);
+ typeof t != "function" && EW(6), n !== void 0 && typeof n != "function" && EW(7);
let r;
- if (AW(e)) {
- let i = tG(this), a = gG(e, void 0), o = !0;
+ if (kW(e)) {
+ let i = eG(this), a = hG(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? $W(i) : eG(i);
+ o ? QW(i) : $W(i);
}
- return QW(i, n), rG(r, i);
+ return ZW(i, n), nG(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === wW && (r = void 0), this.autoFreeze_ && UW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === CW && (r = void 0), this.autoFreeze_ && HW(r, !0), n) {
let t = [], i = [];
- JW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ qW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- DW(1, e);
+ EW(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -49505,15 +49470,15 @@ var hG = 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) {
- AW(e) || DW(8), kW(e) && (e = _G(e));
- let t = tG(this), n = gG(e, void 0);
- return n[EW].isManual_ = !0, eG(t), n;
+ kW(e) || EW(8), OW(e) && (e = gG(e));
+ let t = eG(this), n = hG(e, void 0);
+ return n[TW].isManual_ = !0, $W(t), n;
}
finishDraft(e, t) {
- let n = e && e[EW];
- (!n || !n.isManual_) && DW(9);
+ let n = e && e[TW];
+ (!n || !n.isManual_) && EW(9);
let { scope_: r } = n;
- return QW(r, t), rG(void 0, r);
+ return ZW(r, t), nG(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -49537,35 +49502,35 @@ var hG = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = JW("Patches").applyPatches_;
- return kW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = qW("Patches").applyPatches_;
+ return OW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function gG(e, t) {
- let n = zW(e) ? JW("MapSet").proxyMap_(e, t) : BW(e) ? JW("MapSet").proxySet_(e, t) : sG(e, t);
- return (t ? t.scope_ : XW()).drafts_.push(n), n;
+function hG(e, t) {
+ let n = RW(e) ? qW("MapSet").proxyMap_(e, t) : zW(e) ? qW("MapSet").proxySet_(e, t) : oG(e, t);
+ return (t ? t.scope_ : YW()).drafts_.push(n), n;
}
-function _G(e) {
- return kW(e) || DW(10, e), vG(e);
+function gG(e) {
+ return OW(e) || EW(10, e), _G(e);
}
-function vG(e) {
- if (!AW(e) || KW(e)) return e;
- let t = e[EW], n, r = !0;
+function _G(e) {
+ if (!kW(e) || GW(e)) return e;
+ let t = e[TW], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = HW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = HW(e, !0);
- return PW(n, (e, t) => {
- LW(n, e, vG(t));
+ t.finalized_ = !0, n = VW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = VW(e, !0);
+ return NW(n, (e, t) => {
+ IW(n, e, _G(t));
}, r), t && (t.finalized_ = !1), n;
}
-new hG().produce;
-function yG(e) {
+new mG().produce;
+function vG(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var bG = KV({
+var yG = GV({
name: "legend",
initialState: {
settings: {
@@ -49589,43 +49554,43 @@ var bG = KV({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(yG(t.payload));
+ e.payload.push(vG(t.payload));
},
- prepare: jV()
+ prepare: AV()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bV(e).payload.indexOf(yG(n));
- i > -1 && (e.payload[i] = yG(r));
+ var { prev: n, next: r } = t.payload, i = yV(e).payload.indexOf(vG(n));
+ i > -1 && (e.payload[i] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeLegendPayload: {
reducer(e, t) {
- var n = bV(e).payload.indexOf(yG(t.payload));
+ var n = yV(e).payload.indexOf(vG(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: jV()
+ prepare: AV()
}
}
-}), { setLegendSize: xG, setLegendSettings: SG, addLegendPayload: CG, replaceLegendPayload: wG, removeLegendPayload: TG } = bG.actions, EG = bG.reducer, DG = /* @__PURE__ */ M(((e) => {
+}), { setLegendSize: bG, setLegendSettings: xG, addLegendPayload: SG, replaceLegendPayload: CG, removeLegendPayload: wG } = yG.actions, TG = yG.reducer, EG = /* @__PURE__ */ M(((e) => {
var t = ne();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ M(((e, t) => {
- t.exports = DG();
+ t.exports = EG();
})))();
-function OG(e) {
+function DG(e) {
e();
}
-function kG() {
+function OG() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- OG(() => {
+ DG(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -49647,12 +49612,12 @@ function kG() {
}
};
}
-var AG = {
+var kG = {
notify() {},
get: () => []
};
-function jG(e, t) {
- let n, r = AG, i = 0, a = !1;
+function AG(e, t) {
+ let n, r = kG, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -49670,10 +49635,10 @@ function jG(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = kG());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = OG());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = AG);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = kG);
}
function f() {
a || (a = !0, u());
@@ -49692,44 +49657,44 @@ function jG(e, t) {
};
return m;
}
-var MG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, NG = typeof navigator < "u" && navigator.product === "ReactNative", PG = MG || NG ? I.useLayoutEffect : I.useEffect;
-function FG(e, t) {
+var jG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, MG = typeof navigator < "u" && navigator.product === "ReactNative", NG = jG || MG ? I.useLayoutEffect : I.useEffect;
+function PG(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function IG(e, t) {
- if (FG(e, t)) return !0;
+function FG(e, t) {
+ if (PG(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]) || !FG(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !PG(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var LG = /* @__PURE__ */ Symbol.for("react-redux-context"), RG = typeof globalThis < "u" ? globalThis : {};
-function zG() {
+var IG = /* @__PURE__ */ Symbol.for("react-redux-context"), LG = typeof globalThis < "u" ? globalThis : {};
+function RG() {
if (!I.createContext) return {};
- let e = RG[LG] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
+ let e = LG[IG] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
return t || (t = I.createContext(null), e.set(I.createContext, t)), t;
}
-var BG = /* @__PURE__ */ zG();
-function VG(e) {
+var zG = /* @__PURE__ */ RG();
+function BG(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = I.useMemo(() => {
- let e = jG(i);
+ let e = AG(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = I.useMemo(() => i.getState(), [i]);
- PG(() => {
+ NG(() => {
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 || BG;
+ let s = n || zG;
return /* @__PURE__ */ I.createElement(s.Provider, { value: a }, t);
}
-var HG = VG, UG = /* @__PURE__ */ new Set([
+var VG = BG, HG = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -49752,29 +49717,29 @@ var HG = VG, UG = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function WG(e, t) {
+function UG(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function GG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (UG.has(n)) {
+function WG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (HG.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!IG(e[n], t[n])) return !1;
- } else if (!WG(e[n], t[n])) return !1;
+ if (!FG(e[n], t[n])) return !1;
+ } else if (!UG(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var KG = ["contextPayload"];
-function qG() {
- return qG = Object.assign ? Object.assign.bind() : function(e) {
+var GG = ["contextPayload"];
+function KG() {
+ return KG = 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;
- }, qG.apply(null, arguments);
+ }, KG.apply(null, arguments);
}
-function JG(e, t) {
+function qG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49784,30 +49749,30 @@ function JG(e, t) {
}
return n;
}
-function YG(e) {
+function JG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? JG(Object(n), !0).forEach(function(t) {
- XG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JG(Object(n)).forEach(function(t) {
+ t % 2 ? qG(Object(n), !0).forEach(function(t) {
+ YG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XG(e, t, n) {
- return (t = ZG(t)) in e ? Object.defineProperty(e, t, {
+function YG(e, t, n) {
+ return (t = XG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZG(e) {
- var t = QG(e, "string");
+function XG(e) {
+ var t = ZG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QG(e, t) {
+function ZG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49817,16 +49782,16 @@ function QG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function $G(e, t) {
+function QG(e, t) {
if (e == null) return {};
- var n, r, i = eK(e, t);
+ var n, r, i = $G(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 eK(e, t) {
+function $G(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -49835,36 +49800,36 @@ function eK(e, t) {
}
return n;
}
-function tK(e) {
+function eK(e) {
return e.value;
}
-function nK(e) {
- var { contextPayload: t } = e, n = $G(e, KG), r = Kz(t, e.payloadUniqBy, tK), i = YG(YG({}, n), {}, { payload: r });
+function tK(e) {
+ var { contextPayload: t } = e, n = QG(e, GG), r = Gz(t, e.payloadUniqBy, eK), i = JG(JG({}, n), {}, { payload: r });
return /*#__PURE__*/ I.isValidElement(e.content) ? /*#__PURE__*/ I.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ I.createElement(e.content, i) : /*#__PURE__*/ I.createElement(rfe, i);
}
-function rK(e, t, n, r, i, a) {
+function nK(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 }), YG(YG({}, 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 }), JG(JG({}, l), u);
}
-function iK(e) {
- var t = Jz();
+function rK(e) {
+ var t = qz();
return (0, I.useEffect)(() => {
- t(SG(e));
+ t(xG(e));
}, [t, e]), null;
}
-function aK(e) {
- var t = Jz();
- return (0, I.useEffect)(() => (t(xG(e)), () => {
- t(xG({
+function iK(e) {
+ var t = qz();
+ return (0, I.useEffect)(() => (t(bG(e)), () => {
+ t(bG({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function oK(e, t, n, r) {
+function aK(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var sK = {
+var oK = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -49872,28 +49837,28 @@ var sK = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function cK(e) {
- var t = xz(e, sK), n = ppe(), r = Zue(), i = gW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = aB([n]), d = mW(), f = hW();
+function sK(e) {
+ var t = bz(e, oK), n = ppe(), r = Zue(), i = hW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iB([n]), d = pW(), f = mW();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = oK(t.layout, o, a, p), h = c ? s : YG(YG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = aK(t.layout, o, a, p), h = c ? s : JG(JG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, rK(s, t, i, d, f, l)), s), g = c ?? r;
+ }, nK(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ I.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ I.createElement(iK, {
+ }, /*#__PURE__*/ I.createElement(rK, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ I.createElement(aK, {
+ }), !c && /*#__PURE__*/ I.createElement(iK, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ I.createElement(nK, qG({}, t, m, {
+ }), /*#__PURE__*/ I.createElement(tK, KG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -49901,20 +49866,20 @@ function cK(e) {
})));
return /*#__PURE__*/ (0, yh.createPortal)(_, g);
}
-var lK = /*#__PURE__*/ I.memo(cK, GG);
-lK.displayName = "Legend";
+var cK = /*#__PURE__*/ I.memo(sK, WG);
+cK.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function uK() {
- return uK = Object.assign ? Object.assign.bind() : function(e) {
+function lK() {
+ return lK = 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;
- }, uK.apply(null, arguments);
+ }, lK.apply(null, arguments);
}
-function dK(e, t) {
+function uK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49924,30 +49889,30 @@ function dK(e, t) {
}
return n;
}
-function fK(e) {
+function dK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dK(Object(n), !0).forEach(function(t) {
- pK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dK(Object(n)).forEach(function(t) {
+ t % 2 ? uK(Object(n), !0).forEach(function(t) {
+ fK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pK(e, t, n) {
- return (t = mK(t)) in e ? Object.defineProperty(e, t, {
+function fK(e, t, n) {
+ return (t = pK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mK(e) {
- var t = hK(e, "string");
+function pK(e) {
+ var t = mK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hK(e, t) {
+function mK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49957,10 +49922,10 @@ function hK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function gK(e) {
- return Array.isArray(e) && nz(e[0]) && nz(e[1]) ? e.join(" ~ ") : e;
+function hK(e) {
+ return Array.isArray(e) && tz(e[0]) && tz(e[1]) ? e.join(" ~ ") : e;
}
-var _K = {
+var gK = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -49978,30 +49943,30 @@ var _K = {
labelStyle: {},
accessibilityLayer: !1
};
-function vK(e, t) {
- return t == null ? e : nB(e, t);
+function _K(e, t) {
+ return t == null ? e : tB(e, t);
}
-var yK = (e) => {
- var { separator: t = _K.separator, contentStyle: n, itemStyle: r, labelStyle: i = _K.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = _K.accessibilityLayer } = e, p = () => {
+var vK = (e) => {
+ var { separator: t = gK.separator, contentStyle: n, itemStyle: r, labelStyle: i = gK.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = gK.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = vK(a, s).map((e, n) => {
+ }, n = _K(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || gK, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || hK, { 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 = fK(fK({}, _K.itemStyle), {}, { color: e.color || _K.itemStyle.color }, r);
+ var f = dK(dK({}, gK.itemStyle), {}, { color: e.color || gK.itemStyle.color }, r);
return /*#__PURE__*/ I.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, nz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, nz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, tz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, tz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -50009,30 +49974,30 @@ var yK = (e) => {
}, n);
}
return null;
- }, m = fK(fK({}, _K.contentStyle), n), h = fK({ margin: 0 }, i), g = !cz(u), _ = g ? u : "", v = Wm("recharts-default-tooltip", c), y = Wm("recharts-tooltip-label", l);
+ }, m = dK(dK({}, gK.contentStyle), n), h = dK({ margin: 0 }, i), g = !sz(u), _ = g ? u : "", v = Wm("recharts-default-tooltip", c), y = Wm("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ I.createElement("div", uK({
+ return /*#__PURE__*/ I.createElement("div", lK({
className: v,
style: m
}, b), /*#__PURE__*/ I.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ I.isValidElement(_) ? _ : `${_}`), p());
-}, bK = "recharts-tooltip-wrapper", xK = { visibility: "hidden" };
-function SK(e) {
+}, yK = "recharts-tooltip-wrapper", bK = { visibility: "hidden" };
+function xK(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Wm(bK, {
- [`${bK}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${bK}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${bK}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${bK}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Wm(yK, {
+ [`${yK}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${yK}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${yK}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${yK}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function CK(e) {
+function SK(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;
@@ -50040,13 +50005,13 @@ function CK(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 wK(e) {
+function CK(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function TK(e) {
+function wK(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 = CK({
+ return s.height > 0 && s.width > 0 && n ? (d = SK({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -50056,7 +50021,7 @@ function TK(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = CK({
+ }), f = SK({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -50066,27 +50031,27 @@ function TK(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = wK({
+ }), u = CK({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = xK, {
+ })) : u = bK, {
cssProperties: u,
- cssClasses: SK({
+ cssClasses: xK({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var EK = {
+var TK = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function DK() {
- var [e, t] = (0, I.useState)(() => EK.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function EK() {
+ var [e, t] = (0, I.useState)(() => TK.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, I.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -50100,7 +50065,7 @@ function DK() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function OK(e, t) {
+function DK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50110,30 +50075,30 @@ function OK(e, t) {
}
return n;
}
-function kK(e) {
+function OK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? OK(Object(n), !0).forEach(function(t) {
- AK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OK(Object(n)).forEach(function(t) {
+ t % 2 ? DK(Object(n), !0).forEach(function(t) {
+ kK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function AK(e, t, n) {
- return (t = jK(t)) in e ? Object.defineProperty(e, t, {
+function kK(e, t, n) {
+ return (t = AK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jK(e) {
- var t = MK(e, "string");
+function AK(e) {
+ var t = jK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function MK(e, t) {
+function jK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50143,11 +50108,11 @@ function MK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function NK(e) {
+function MK(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function PK(e) {
- var t = DK(), [n, r] = I.useState(() => ({
+function NK(e) {
+ var t = EK(), [n, r] = I.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -50167,8 +50132,8 @@ function PK(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(kK(kK({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = TK({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(OK(OK({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = wK({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -50181,7 +50146,7 @@ function PK(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = kK(kK({}, e.hasPortalFromProps ? {} : kK(kK({ transition: NK({
+ }), o = OK(OK({}, e.hasPortalFromProps ? {} : OK(OK({ transition: MK({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -50201,19 +50166,19 @@ function PK(e) {
ref: e.innerRef
}, e.children);
}
-var FK = /*#__PURE__*/ I.memo(PK), IK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var PK = /*#__PURE__*/ I.memo(NK), FK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function LK() {
- return LK = Object.assign ? Object.assign.bind() : function(e) {
+function IK() {
+ return IK = 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;
- }, LK.apply(null, arguments);
+ }, IK.apply(null, arguments);
}
-function RK(e, t) {
+function LK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50223,30 +50188,30 @@ function RK(e, t) {
}
return n;
}
-function zK(e) {
+function RK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? RK(Object(n), !0).forEach(function(t) {
- BK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RK(Object(n)).forEach(function(t) {
+ t % 2 ? LK(Object(n), !0).forEach(function(t) {
+ zK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BK(e, t, n) {
- return (t = VK(t)) in e ? Object.defineProperty(e, t, {
+function zK(e, t, n) {
+ return (t = BK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VK(e) {
- var t = HK(e, "string");
+function BK(e) {
+ var t = VK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HK(e, t) {
+function VK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50256,40 +50221,40 @@ function HK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UK = {
+var HK = {
curveBasisClosed: hde,
curveBasisOpen: gde,
curveBasis: mde,
curveBumpX: ede,
curveBumpY: tde,
curveLinearClosed: _de,
- curveLinear: pR,
+ curveLinear: fR,
curveMonotoneX: vde,
curveMonotoneY: yde,
curveNatural: bde,
curveStep: xde,
curveStepAfter: Cde,
curveStepBefore: Sde
-}, WK = (e) => VH(e.x) && VH(e.y), GK = (e) => e.base != null && WK(e.base) && WK(e), KK = (e) => e.x, qK = (e) => e.y, JK = (e, t) => {
+}, UK = (e) => BH(e.x) && BH(e.y), WK = (e) => e.base != null && UK(e.base) && UK(e), GK = (e) => e.x, KK = (e) => e.y, qK = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${lz(e)}`;
+ var n = `curve${cz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = UK[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = HK[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return UK[n] || pR;
-}, YK = {
+ return HK[n] || fR;
+}, JK = {
connectNulls: !1,
type: "linear"
-}, XK = (e) => {
- var { type: t = YK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = YK.connectNulls } = e, o = JK(t, i), s = a ? n.filter(WK) : n;
+}, YK = (e) => {
+ var { type: t = JK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = JK.connectNulls } = e, o = qK(t, i), s = a ? n.filter(UK) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => zK(zK({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? _R().y(qK).x1(KK).x0((e) => e.base.x) : _R().x(KK).y1(qK).y0((e) => e.base.y), c.defined(GK).curve(o)(a ? l.filter(GK) : l);
+ var c, l = n.map((e, t) => RK(RK({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? gR().y(KK).x1(GK).x0((e) => e.base.x) : gR().x(GK).y1(KK).y0((e) => e.base.y), c.defined(WK).curve(o)(a ? l.filter(WK) : l);
}
- return (i === "vertical" && Z(r) ? _R().y(qK).x1(KK).x0(r) : Z(r) ? _R().x(KK).y1(qK).y0(r) : gR().x(KK).y(qK)).defined(WK).curve(o)(s);
-}, ZK = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = vW();
+ return (i === "vertical" && Z(r) ? gR().y(KK).x1(GK).x0(r) : Z(r) ? gR().x(GK).y1(KK).y0(r) : hR().x(GK).y(KK)).defined(UK).curve(o)(s);
+}, XK = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = _W();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -50297,13 +50262,13 @@ var UK = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? XK(o) : r;
- return /*#__PURE__*/ I.createElement("path", LK({}, GL(e), vz(e), {
+ }, s = n && n.length ? YK(o) : r;
+ return /*#__PURE__*/ I.createElement("path", IK({}, WL(e), _z(e), {
className: Wm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, QK = [
+}, ZK = [
"x",
"y",
"top",
@@ -50312,16 +50277,16 @@ var UK = {
"height",
"className"
];
-function $K() {
- return $K = Object.assign ? Object.assign.bind() : function(e) {
+function QK() {
+ return QK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $K.apply(null, arguments);
+ }, QK.apply(null, arguments);
}
-function eq(e, t) {
+function $K(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50331,30 +50296,30 @@ function eq(e, t) {
}
return n;
}
-function tq(e) {
+function eq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eq(Object(n), !0).forEach(function(t) {
- nq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eq(Object(n)).forEach(function(t) {
+ t % 2 ? $K(Object(n), !0).forEach(function(t) {
+ tq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nq(e, t, n) {
- return (t = rq(t)) in e ? Object.defineProperty(e, t, {
+function tq(e, t, n) {
+ return (t = nq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rq(e) {
- var t = iq(e, "string");
+function nq(e) {
+ var t = rq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iq(e, t) {
+function rq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50364,16 +50329,16 @@ function iq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aq(e, t) {
+function iq(e, t) {
if (e == null) return {};
- var n, r, i = oq(e, t);
+ var n, r, i = aq(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 oq(e, t) {
+function aq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50382,8 +50347,8 @@ function oq(e, t) {
}
return n;
}
-var sq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, cq = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = aq(e, QK), l = tq({
+var oq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, sq = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = iq(e, ZK), l = eq({
x: t,
y: n,
top: r,
@@ -50391,14 +50356,14 @@ var sq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, cq = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", $K({}, qL(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", QK({}, KL(l), {
className: Wm("recharts-cross", s),
- d: sq(t, n, a, o, r, i)
+ d: oq(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function lq(e, t, n, r) {
+function cq(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -50411,7 +50376,7 @@ function lq(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function uq(e, t) {
+function lq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50421,30 +50386,30 @@ function uq(e, t) {
}
return n;
}
-function dq(e) {
+function uq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uq(Object(n), !0).forEach(function(t) {
- fq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uq(Object(n)).forEach(function(t) {
+ t % 2 ? lq(Object(n), !0).forEach(function(t) {
+ dq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fq(e, t, n) {
- return (t = pq(t)) in e ? Object.defineProperty(e, t, {
+function dq(e, t, n) {
+ return (t = fq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pq(e) {
- var t = mq(e, "string");
+function fq(e) {
+ var t = pq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mq(e, t) {
+function pq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50454,10 +50419,10 @@ function mq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hq = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), gq = (e, t, n) => e.map((e) => `${hq(e)} ${t}ms ${n}`).join(","), _q = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), vq = (e, t) => Object.keys(t).reduce((n, r) => dq(dq({}, n), {}, { [r]: e(r, t[r]) }), {});
+var mq = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), hq = (e, t, n) => e.map((e) => `${mq(e)} ${t}ms ${n}`).join(","), gq = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), _q = (e, t) => Object.keys(t).reduce((n, r) => uq(uq({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function yq(e, t) {
+function vq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50467,30 +50432,30 @@ function yq(e, t) {
}
return n;
}
-function bq(e) {
+function yq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? yq(Object(n), !0).forEach(function(t) {
- xq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yq(Object(n)).forEach(function(t) {
+ t % 2 ? vq(Object(n), !0).forEach(function(t) {
+ bq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xq(e, t, n) {
- return (t = Sq(t)) in e ? Object.defineProperty(e, t, {
+function bq(e, t, n) {
+ return (t = xq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Sq(e) {
- var t = Cq(e, "string");
+function xq(e) {
+ var t = Sq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Cq(e, t) {
+function Sq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50500,51 +50465,51 @@ function Cq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wq = (e, t, n) => e + (t - e) * n, Tq = (e) => {
+var Cq = (e, t, n) => e + (t - e) * n, wq = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, Eq = (e, t, n) => {
- var r = vq((t, n) => {
- if (Tq(n)) {
+}, Tq = (e, t, n) => {
+ var r = _q((t, n) => {
+ if (wq(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return bq(bq({}, n), {}, {
+ return yq(yq({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? vq((e, t) => Tq(t) && r[e] != null ? bq(bq({}, t), {}, {
- velocity: wq(t.velocity, r[e].velocity, n),
- from: wq(t.from, r[e].from, n)
- }) : t, t) : Eq(e, r, n - 1);
+ return n < 1 ? _q((e, t) => wq(t) && r[e] != null ? yq(yq({}, t), {}, {
+ velocity: Cq(t.velocity, r[e].velocity, n),
+ from: Cq(t.from, r[e].from, n)
+ }) : t, t) : Tq(e, r, n - 1);
};
-function Dq(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => bq(bq({}, n), {}, { [r]: {
+function Eq(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => yq(yq({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => vq((e, t) => t.from, s), l = () => !Object.values(s).filter(Tq).length, u = null, d = (r) => {
+ } }), {}), c = () => _q((e, t) => t.from, s), l = () => !Object.values(s).filter(wq).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = Eq(n, s, f), i(bq(bq(bq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = Tq(n, s, f), i(yq(yq(yq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function Oq(e, t, n, r, i, a, o) {
+function Dq(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 : bq(bq({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : yq(yq({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = vq((e, t) => wq(...t, n(d)), c);
- if (a(bq(bq(bq({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = _q((e, t) => Cq(...t, n(d)), c);
+ if (a(yq(yq(yq({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = vq((e, t) => wq(...t, n(1)), c);
- a(bq(bq(bq({}, e), t), p));
+ var p = _q((e, t) => Cq(...t, n(1)), c);
+ a(yq(yq(yq({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -50552,15 +50517,15 @@ function Oq(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var kq = (e, t, n, r, i, a) => {
- var o = _q(e, t);
- return n == null ? () => (i(bq(bq({}, e), t)), () => {}) : n.isStepper === !0 ? Dq(e, t, n, o, i, a) : Oq(e, t, n, r, o, i, a);
-}, Aq = (e, t) => [
+var Oq = (e, t, n, r, i, a) => {
+ var o = gq(e, t);
+ return n == null ? () => (i(yq(yq({}, e), t)), () => {}) : n.isStepper === !0 ? Eq(e, t, n, o, i, a) : Dq(e, t, n, r, o, i, a);
+}, kq = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], jq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), Mq = (e, t) => (n) => jq(Aq(e, t), n), Nq = (e, t) => (n) => jq([...Aq(e, t).map((e, t) => e * t).slice(1), 0], n), Pq = (e) => {
+], Aq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), jq = (e, t) => (n) => Aq(kq(e, t), n), Mq = (e, t) => (n) => Aq([...kq(e, t).map((e, t) => e * t).slice(1), 0], n), Nq = (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(",");
@@ -50572,7 +50537,7 @@ var kq = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, Fq = function() {
+}, Pq = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -50606,7 +50571,7 @@ var kq = (e, t, n, r, i, a) => {
1
];
default:
- var t = Pq(e[0]);
+ var t = Nq(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -50615,8 +50580,8 @@ var kq = (e, t, n, r, i, a) => {
1,
1
];
-}, Iq = (e, t, n, r) => {
- var i = Mq(e, n), a = Mq(t, r), o = Nq(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, Fq = (e, t, n, r) => {
+ var i = jq(e, n), a = jq(t, r), o = Mq(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);
@@ -50625,29 +50590,29 @@ var kq = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
+}, Iq = function() {
+ return Fq(...Pq(...arguments));
}, Lq = function() {
- return Iq(...Fq(...arguments));
-}, Rq = 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;
-}, zq = (e) => {
+}, Rq = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return Lq(e);
- case "spring": return Rq();
- default: if (e.split("(")[0] === "cubic-bezier") return Lq(e);
+ case "linear": return Iq(e);
+ case "spring": return Lq();
+ default: if (e.split("(")[0] === "cubic-bezier") return Iq(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function Bq(e) {
+function zq(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -50678,7 +50643,7 @@ function Bq(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var Vq = class {
+var Bq = 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));
@@ -50690,14 +50655,14 @@ var Vq = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function Hq() {
- return Bq(new Vq());
+function Vq() {
+ return zq(new Bq());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var Uq = /*#__PURE__*/ (0, I.createContext)(Hq);
-function Wq(e, t) {
- var n = (0, I.useContext)(Uq);
+var Hq = /*#__PURE__*/ (0, I.createContext)(Vq);
+function Uq(e, t) {
+ var n = (0, I.useContext)(Hq);
return (0, I.useMemo)(() => t ?? n(e), [
e,
t,
@@ -50706,7 +50671,7 @@ function Wq(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var Gq = {
+var Wq = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -50714,14 +50679,14 @@ var Gq = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, Kq = { t: 0 }, qq = { t: 1 };
-function Jq(e) {
- var t = xz(e, Gq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = DK(), d = n === "auto" ? !EK.isSsr && !u : n, f = Wq(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? Kq : qq), h = (0, I.useRef)(null);
+}, Gq = { t: 0 }, Kq = { t: 1 };
+function qq(e) {
+ var t = bz(e, Wq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = EK(), d = n === "auto" ? !TK.isSsr && !u : n, f = Uq(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? Gq : Kq), h = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
- d || m(qq);
+ d || m(Kq);
}, [d]), (0, I.useEffect)(() => {
- if (!d || !r) return dz;
- var e = kq(Kq, qq, zq(a), i, m, f.getTimeoutController());
+ if (!d || !r) return uz;
+ var e = Oq(Gq, Kq, Rq(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -50746,14 +50711,14 @@ function Jq(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function Yq(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(rz(t)), r = (0, I.useRef)(e);
- return r.current !== e && (n.current = rz(t), r.current = e), n.current;
+function Jq(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(nz(t)), r = (0, I.useRef)(e);
+ return r.current !== e && (n.current = nz(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var Xq = ["radius"], Zq = ["radius"], Qq, $q, eJ, tJ, nJ, rJ, iJ, aJ, oJ, sJ;
-function cJ(e, t) {
+var Yq = ["radius"], Xq = ["radius"], Zq, Qq, $q, eJ, tJ, nJ, rJ, iJ, aJ, oJ;
+function sJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50763,30 +50728,30 @@ function cJ(e, t) {
}
return n;
}
-function lJ(e) {
+function cJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? cJ(Object(n), !0).forEach(function(t) {
- uJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cJ(Object(n)).forEach(function(t) {
+ t % 2 ? sJ(Object(n), !0).forEach(function(t) {
+ lJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uJ(e, t, n) {
- return (t = dJ(t)) in e ? Object.defineProperty(e, t, {
+function lJ(e, t, n) {
+ return (t = uJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dJ(e) {
- var t = fJ(e, "string");
+function uJ(e) {
+ var t = dJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fJ(e, t) {
+function dJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50796,25 +50761,25 @@ function fJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pJ() {
- return pJ = Object.assign ? Object.assign.bind() : function(e) {
+function fJ() {
+ return fJ = 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;
- }, pJ.apply(null, arguments);
+ }, fJ.apply(null, arguments);
}
-function mJ(e, t) {
+function pJ(e, t) {
if (e == null) return {};
- var n, r, i = hJ(e, t);
+ var n, r, i = mJ(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 hJ(e, t) {
+function mJ(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -50823,11 +50788,11 @@ function hJ(e, t) {
}
return n;
}
-function gJ(e, t) {
+function hJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var _J = (e, t, n, r, i) => {
- var a = ZR(n), o = ZR(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 gJ = (e, t, n, r, i) => {
+ var a = XR(n), o = XR(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,
@@ -50838,44 +50803,44 @@ var _J = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = QR(Qq ||= gJ([
+ d = ZR(Zq ||= hJ([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += QR($q ||= gJ([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += ZR(Qq ||= hJ([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += QR(eJ ||= gJ([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += ZR($q ||= hJ([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += QR(tJ ||= gJ([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += ZR(eJ ||= hJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += QR(nJ ||= gJ([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += ZR(tJ ||= hJ([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += QR(rJ ||= gJ([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ZR(nJ ||= hJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += QR(iJ ||= gJ([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ZR(rJ ||= hJ([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += QR(aJ ||= gJ([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += ZR(iJ ||= hJ([
"A ",
",",
",0,0,",
@@ -50885,8 +50850,8 @@ var _J = (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 = QR(oJ ||= gJ(/* @__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 = QR(sJ ||= gJ([
+ d = ZR(aJ ||= hJ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = ZR(oJ ||= hJ([
"M ",
",",
" h ",
@@ -50895,7 +50860,7 @@ var _J = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, vJ = {
+}, _J = {
x: 0,
y: 0,
width: 0,
@@ -50906,15 +50871,15 @@ var _J = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, yJ = (e) => {
- var t = xz(e, vJ), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);
+}, vJ = (e) => {
+ var t = bz(e, _J), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);
(0, I.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, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = Yq((0, I.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, I.useRef)(s), _ = (0, I.useRef)(c), v = (0, I.useRef)(a), y = (0, I.useRef)(o), b = Jq((0, I.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -50930,19 +50895,19 @@ var _J = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Wm("recharts-rectangle", u);
if (!h) {
- var S = qL(t), { radius: C } = S, w = mJ(S, Xq);
- return /*#__PURE__*/ I.createElement("path", pJ({}, w, {
- x: ZR(a),
- y: ZR(o),
- width: ZR(s),
- height: ZR(c),
+ var S = KL(t), { radius: C } = S, w = pJ(S, Yq);
+ return /*#__PURE__*/ I.createElement("path", fJ({}, w, {
+ x: XR(a),
+ y: XR(o),
+ width: XR(s),
+ height: XR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: _J(a, o, s, c, l)
+ d: gJ(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 = gq(["strokeDasharray"], f, typeof d == "string" ? d : vJ.animationEasing);
- return /*#__PURE__*/ I.createElement(Jq, {
+ 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 = hq(["strokeDasharray"], f, typeof d == "string" ? d : _J.animationEasing);
+ return /*#__PURE__*/ I.createElement(qq, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -50951,24 +50916,24 @@ var _J = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = oz(T, s, e), i = oz(E, c, e), u = oz(D, a, e), d = oz(O, o, e);
+ var r = az(T, s, e), i = az(E, c, e), u = az(D, a, e), d = az(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 = qL(t), { radius: h } = p, b = mJ(p, Zq);
- return /*#__PURE__*/ I.createElement("path", pJ({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = KL(t), { radius: h } = p, b = pJ(p, Xq);
+ return /*#__PURE__*/ I.createElement("path", fJ({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: _J(u, d, r, i, l),
+ d: gJ(u, d, r, i, l),
ref: n,
- style: lJ(lJ({}, f), t.style)
+ style: cJ(cJ({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function bJ(e, t) {
+function yJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50978,30 +50943,30 @@ function bJ(e, t) {
}
return n;
}
-function xJ(e) {
+function bJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? bJ(Object(n), !0).forEach(function(t) {
- SJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bJ(Object(n)).forEach(function(t) {
+ t % 2 ? yJ(Object(n), !0).forEach(function(t) {
+ xJ(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function SJ(e, t, n) {
- return (t = CJ(t)) in e ? Object.defineProperty(e, t, {
+function xJ(e, t, n) {
+ return (t = SJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CJ(e) {
- var t = wJ(e, "string");
+function SJ(e) {
+ var t = CJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wJ(e, t) {
+function CJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51011,10 +50976,10 @@ function wJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TJ = Math.PI / 180, EJ = (e) => e * Math.PI / 180, DJ = (e) => e * 180 / Math.PI, OJ = (e, t, n, r) => ({
- x: e + Math.cos(-TJ * r) * n,
- y: t + Math.sin(-TJ * r) * n
-}), kJ = function(e, t) {
+var wJ = Math.PI / 180, TJ = (e) => e * Math.PI / 180, EJ = (e) => e * 180 / Math.PI, DJ = (e, t, n, r) => ({
+ x: e + Math.cos(-wJ * r) * n,
+ y: t + Math.sin(-wJ * r) * n
+}), OJ = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -51025,11 +50990,11 @@ var TJ = Math.PI / 180, EJ = (e) => e * Math.PI / 180, DJ = (e) => e * 180 / Mat
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, AJ = (e, t) => {
+}, kJ = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, jJ = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = AJ({
+}, AJ = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = kJ({
x: n,
y: r
}, {
@@ -51043,25 +51008,25 @@ var TJ = Math.PI / 180, EJ = (e) => e * Math.PI / 180, DJ = (e) => e * 180 / Mat
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: DJ(c),
+ angle: EJ(c),
angleInRadian: c
};
-}, MJ = (e) => {
+}, jJ = (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
};
-}, NJ = (e, t) => {
+}, MJ = (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;
-}, PJ = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = jJ({
+}, NJ = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = AJ({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = MJ(t), u = a, d;
+ var { startAngle: c, endAngle: l } = jJ(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -51071,17 +51036,17 @@ var TJ = Math.PI / 180, EJ = (e) => e * Math.PI / 180, DJ = (e) => e * 180 / Mat
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? xJ(xJ({}, t), {}, {
+ return d ? bJ(bJ({}, t), {}, {
radius: i,
- angle: NJ(u, t)
+ angle: MJ(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function FJ(e) {
+function PJ(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [OJ(t, n, r, i), OJ(t, n, r, a)],
+ points: [DJ(t, n, r, i), DJ(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -51091,29 +51056,29 @@ function FJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var IJ, LJ, RJ, zJ, BJ, VJ, HJ;
-function UJ() {
- return UJ = Object.assign ? Object.assign.bind() : function(e) {
+var FJ, IJ, LJ, RJ, zJ, BJ, VJ;
+function HJ() {
+ return HJ = 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;
- }, UJ.apply(null, arguments);
+ }, HJ.apply(null, arguments);
}
-function WJ(e, t) {
+function UJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (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) / TJ, d = c ? i : i + a * u, f = OJ(t, n, l, d), p = OJ(t, n, r, d), m = c ? i - a * u : i;
+var WJ = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 359.999), GJ = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / wJ, d = c ? i : i + a * u, f = DJ(t, n, l, d), p = DJ(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: OJ(t, n, l * Math.cos(u * TJ), m),
+ lineTangency: DJ(t, n, l * Math.cos(u * wJ), m),
theta: u
};
-}, qJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = GJ(a, o), c = a + s, l = OJ(t, n, i, a), u = OJ(t, n, i, c), d = QR(IJ ||= WJ([
+}, KJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = WJ(a, o), c = a + s, l = DJ(t, n, i, a), u = DJ(t, n, i, c), d = ZR(FJ ||= UJ([
"M ",
",",
"\n A ",
@@ -51125,8 +51090,8 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = OJ(t, n, r, a), p = OJ(t, n, r, c);
- d += QR(LJ ||= WJ([
+ var f = DJ(t, n, r, a), p = DJ(t, n, r, c);
+ d += ZR(IJ ||= UJ([
"L ",
",",
"\n A ",
@@ -51137,14 +51102,14 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += QR(RJ ||= WJ([
+ } else d += ZR(LJ ||= UJ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, JJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = $R(l - c), { circleTangency: d, lineTangency: f, theta: p } = KJ({
+}, qJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = QR(l - c), { circleTangency: d, lineTangency: f, theta: p } = GJ({
cx: t,
cy: n,
radius: i,
@@ -51152,7 +51117,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = KJ({
+ }), { circleTangency: m, lineTangency: h, theta: g } = GJ({
cx: t,
cy: n,
radius: i,
@@ -51161,7 +51126,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? QR(zJ ||= WJ([
+ if (_ < 0) return o ? ZR(RJ ||= UJ([
"M ",
",",
"\n a",
@@ -51171,7 +51136,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : qJ({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : KJ({
cx: t,
cy: n,
innerRadius: r,
@@ -51179,7 +51144,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
startAngle: c,
endAngle: l
});
- var v = QR(BJ ||= WJ([
+ var v = ZR(zJ ||= UJ([
"M ",
",",
"\n A",
@@ -51201,7 +51166,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (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 } = KJ({
+ var { circleTangency: y, lineTangency: b, theta: x } = GJ({
cx: t,
cy: n,
radius: r,
@@ -51210,7 +51175,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = KJ({
+ }), { circleTangency: S, lineTangency: C, theta: w } = GJ({
cx: t,
cy: n,
radius: r,
@@ -51221,7 +51186,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (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 += QR(VJ ||= WJ([
+ v += ZR(BJ ||= UJ([
"L",
",",
"\n A",
@@ -51242,13 +51207,13 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (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 += QR(HJ ||= WJ([
+ } else v += ZR(VJ ||= UJ([
"L",
",",
"Z"
]), t, n);
return v;
-}, YJ = {
+}, JJ = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -51258,10 +51223,10 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, XJ = (e) => {
- var t = xz(e, YJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, YJ = (e) => {
+ var t = bz(e, JJ), { 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 = Wm("recharts-sector", d), p = a - i, m = iz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? JJ({
+ var f = Wm("recharts-sector", d), p = a - i, m = rz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? qJ({
cx: n,
cy: r,
innerRadius: i,
@@ -51271,7 +51236,7 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : qJ({
+ }) : KJ({
cx: n,
cy: r,
innerRadius: i,
@@ -51279,14 +51244,14 @@ var GJ = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 359.999), KJ = (e) => {
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ I.createElement("path", UJ({}, qL(t), {
+ return /*#__PURE__*/ I.createElement("path", HJ({}, KL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function ZJ(e, t, n) {
+function XJ(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -51301,9 +51266,9 @@ function ZJ(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (_z(t)) {
+ if (gz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = OJ(r, i, a, s), l = OJ(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = DJ(r, i, a, s), l = DJ(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -51312,30 +51277,30 @@ function ZJ(e, t, n) {
y: l.y
}];
}
- return FJ(t);
+ return PJ(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function QJ(e) {
- return qR(e) ? NaN : Number(e);
+function ZJ(e) {
+ return KR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function $J(e) {
- return e ? (e = QJ(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function QJ(e) {
+ return e ? (e = ZJ(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 eY(e, t, n) {
- n && typeof n != "number" && eB(e, t, n) && (t = n = void 0), e = $J(e), t === void 0 ? (t = e, e = 0) : t = $J(t), n = n === void 0 ? e < t ? 1 : -1 : $J(n);
+function $J(e, t, n) {
+ n && typeof n != "number" && $z(e, t, n) && (t = n = void 0), e = QJ(e), t === void 0 ? (t = e, e = 0) : t = QJ(t), n = n === void 0 ? e < t ? 1 : -1 : QJ(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 tY = (e) => e.chartData, nY = $([tY], (e) => {
+var eY = (e) => e.chartData, tY = $([eY], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -51343,35 +51308,35 @@ var tY = (e) => e.chartData, nY = $([tY], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), rY = (e, t, n, r) => r ? nY(e) : tY(e), iY = (e, t, n) => n ? nY(e) : tY(e);
+}), nY = (e, t, n, r) => r ? tY(e) : eY(e), rY = (e, t, n) => n ? tY(e) : eY(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function aY(e) {
+function iY(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (VH(t) && VH(n)) return !0;
+ if (BH(t) && BH(n)) return !0;
}
return !1;
}
-function oY(e, t, n) {
+function aY(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function sY(e, t) {
+function oY(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (VH(n)) i = n;
+ if (BH(n)) i = n;
else if (typeof n == "function") return;
- if (VH(r)) a = r;
+ if (BH(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (aY(o)) return o;
+ if (iY(o)) return o;
}
}
-function cY(e, t, n) {
+function sY(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (aY(r)) return oY(r, t, n);
+ if (iY(r)) return aY(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -51380,8 +51345,8 @@ function cY(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && lU.test(i)) {
- var c = lU.exec(i);
+ else if (typeof i == "string" && cU.test(i)) {
+ var c = cU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -51393,8 +51358,8 @@ function cY(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && uU.test(a)) {
- var u = uU.exec(a);
+ else if (typeof a == "string" && lU.test(a)) {
+ var u = lU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -51402,13 +51367,13 @@ function cY(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (aY(f)) return t == null ? f : oY(f, t, n);
+ if (iY(f)) return t == null ? f : aY(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var lY = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
+var cY = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -51784,75 +51749,75 @@ var lY = /* @__PURE__ */ te((/* @__PURE__ */ M(((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 uY(e) {
- return e === 0 ? 1 : Math.floor(new lY.default(e).abs().log(10).toNumber()) + 1;
+function lY(e) {
+ return e === 0 ? 1 : Math.floor(new cY.default(e).abs().log(10).toNumber()) + 1;
}
-function dY(e, t, n) {
- for (var r = new lY.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function uY(e, t, n) {
+ for (var r = new cY.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 fY = (e) => {
+var dY = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
+}, fY = (e, t, n) => {
+ if (e.lte(0)) return new cY.default(0);
+ var r = lY(e.toNumber()), i = new cY.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new cY.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new cY.default(s.toNumber()) : new cY.default(Math.ceil(s.toNumber()));
}, pY = (e, t, n) => {
- if (e.lte(0)) return new lY.default(0);
- var r = uY(e.toNumber()), i = new lY.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new lY.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new lY.default(s.toNumber()) : new lY.default(Math.ceil(s.toNumber()));
-}, mY = (e, t, n) => {
- if (e.lte(0)) return new lY.default(0);
+ if (e.lte(0)) return new cY.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new lY.default(i).abs().log(10).toNumber()), o = new lY.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new cY.default(i).abs().log(10).toNumber()), o = new cY.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 lY.default(10).pow(l));
+ c %= r.length, o = o.mul(new cY.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new lY.default(u).mul(o);
- return t ? d : new lY.default(Math.ceil(d.toNumber()));
-}, hY = (e, t, n) => {
- var r = new lY.default(1), i = new lY.default(e);
+ var u = r[c] ?? 1, d = new cY.default(u).mul(o);
+ return t ? d : new cY.default(Math.ceil(d.toNumber()));
+}, mY = (e, t, n) => {
+ var r = new cY.default(1), i = new cY.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new lY.default(10).pow(uY(e) - 1), i = new lY.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new lY.default(Math.floor(e)));
- } else e === 0 ? i = new lY.default(Math.floor((t - 1) / 2)) : n || (i = new lY.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new lY.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new cY.default(10).pow(lY(e) - 1), i = new cY.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new cY.default(Math.floor(e)));
+ } else e === 0 ? i = new cY.default(Math.floor((t - 1) / 2)) : n || (i = new cY.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new cY.default(c - o).mul(r)).toNumber());
return s;
-}, gY = 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] : pY;
+}, hY = 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] : fY;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new lY.default(0),
- tickMin: new lY.default(0),
- tickMax: new lY.default(0)
+ step: new cY.default(0),
+ tickMin: new cY.default(0),
+ tickMax: new cY.default(0)
};
- var o = a(new lY.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new lY.default(0) : (s = new lY.default(e).add(t).div(2), s = s.sub(new lY.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new lY.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? gY(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ var o = a(new cY.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new cY.default(0) : (s = new cY.default(e).add(t).div(2), s = s.sub(new cY.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new cY.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? hY(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 lY.default(c).mul(o)),
- tickMax: s.add(new lY.default(l).mul(o))
+ tickMin: s.sub(new cY.default(c).mul(o)),
+ tickMax: s.add(new cY.default(l).mul(o))
});
-}, _Y = 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] = fY([t, n]);
+}, gY = 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] = dY([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 hY(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = gY(s, c, o, i, 0, a === "snap125" ? mY : pY), p = dY(d, f.add(new lY.default(.1).mul(u)), u);
+ if (s === c) return mY(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = hY(s, c, o, i, 0, a === "snap125" ? pY : fY), p = uY(d, f.add(new cY.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, vY = 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] = fY([n, r]);
+}, _Y = 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] = dY([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? mY : pY, l = Math.max(t, 2), u = c(new lY.default(s).sub(o).div(l - 1), i, 0), d = [...dY(new lY.default(o), new lY.default(s), u), s];
+ var c = a === "snap125" ? pY : fY, l = Math.max(t, 2), u = c(new cY.default(s).sub(o).div(l - 1), i, 0), d = [...uY(new cY.default(o), new cY.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, yY = (e) => e.rootProps.maxBarSize, bY = (e) => e.rootProps.barGap, xY = (e) => e.rootProps.barCategoryGap, SY = (e) => e.rootProps.barSize, CY = (e) => e.rootProps.stackOffset, wY = (e) => e.rootProps.reverseStackOrder, TY = (e) => e.options.chartName, EY = (e) => e.rootProps.syncId, DY = (e) => e.rootProps.syncMethod, OY = (e) => e.options.eventEmitter, kY = (e) => e.rootProps.baseValue, AY = {
+}, vY = (e) => e.rootProps.maxBarSize, yY = (e) => e.rootProps.barGap, bY = (e) => e.rootProps.barCategoryGap, xY = (e) => e.rootProps.barSize, SY = (e) => e.rootProps.stackOffset, CY = (e) => e.rootProps.reverseStackOrder, wY = (e) => e.options.chartName, TY = (e) => e.rootProps.syncId, EY = (e) => e.rootProps.syncMethod, DY = (e) => e.options.eventEmitter, OY = (e) => e.rootProps.baseValue, kY = {
grid: -100,
barBackground: -50,
area: 100,
@@ -51865,7 +51830,7 @@ var fY = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, jY = {
+}, AY = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -51886,8 +51851,8 @@ var fY = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: AY.axis
-}, MY = {
+ zIndex: kY.axis
+}, jY = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -51906,19 +51871,19 @@ var fY = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: AY.axis
-}, NY = (e, t) => {
+ zIndex: kY.axis
+}, MY = (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 PY(e, t, n) {
+function NY(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return XH(e, t) ? "category" : "number";
+ if (e != null) return YH(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function FY(e, t) {
+function PY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51928,30 +51893,30 @@ function FY(e, t) {
}
return n;
}
-function IY(e) {
+function FY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? FY(Object(n), !0).forEach(function(t) {
- LY(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FY(Object(n)).forEach(function(t) {
+ t % 2 ? PY(Object(n), !0).forEach(function(t) {
+ IY(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LY(e, t, n) {
- return (t = RY(t)) in e ? Object.defineProperty(e, t, {
+function IY(e, t, n) {
+ return (t = LY(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RY(e) {
- var t = zY(e, "string");
+function LY(e) {
+ var t = RY(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zY(e, t) {
+function RY(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51961,81 +51926,81 @@ function zY(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var BY = {
- allowDataOverflow: jY.allowDataOverflow,
- allowDecimals: jY.allowDecimals,
+var zY = {
+ allowDataOverflow: AY.allowDataOverflow,
+ allowDecimals: AY.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: jY.angleAxisId,
+ id: AY.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: jY.reversed,
- scale: jY.scale,
- tick: jY.tick,
+ reversed: AY.reversed,
+ scale: AY.scale,
+ tick: AY.tick,
tickCount: void 0,
ticks: void 0,
- type: jY.type,
+ type: AY.type,
unit: void 0,
niceTicks: "auto"
-}, VY = {
- allowDataOverflow: MY.allowDataOverflow,
- allowDecimals: MY.allowDecimals,
- allowDuplicatedCategory: MY.allowDuplicatedCategory,
+}, BY = {
+ allowDataOverflow: jY.allowDataOverflow,
+ allowDecimals: jY.allowDecimals,
+ allowDuplicatedCategory: jY.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: MY.radiusAxisId,
- includeHidden: MY.includeHidden,
+ id: jY.radiusAxisId,
+ includeHidden: jY.includeHidden,
name: void 0,
- reversed: MY.reversed,
- scale: MY.scale,
- tick: MY.tick,
- tickCount: MY.tickCount,
+ reversed: jY.reversed,
+ scale: jY.scale,
+ tick: jY.tick,
+ tickCount: jY.tickCount,
ticks: void 0,
- type: MY.type,
+ type: jY.type,
unit: void 0,
niceTicks: "auto"
-}, HY = $([(e, t) => {
+}, VY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, bW], (e, t) => {
+}, yW], (e, t) => {
if (e != null) return e;
- var n = PY(t, "angleAxis", BY.type) ?? "category";
- return IY(IY({}, BY), {}, { type: n });
-}), UY = $([(e, t) => e.polarAxis.radiusAxis[t], bW], (e, t) => {
+ var n = NY(t, "angleAxis", zY.type) ?? "category";
+ return FY(FY({}, zY), {}, { type: n });
+}), HY = $([(e, t) => e.polarAxis.radiusAxis[t], yW], (e, t) => {
if (e != null) return e;
- var n = PY(t, "radiusAxis", VY.type) ?? "category";
- return IY(IY({}, VY), {}, { type: n });
-}), WY = (e) => e.polarOptions, GY = $([
+ var n = NY(t, "radiusAxis", BY.type) ?? "category";
+ return FY(FY({}, BY), {}, { type: n });
+}), UY = (e) => e.polarOptions, WY = $([
+ hU,
gU,
- _U,
- NU
-], kJ), KY = $([WY, GY], (e, t) => {
- if (e != null) return iz(e.innerRadius, t, 0);
-}), qY = $([WY, GY], (e, t) => {
- if (e != null) return iz(e.outerRadius, t, t * .8);
-}), JY = $([WY], (e) => {
+ MU
+], OJ), GY = $([UY, WY], (e, t) => {
+ if (e != null) return rz(e.innerRadius, t, 0);
+}), KY = $([UY, WY], (e, t) => {
+ if (e != null) return rz(e.outerRadius, t, t * .8);
+}), qY = $([UY], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), YY = $([HY, JY], NY), XY = $([
+}), JY = $([VY, qY], MY), YY = $([
+ WY,
GY,
- KY,
- qY
+ KY
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), ZY = $([UY, XY], NY), QY = $([
- _W,
- WY,
+}), XY = $([HY, YY], MY), ZY = $([
+ gW,
+ UY,
+ GY,
KY,
- qY,
- gU,
- _U
+ hU,
+ gU
], (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: iz(o, i, i / 2),
- cy: iz(s, a, a / 2),
+ cx: rz(o, i, i / 2),
+ cy: rz(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -52043,22 +52008,22 @@ var BY = {
clockWise: !1
};
}
-}), $Y = (e, t) => t, eX = (e, t, n) => n;
+}), QY = (e, t) => t, $Y = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function tX(e) {
+function eX(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function nX(e, t, n) {
+function tX(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 = tX(e);
+ var n = eX(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(JH(t, a, null)), c = JH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(qH(t, a, null)), c = qH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -52066,18 +52031,18 @@ function nX(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function rX(e) {
+function nX(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var iX = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var rX = (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 aX(e, t) {
+function iX(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function oX(e, t) {
+function aX(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -52086,13 +52051,13 @@ function oX(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var sX = (e) => {
- var t = _W(e);
+var oX = (e) => {
+ var t = gW(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, cX = (e) => e.tooltip.settings.axisId;
+}, sX = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function lX(e) {
+function cX(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -52133,13 +52098,13 @@ function lX(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var uX = (e, t) => {
+var lX = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!aY(t)) {
+ if (!iY(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- VH(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ BH(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;
}
@@ -52149,14 +52114,14 @@ var uX = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function dX(e, t) {
+function uX(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function fX(e) {
+function dX(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = pX(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = fX(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -52182,15 +52147,15 @@ function fX(e) {
right: i
};
}
-function pX(e) {
- return (t, n) => dX(e(t), n);
+function fX(e) {
+ return (t, n) => uX(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function mX(e) {
+function pX(e) {
return e === null ? NaN : +e;
}
-function* hX(e, t) {
+function* mX(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -52199,43 +52164,43 @@ function* hX(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var gX = fX(dX), _X = gX.right;
-gX.left, fX(mX).center;
+var hX = dX(uX), gX = hX.right;
+hX.left, dX(pX).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var vX = class extends Map {
- constructor(e, t = Npe) {
+var _X = class extends Map {
+ constructor(e, t = xX) {
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(yX(this, e));
+ return super.get(vX(this, e));
}
has(e) {
- return super.has(yX(this, e));
+ return super.has(vX(this, e));
}
set(e, t) {
- return super.set(bX(this, e), t);
+ return super.set(yX(this, e), t);
}
delete(e) {
- return super.delete(xX(this, e));
+ return super.delete(bX(this, e));
}
};
-function yX({ _intern: e, _key: t }, n) {
+function vX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function bX({ _intern: e, _key: t }, n) {
+function yX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function xX({ _intern: e, _key: t }, n) {
+function bX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function Npe(e) {
+function xX(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -52287,7 +52252,7 @@ function kX(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function AX(e, t, n = 0, r = e.length - 1, i = dX) {
+function AX(e, t, n = 0, r = e.length - 1, i = uX) {
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);
@@ -52308,15 +52273,15 @@ function jX(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function Ppe(e, t, n) {
- if (e = Float64Array.from(hX(e, n)), r = e.length) {
+function Npe(e, t, n) {
+ if (e = Float64Array.from(mX(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return kX(e);
if (t >= 1) return OX(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = OX(AX(e, a).subarray(0, a + 1));
return o + (kX(e.subarray(a + 1)) - o) * (i - a);
}
}
-function Fpe(e, t, n = mX) {
+function Ppe(e, t, n = pX) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -52326,7 +52291,7 @@ function Fpe(e, t, n = mX) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Ipe(e, t, n) {
+function Fpe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
@@ -52368,7 +52333,7 @@ function PX(e, t) {
//#region node_modules/d3-scale/src/ordinal.js
var FX = Symbol("implicit");
function IX() {
- var e = new vX(), t = [], n = [], r = FX;
+ var e = new _X(), t = [], n = [], r = FX;
function i(i) {
let a = e.get(i);
if (a === void 0) {
@@ -52379,7 +52344,7 @@ function IX() {
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new vX();
+ t = [], e = new _X();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -52398,7 +52363,7 @@ function LX() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = Ipe(e).map(function(e) {
+ var m = Fpe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -52433,7 +52398,7 @@ function RX(e) {
return RX(t());
}, e;
}
-function Lpe() {
+function Ipe() {
return RX(LX.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -52449,7 +52414,7 @@ function BX(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function VX() {}
-var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Rpe = /^#([0-9a-f]{3,8})$/, zpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), Bpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), Vpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Hpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Upe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Wpe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
+var HX = .7, UX = 1 / HX, WX = "\\s*([+-]?\\d+)\\s*", GX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", KX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Lpe = /^#([0-9a-f]{3,8})$/, Rpe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), zpe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), Bpe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), Vpe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), Hpe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), Upe = RegExp(`^hsla\\(${GX},${KX},${KX},${GX}\\)$`), qX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -52608,18 +52573,18 @@ zX(VX, XX, {
},
hex: JX,
formatHex: JX,
- formatHex8: Gpe,
- formatHsl: Kpe,
+ formatHex8: Wpe,
+ formatHsl: Gpe,
formatRgb: YX,
toString: YX
});
function JX() {
return this.rgb().formatHex();
}
-function Gpe() {
+function Wpe() {
return this.rgb().formatHex8();
}
-function Kpe() {
+function Gpe() {
return sZ(this).formatHsl();
}
function YX() {
@@ -52627,7 +52592,7 @@ function YX() {
}
function XX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Rpe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = zpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = Bpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Vpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Hpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Upe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Wpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = Lpe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ZX(t) : n === 3 ? new eZ(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? QX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? QX(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Rpe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = zpe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Bpe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = Vpe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Hpe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = Upe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, t[4]) : qX.hasOwnProperty(e) ? ZX(qX[e]) : e === "transparent" ? new eZ(NaN, NaN, NaN, 0) : null;
}
function ZX(e) {
return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -52635,11 +52600,11 @@ function ZX(e) {
function QX(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);
}
-function qpe(e) {
+function Kpe(e) {
return e instanceof VX || (e = XX(e)), e ? (e = e.rgb(), new eZ(e.r, e.g, e.b, e.opacity)) : new eZ();
}
function $X(e, t, n, r) {
- return arguments.length === 1 ? qpe(e) : new eZ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? Kpe(e) : new eZ(e, t, n, r ?? 1);
}
function eZ(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -52662,14 +52627,14 @@ zX(eZ, $X, BX(VX, {
},
hex: tZ,
formatHex: tZ,
- formatHex8: Jpe,
+ formatHex8: qpe,
formatRgb: nZ,
toString: nZ
}));
function tZ() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;
}
-function Jpe() {
+function qpe() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function nZ() {
@@ -52696,13 +52661,13 @@ function sZ(e) {
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new cZ(o, s, c, e.opacity);
}
-function Ype(e, t, n, r) {
+function Jpe(e, t, n, r) {
return arguments.length === 1 ? sZ(e) : new cZ(e, t, n, r ?? 1);
}
function cZ(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-zX(cZ, Ype, BX(VX, {
+zX(cZ, Jpe, BX(VX, {
brighter(e) {
return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);
},
@@ -52738,29 +52703,29 @@ function dZ(e, t, n) {
var fZ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function Xpe(e, t) {
+function Ype(e, t) {
return function(n) {
return e + n * t;
};
}
-function Zpe(e, t, n) {
+function Xpe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Qpe(e) {
+function Zpe(e) {
return (e = +e) == 1 ? pZ : function(t, n) {
- return n - t ? Zpe(t, n, e) : fZ(isNaN(t) ? n : t);
+ return n - t ? Xpe(t, n, e) : fZ(isNaN(t) ? n : t);
};
}
function pZ(e, t) {
var n = t - e;
- return n ? Xpe(e, n) : fZ(isNaN(e) ? t : e);
+ return n ? Ype(e, n) : fZ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var mZ = (function e(t) {
- var n = Qpe(t);
+ var n = Zpe(t);
function r(e, t) {
var r = n((e = $X(e)).r, (t = $X(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = pZ(e.opacity, t.opacity);
return function(t) {
@@ -52771,7 +52736,7 @@ var mZ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function $pe(e, t) {
+function Qpe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -52779,12 +52744,12 @@ function $pe(e, t) {
return r;
};
}
-function eme(e) {
+function $pe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function tme(e, t) {
+function eme(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
for (o = 0; o < r; ++o) i[o] = vZ(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -52795,7 +52760,7 @@ function tme(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function nme(e, t) {
+function tme(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -52810,7 +52775,7 @@ function hZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function rme(e, t) {
+function nme(e, t) {
var n = {}, r = {}, i;
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = vZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -52821,23 +52786,23 @@ function rme(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");
-function ime(e) {
+function rme(e) {
return function() {
return e;
};
}
-function ame(e) {
+function ime(e) {
return function(t) {
return e(t) + "";
};
}
-function ome(e, t) {
+function ame(e, t) {
var n = gZ.lastIndex = _Z.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = gZ.exec(e)) && (i = _Z.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
x: hZ(r, i)
})), n = _Z.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ame(c[0].x) : ime(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? ime(c[0].x) : rme(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
@@ -52846,7 +52811,7 @@ function ome(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function vZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ome : t instanceof XX ? mZ : t instanceof Date ? nme : eme(t) ? $pe : Array.isArray(t) ? tme : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? rme : hZ)(e, t);
+ return t == null || n === "boolean" ? fZ(t) : (n === "number" ? hZ : n === "string" ? (r = XX(t)) ? (t = r, mZ) : ame : t instanceof XX ? mZ : t instanceof Date ? tme : $pe(t) ? Qpe : Array.isArray(t) ? eme : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? nme : hZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -52857,7 +52822,7 @@ function yZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function sme(e, t) {
+function ome(e, t) {
t === void 0 && (t = e, e = vZ);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
@@ -52867,7 +52832,7 @@ function sme(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function cme(e) {
+function sme(e) {
return function() {
return e;
};
@@ -52886,25 +52851,25 @@ function SZ(e) {
function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : cme(isNaN(t) ? NaN : .5);
+ } : sme(isNaN(t) ? NaN : .5);
}
-function lme(e, t) {
+function cme(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function ume(e, t, n) {
+function lme(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = CZ(i, r), a = n(o, a)) : (r = CZ(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function dme(e, t, n) {
+function ume(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = CZ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = _X(e, t, 1, r) - 1;
+ var n = gX(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
@@ -52915,7 +52880,7 @@ function TZ() {
var e = xZ, t = xZ, n = vZ, r, i, a, o = SZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== SZ && (o = lme(e[0], e[n - 1])), s = n > 2 ? dme : ume, c = l = null, d;
+ return o !== SZ && (o = cme(e[0], e[n - 1])), s = n > 2 ? ume : lme, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -52943,7 +52908,7 @@ function EZ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function fme(e) {
+function dme(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function DZ(e, t) {
@@ -52958,7 +52923,7 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function pme(e, t) {
+function fme(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -52966,7 +52931,7 @@ function pme(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function mme(e) {
+function pme(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -52975,9 +52940,9 @@ function mme(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var hme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var mme = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = hme.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = mme.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -53001,7 +52966,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function gme(e) {
+function hme(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -53018,7 +52983,7 @@ function gme(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function _me(e, t) {
+function gme(e, t) {
var n = DZ(e, t);
if (!n) return jZ = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (jZ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -53038,14 +53003,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: fme,
+ d: dme,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => MZ(e * 100, t),
r: MZ,
- s: _me,
+ s: gme,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -53075,8 +53040,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function vme(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : pme(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : mme(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function _me(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : fme(FZ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? PZ : pme(FZ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
e = kZ(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
@@ -53089,7 +53054,7 @@ function vme(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = gme(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = hme(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -53130,27 +53095,27 @@ function vme(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-yme({
+vme({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function yme(e) {
- return LZ = vme(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function vme(e) {
+ return LZ = _me(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function bme(e) {
+function yme(e) {
return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function xme(e, t) {
+function bme(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(OZ(t) / 3))) * 3 - OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function Sme(e, t) {
+function xme(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
@@ -53160,16 +53125,16 @@ function BZ(e, t, n, r) {
switch (r = kZ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = xme(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = bme(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = Sme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = xme(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = bme(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = yme(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -53232,19 +53197,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function Cme(e) {
+function Sme(e) {
return -Math.log(-e);
}
-function wme(e) {
+function Cme(e) {
return -Math.exp(-e);
}
-function Tme(e) {
+function wme(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function Eme(e) {
- return e === 10 ? Tme : e === Math.E ? Math.exp : (t) => e ** +t;
+function Tme(e) {
+ return e === 10 ? wme : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function Dme(e) {
+function Eme(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
function qZ(e) {
@@ -53253,7 +53218,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Dme(r), a = Eme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Cme, wme)) : e(GZ, KZ), t;
+ return i = Eme(r), a = Tme(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Sme, Cme)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -53323,16 +53288,16 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function Ome(e) {
+function Dme(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function kme(e) {
+function Ome(e) {
return e < 0 ? -e * e : e * e;
}
function tQ(e) {
var t = e(SZ, SZ), n = 1;
function r() {
- return n === 1 ? e(SZ, SZ) : n === .5 ? e(Ome, kme) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(Dme, Ome) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -53344,7 +53309,7 @@ function nQ() {
return wZ(e, nQ()).exponent(e.exponent());
}, NX.apply(e, arguments), e;
}
-function Ame() {
+function kme() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -53352,13 +53317,13 @@ function Ame() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function jme(e) {
+function Ame(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function iQ() {
var e = EZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = jme(e(t));
+ var i = Ame(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -53385,11 +53350,11 @@ function aQ() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = Fpe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Ppe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[_X(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[gX(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -53398,7 +53363,7 @@ function aQ() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(dX), i();
+ return e.sort(uX), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -53414,7 +53379,7 @@ function aQ() {
function oQ() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[_X(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[gX(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -53441,7 +53406,7 @@ function oQ() {
function sQ() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[_X(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[gX(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();
@@ -53554,8 +53519,8 @@ function DQ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);
}
-var OQ = DQ(0), kQ = DQ(1), Mme = DQ(2), Nme = DQ(3), AQ = DQ(4), Pme = DQ(5), Fme = DQ(6);
-OQ.range, kQ.range, Mme.range, Nme.range, AQ.range, Pme.range, Fme.range;
+var OQ = DQ(0), kQ = DQ(1), jme = DQ(2), Mme = DQ(3), AQ = DQ(4), Nme = DQ(5), Pme = DQ(6);
+OQ.range, kQ.range, jme.range, Mme.range, AQ.range, Nme.range, Pme.range;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -53563,8 +53528,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), Ime = jQ(2), Lme = jQ(3), PQ = jQ(4), Rme = jQ(5), zme = jQ(6);
-MQ.range, NQ.range, Ime.range, Lme.range, PQ.range, Rme.range, zme.range;
+var MQ = jQ(0), NQ = jQ(1), Fme = jQ(2), Ime = jQ(3), PQ = jQ(4), Lme = jQ(5), Rme = jQ(6);
+MQ.range, NQ.range, Fme.range, Ime.range, PQ.range, Lme.range, Rme.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -53703,7 +53668,7 @@ function zQ(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = fX(([, , e]) => e).right(o, i);
+ let i = Math.abs(n - t) / r, a = dX(([, , e]) => e).right(o, i);
if (a === o.length) return e.every(DX(t / vQ, n / vQ, r));
if (a === 0) return dQ.every(Math.max(DX(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
@@ -53711,7 +53676,7 @@ function zQ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [Bme, Vme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Hme, Ume] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [zme, Bme] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [Vme, Hme] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -53739,7 +53704,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function Wme(e) {
+function Ume(e) {
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {
a: N,
A: ee,
@@ -53748,31 +53713,31 @@ function Wme(e) {
c: null,
d: QQ,
e: QQ,
- f: phe,
- g: Che,
- G: The,
- H: uhe,
- I: dhe,
- j: fhe,
+ f: fhe,
+ g: She,
+ G: whe,
+ H: lhe,
+ I: uhe,
+ j: dhe,
L: $Q,
- m: mhe,
- M: hhe,
+ m: phe,
+ M: mhe,
p: F,
q: ne,
- Q: a$,
- s: o$,
- S: ghe,
- u: _he,
- U: vhe,
- V: yhe,
- w: bhe,
- W: xhe,
+ Q: o$,
+ s: s$,
+ S: hhe,
+ u: ghe,
+ U: _he,
+ V: vhe,
+ w: yhe,
+ W: bhe,
x: null,
X: null,
- y: She,
- Y: whe,
- Z: Ehe,
- "%": i$
+ y: xhe,
+ Y: Che,
+ Z: The,
+ "%": a$
}, b = {
a: re,
A: ie,
@@ -53781,31 +53746,31 @@ function Wme(e) {
c: null,
d: t$,
e: t$,
- f: Ahe,
- g: Bhe,
- G: Hhe,
- H: Dhe,
- I: Ohe,
- j: khe,
+ f: khe,
+ g: Rhe,
+ G: Bhe,
+ H: Ehe,
+ I: Dhe,
+ j: Ohe,
L: n$,
- m: jhe,
- M: Mhe,
+ m: Ahe,
+ M: r$,
p: ae,
q: oe,
- Q: a$,
- s: o$,
- S: Nhe,
- u: Phe,
- U: Fhe,
- V: Ihe,
- w: Lhe,
- W: Rhe,
+ Q: o$,
+ s: s$,
+ S: jhe,
+ u: Mhe,
+ U: Nhe,
+ V: Phe,
+ w: Fhe,
+ W: Ihe,
x: null,
X: null,
- y: zhe,
- Y: Vhe,
- Z: Uhe,
- "%": i$
+ y: Lhe,
+ Y: zhe,
+ Z: Vhe,
+ "%": a$
}, x = {
a: E,
A: D,
@@ -53814,31 +53779,31 @@ function Wme(e) {
c: A,
d: XQ,
e: XQ,
- f: ohe,
+ f: ahe,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: nhe,
- L: ahe,
- m: the,
- M: rhe,
+ j: the,
+ L: ihe,
+ m: ehe,
+ M: nhe,
p: T,
- q: ehe,
- Q: che,
- s: lhe,
- S: ihe,
- u: Yme,
- U: Xme,
- V: Zme,
- w: Jme,
- W: Qme,
+ q: $me,
+ Q: she,
+ s: che,
+ S: rhe,
+ u: Jme,
+ U: Yme,
+ V: Xme,
+ w: qme,
+ W: Zme,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: $me,
- "%": she
+ Z: Qme,
+ "%": ohe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
@@ -53966,37 +53931,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, Gme = /^%/, Kme = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, Wme = /^%/, Gme = /[\\^$*+?|[\]().{}]/g;
function GQ(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function qme(e) {
- return e.replace(Kme, "\\$&");
+function Kme(e) {
+ return e.replace(Gme, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(qme).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(Kme).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function Jme(e, t, n) {
+function qme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function Yme(e, t, n) {
+function Jme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function Xme(e, t, n) {
+function Yme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Zme(e, t, n) {
+function Xme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Qme(e, t, n) {
+function Zme(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -54008,15 +53973,15 @@ function YQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function $me(e, t, n) {
+function Qme(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function ehe(e, t, n) {
+function $me(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function the(e, t, n) {
+function ehe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -54024,7 +53989,7 @@ function XQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function nhe(e, t, n) {
+function the(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -54032,174 +53997,174 @@ function ZQ(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function rhe(e, t, n) {
+function nhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function ihe(e, t, n) {
+function rhe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function ahe(e, t, n) {
+function ihe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function ohe(e, t, n) {
+function ahe(e, t, n) {
var r = WQ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function she(e, t, n) {
- var r = Gme.exec(t.slice(n, n + 1));
+function ohe(e, t, n) {
+ var r = Wme.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function che(e, t, n) {
+function she(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function lhe(e, t, n) {
+function che(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function QQ(e, t) {
return GQ(e.getDate(), t, 2);
}
-function uhe(e, t) {
+function lhe(e, t) {
return GQ(e.getHours(), t, 2);
}
-function dhe(e, t) {
+function uhe(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function fhe(e, t) {
+function dhe(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function phe(e, t) {
+function fhe(e, t) {
return $Q(e, t) + "000";
}
-function mhe(e, t) {
+function phe(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function hhe(e, t) {
+function mhe(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function ghe(e, t) {
+function hhe(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function _he(e) {
+function ghe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function vhe(e, t) {
+function _he(e, t) {
return GQ(OQ.count(LQ(e) - 1, e), t, 2);
}
function e$(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);
}
-function yhe(e, t) {
+function vhe(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function bhe(e) {
+function yhe(e) {
return e.getDay();
}
-function xhe(e, t) {
+function bhe(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function She(e, t) {
+function xhe(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function Che(e, t) {
+function She(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function whe(e, t) {
+function Che(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function The(e, t) {
+function whe(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function Ehe(e) {
+function The(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);
}
function t$(e, t) {
return GQ(e.getUTCDate(), t, 2);
}
-function Dhe(e, t) {
+function Ehe(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function Ohe(e, t) {
+function Dhe(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function khe(e, t) {
+function Ohe(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function Ahe(e, t) {
+function khe(e, t) {
return n$(e, t) + "000";
}
-function jhe(e, t) {
+function Ahe(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function Mhe(e, t) {
+function r$(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function Nhe(e, t) {
+function jhe(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function Phe(e) {
+function Mhe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Fhe(e, t) {
+function Nhe(e, t) {
return GQ(MQ.count(RQ(e) - 1, e), t, 2);
}
-function r$(e) {
+function i$(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);
}
-function Ihe(e, t) {
- return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
+function Phe(e, t) {
+ return e = i$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function Lhe(e) {
+function Fhe(e) {
return e.getUTCDay();
}
-function Rhe(e, t) {
+function Ihe(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function zhe(e, t) {
+function Lhe(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Bhe(e, t) {
- return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
+function Rhe(e, t) {
+ return e = i$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function Vhe(e, t) {
+function zhe(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Hhe(e, t) {
+function Bhe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Uhe() {
+function Vhe() {
return "+0000";
}
-function i$() {
+function a$() {
return "%";
}
-function a$(e) {
+function o$(e) {
return +e;
}
-function o$(e) {
+function s$(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var s$, c$, l$;
-Whe({
+var c$, l$, u$;
+Hhe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -54251,18 +54216,18 @@ Whe({
"Dec"
]
});
-function Whe(e) {
- return s$ = Wme(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function Hhe(e) {
+ return c$ = Ume(e), l$ = c$.format, c$.parse, u$ = c$.utcFormat, c$.utcParse, c$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function Ghe(e) {
+function Uhe(e) {
return new Date(e);
}
-function Khe(e) {
+function Whe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function u$(e, t, n, r, i, a, o, s, c, l) {
+function d$(e, t, n, r, i, a, o, s, c, l) {
var u = EZ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
@@ -54270,7 +54235,7 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, Khe)) : f().map(Ghe);
+ return arguments.length ? f(Array.from(e, Whe)) : f().map(Uhe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -54280,20 +54245,20 @@ function u$(e, t, n, r, i, a, o, s, c, l) {
var n = f();
return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(WZ(n, e)) : u;
}, u.copy = function() {
- return wZ(u, u$(e, t, n, r, i, a, o, s, c, l));
+ return wZ(u, d$(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function qhe() {
- return NX.apply(u$(Hme, Ume, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function Ghe() {
+ return NX.apply(d$(Vme, Hme, LQ, FQ, OQ, wQ, SQ, bQ, yQ, l$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function Jhe() {
- return NX.apply(u$(Bme, Vme, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Khe() {
+ return NX.apply(d$(zme, Bme, RQ, IQ, MQ, TQ, CQ, xQ, yQ, u$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function d$() {
+function f$() {
var e = 0, t = 1, n, r, i, a, o = SZ, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
@@ -54317,61 +54282,61 @@ function d$() {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function f$(e, t) {
+function p$(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
-function p$() {
- var e = VZ(d$()(SZ));
- return e.copy = function() {
- return f$(e, p$());
- }, PX.apply(e, arguments);
-}
function m$() {
- var e = JZ(d$()).domain([1, 10]);
+ var e = VZ(f$()(SZ));
return e.copy = function() {
- return f$(e, m$()).base(e.base());
+ return p$(e, m$());
}, PX.apply(e, arguments);
}
function h$() {
- var e = QZ(d$());
+ var e = JZ(f$()).domain([1, 10]);
return e.copy = function() {
- return f$(e, h$()).constant(e.constant());
+ return p$(e, h$()).base(e.base());
}, PX.apply(e, arguments);
}
function g$() {
- var e = tQ(d$());
+ var e = QZ(f$());
+ return e.copy = function() {
+ return p$(e, g$()).constant(e.constant());
+ }, PX.apply(e, arguments);
+}
+function _$() {
+ var e = tQ(f$());
return e.copy = function() {
- return f$(e, g$()).exponent(e.exponent());
+ return p$(e, _$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Yhe() {
- return g$.apply(null, arguments).exponent(.5);
+function qhe() {
+ return _$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function _$() {
+function v$() {
var e = [], t = SZ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((_X(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((gX(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(dX), n;
+ return e.sort(uX), 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) => Ppe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Npe(e, r / t));
}, n.copy = function() {
- return _$(t).domain(e);
+ return v$(t).domain(e);
}, PX.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function v$() {
+function y$() {
var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = SZ, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
@@ -54390,7 +54355,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = sme(e, [
+ return arguments.length ? ([n, r, i] = t, l = ome(e, [
n,
r,
i
@@ -54407,115 +54372,115 @@ function v$() {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function y$() {
- var e = VZ(v$()(SZ));
+function b$() {
+ var e = VZ(y$()(SZ));
return e.copy = function() {
- return f$(e, y$());
+ return p$(e, b$());
}, PX.apply(e, arguments);
}
-function b$() {
- var e = JZ(v$()).domain([
+function x$() {
+ var e = JZ(y$()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return f$(e, b$()).base(e.base());
+ return p$(e, x$()).base(e.base());
}, PX.apply(e, arguments);
}
-function x$() {
- var e = QZ(v$());
+function S$() {
+ var e = QZ(y$());
return e.copy = function() {
- return f$(e, x$()).constant(e.constant());
+ return p$(e, S$()).constant(e.constant());
}, PX.apply(e, arguments);
}
-function S$() {
- var e = tQ(v$());
+function C$() {
+ var e = tQ(y$());
return e.copy = function() {
- return f$(e, S$()).exponent(e.exponent());
+ return p$(e, C$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function Xhe() {
- return S$.apply(null, arguments).exponent(.5);
+function Jhe() {
+ return C$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var C$ = /* @__PURE__ */ N({
+var w$ = /* @__PURE__ */ N({
scaleBand: () => LX,
- scaleDiverging: () => y$,
- scaleDivergingLog: () => b$,
- scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => Xhe,
- scaleDivergingSymlog: () => x$,
+ scaleDiverging: () => b$,
+ scaleDivergingLog: () => x$,
+ scaleDivergingPow: () => C$,
+ scaleDivergingSqrt: () => Jhe,
+ scaleDivergingSymlog: () => S$,
scaleIdentity: () => UZ,
scaleImplicit: () => FX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
scaleOrdinal: () => IX,
- scalePoint: () => Lpe,
+ scalePoint: () => Ipe,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
scaleRadial: () => iQ,
- scaleSequential: () => p$,
- scaleSequentialLog: () => m$,
- scaleSequentialPow: () => g$,
- scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => Yhe,
- scaleSequentialSymlog: () => h$,
- scaleSqrt: () => Ame,
+ scaleSequential: () => m$,
+ scaleSequentialLog: () => h$,
+ scaleSequentialPow: () => _$,
+ scaleSequentialQuantile: () => v$,
+ scaleSequentialSqrt: () => qhe,
+ scaleSequentialSymlog: () => g$,
+ scaleSqrt: () => kme,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => qhe,
- scaleUtc: () => Jhe,
+ scaleTime: () => Ghe,
+ scaleUtc: () => Khe,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Zhe(e) {
- if (e in C$) return C$[e]();
- var t = `scale${lz(e)}`;
- if (t in C$) return C$[t]();
+function Yhe(e) {
+ if (e in w$) return w$[e]();
+ var t = `scale${cz(e)}`;
+ if (t in w$) return w$[t]();
}
-function w$(e, t, n) {
+function T$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Zhe(e);
+ var r = Yhe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function T$(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? w$(e.scale, n, r) : w$(t, n, r);
+function E$(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? T$(e.scale, n, r) : T$(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Qhe(e) {
- return `scale${lz(e)}`;
+function Xhe(e) {
+ return `scale${cz(e)}`;
}
-function $he(e) {
- return Qhe(e) in C$;
+function Zhe(e) {
+ return Xhe(e) in w$;
}
-var E$ = (e, t, n) => {
+var D$ = (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 $he(r) ? r : "point";
+ if (typeof r == "string") return Zhe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function ege(e, t) {
+function Qhe(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 D$(e, t) {
+function O$(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 = ege(r, e);
+ var t = Qhe(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;
@@ -54525,12 +54490,12 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function tge(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
+function $he(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : O$(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function O$(e, t) {
+function k$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54540,30 +54505,30 @@ function O$(e, t) {
}
return n;
}
-function k$(e) {
+function A$(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) {
- nge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
+ t % 2 ? k$(Object(n), !0).forEach(function(t) {
+ ege(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nge(e, t, n) {
- return (t = rge(t)) in e ? Object.defineProperty(e, t, {
+function ege(e, t, n) {
+ return (t = tge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rge(e) {
- var t = ige(e, "string");
+function tge(e) {
+ var t = nge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ige(e, t) {
+function nge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54573,7 +54538,7 @@ function ige(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var A$ = [0, "auto"], j$ = {
+var j$ = [0, "auto"], M$ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -54602,13 +54567,13 @@ var A$ = [0, "auto"], j$ = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, M$ = (e, t) => e.cartesianAxis.xAxis[t], N$ = (e, t) => M$(e, t) ?? j$, P$ = {
+}, N$ = (e, t) => e.cartesianAxis.xAxis[t], P$ = (e, t) => N$(e, t) ?? M$, F$ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: A$,
+ domain: j$,
hide: !0,
id: 0,
includeHidden: !1,
@@ -54631,7 +54596,7 @@ var A$ = [0, "auto"], j$ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, age = {
+}, I$ = (e, t) => e.cartesianAxis.yAxis[t], L$ = (e, t) => I$(e, t) ?? F$, rge = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -54644,31 +54609,31 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? age, R$ = (e, t, n) => {
+}, R$ = (e, t) => e.cartesianAxis.zAxis[t] ?? rge, z$ = (e, t, n) => {
switch (t) {
- case "xAxis": return N$(e, n);
- case "yAxis": return I$(e, n);
- case "zAxis": return L$(e, n);
- case "angleAxis": return HY(e, n);
- case "radiusAxis": return UY(e, n);
+ case "xAxis": return P$(e, n);
+ case "yAxis": return L$(e, n);
+ case "zAxis": return R$(e, n);
+ case "angleAxis": return VY(e, n);
+ case "radiusAxis": return HY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, oge = (e, t, n) => {
+}, ige = (e, t, n) => {
switch (t) {
- case "xAxis": return N$(e, n);
- case "yAxis": return I$(e, n);
+ case "xAxis": return P$(e, n);
+ case "yAxis": return L$(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, z$ = (e, t, n) => {
+}, B$ = (e, t, n) => {
switch (t) {
- case "xAxis": return N$(e, n);
- case "yAxis": return I$(e, n);
- case "angleAxis": return HY(e, n);
- case "radiusAxis": return UY(e, n);
+ case "xAxis": return P$(e, n);
+ case "yAxis": return L$(e, n);
+ case "angleAxis": return VY(e, n);
+ case "radiusAxis": return HY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, B$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function V$(e, t) {
+}, V$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function H$(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -54680,58 +54645,58 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, sge = $([$Y, eX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
- H$,
- R$,
- sge
-], U$, { memoizeOptions: { resultEqualityCheck: aX } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(rX)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), cge = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), lge = $([W$], q$, { memoizeOptions: { resultEqualityCheck: aX } }), J$ = (e, t) => {
+var U$ = (e) => e.graphicalItems.cartesianItems, age = $([QY, $Y], H$), W$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), G$ = $([
+ U$,
+ z$,
+ age
+], W$, { memoizeOptions: { resultEqualityCheck: iX } }), K$ = $([G$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(nX)), q$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), oge = $([G$], q$), J$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), sge = $([G$], J$, { memoizeOptions: { resultEqualityCheck: iX } }), Y$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([lge, rY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: JH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: JH(e, t.dataKey) })), Z$ = $([
- Y$,
- R$,
- W$
-], X$);
-function Q$(e) {
- if (nz(e) || e instanceof Date) {
+}, X$ = $([sge, nY], Y$), Z$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: qH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: qH(e, t.dataKey) })), Q$ = $([
+ X$,
+ z$,
+ G$
+], Z$);
+function $$(e) {
+ if (tz(e) || e instanceof Date) {
var t = Number(e);
- if (VH(t)) return t;
+ if (BH(t)) return t;
}
}
-function $$(e) {
+function e1(e) {
if (Array.isArray(e)) {
- var t = [Q$(e[0]), Q$(e[1])];
- return aY(t) ? t : void 0;
+ var t = [$$(e[0]), $$(e[1])];
+ return iY(t) ? t : void 0;
}
- var n = Q$(e);
+ var n = $$(e);
if (n != null) return [n, n];
}
-function e1(e) {
- return e.map(Q$).filter(uz);
+function t1(e) {
+ return e.map($$).filter(lz);
}
-function uge(e, t) {
- var n = Q$(e), r = Q$(t);
+function cge(e, t) {
+ var n = $$(e), r = $$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var dge = $([Z$], (e) => e?.map((e) => e.value).sort(uge));
-function t1(e, t) {
+var lge = $([Q$], (e) => e?.map((e) => e.value).sort(cge));
+function n1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function fge(e, t, n) {
- return !n || typeof t != "number" || ez(t) || !n.length ? [] : e1(n.flatMap((n) => {
- var r = JH(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!VH(i) || !VH(a))) return [t - i, t + a];
+function uge(e, t, n) {
+ return !n || typeof t != "number" || $R(t) || !n.length ? [] : t1(n.flatMap((n) => {
+ var r = qH(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!BH(i) || !BH(a))) return [t - i, t + a];
}));
}
-var n1 = (e) => z$(e, sX(e), cX(e)), r1 = $([n1], (e) => e?.dataKey), pge = $([
- G$,
- rY,
- n1
-], nX), i1 = (e, t, n, r) => {
+var r1 = (e) => B$(e, oX(e), sX(e)), i1 = $([r1], (e) => e?.dataKey), dge = $([
+ K$,
+ nY,
+ r1
+], tX), a1 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -54740,168 +54705,168 @@ var n1 = (e) => z$(e, sX(e), cX(e)), r1 = $([n1], (e) => e?.dataKey), pge = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: tU(e, o.map(tX), n),
+ stackedData: eU(e, o.map(eX), n),
graphicalItems: o
}];
}));
-}, a1 = $([
- pge,
- G$,
- CY,
- wY
-], i1), o1 = (e, t, n, r) => {
+}, o1 = $([
+ dge,
+ K$,
+ SY,
+ CY
+], a1), s1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = cU(e, i, a);
+ var o = sU(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, mge = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
- if (e == null || !("domain" in e)) return A$;
+}, fge = $([z$], (e) => e.allowDataOverflow), c1 = (e) => {
+ if (e == null || !("domain" in e)) return j$;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = e1(e.ticks);
+ var t = t1(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, mge], sY), hge = $([
- a1,
- tY,
- $Y,
- l1
-], o1, { memoizeOptions: { resultEqualityCheck: iX } }), u1 = (e) => e.errorBars, gge = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
+ return e?.domain ?? j$;
+}, l1 = $([z$], c1), u1 = $([l1, fge], oY), pge = $([
+ o1,
+ eY,
+ QY,
+ u1
+], s1, { memoizeOptions: { resultEqualityCheck: rX } }), d1 = (e) => e.errorBars, mge = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => n1(n, e)), f1 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, f1 = (e, t, n, r, i) => {
+}, p1 = (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) => t1(i, e)), c = JH(e, t.dataKey ?? n.dataKey), l = fge(e, c, s);
+ var s = r[n.id]?.filter((e) => n1(i, e)), c = qH(e, t.dataKey ?? n.dataKey), l = uge(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 = $$(c);
+ var f = e1(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 = $$(JH(e, t.dataKey));
+ var n = e1(qH(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), VH(a) && VH(o)) return [a, o];
-}, _ge = $([
- Y$,
- R$,
- cge,
- u1,
- $Y
-], f1, { memoizeOptions: { resultEqualityCheck: iX } });
-function vge(e) {
+ }), BH(a) && BH(o)) return [a, o];
+}, hge = $([
+ X$,
+ z$,
+ oge,
+ d1,
+ QY
+], p1, { memoizeOptions: { resultEqualityCheck: rX } });
+function gge(e) {
var { value: t } = e;
- if (nz(t) || t instanceof Date) return t;
-}
-var yge = (e, t, n) => {
- var r = e.map(vge).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && az(r)) ? eY(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), bge = $([
- p1,
- $Y,
- eX
-], m1), h1 = (e) => e.referenceElements.areas, xge = $([
- h1,
- $Y,
- eX
-], m1), g1 = (e) => e.referenceElements.lines, Sge = $([
+ if (tz(t) || t instanceof Date) return t;
+}
+var _ge = (e, t, n) => {
+ var r = e.map(gge).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && iz(r)) ? $J(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, m1 = (e) => e.referenceElements.dots, h1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), vge = $([
+ m1,
+ QY,
+ $Y
+], h1), g1 = (e) => e.referenceElements.areas, yge = $([
g1,
- $Y,
- eX
-], m1), _1 = (e, t) => {
+ QY,
+ $Y
+], h1), _1 = (e) => e.referenceElements.lines, bge = $([
+ _1,
+ QY,
+ $Y
+], h1), v1 = (e, t) => {
if (e != null) {
- var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = t1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Cge = $(bge, $Y, _1), v1 = (e, t) => {
+}, xge = $(vge, QY, v1), y1 = (e, t) => {
if (e != null) {
- var n = e1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = t1(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)];
}
-}, wge = $([xge, $Y], v1);
-function Tge(e) {
- if (e.x != null) return e1([e.x]);
+}, Sge = $([yge, QY], y1);
+function Cge(e) {
+ if (e.x != null) return t1([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : e1(t);
+ return t == null || t.length === 0 ? [] : t1(t);
}
-function Ege(e) {
- if (e.y != null) return e1([e.y]);
+function wge(e) {
+ if (e.y != null) return t1([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : e1(t);
+ return t == null || t.length === 0 ? [] : t1(t);
}
-var y1 = (e, t) => {
+var b1 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Tge(e) : Ege(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Cge(e) : wge(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Dge = $(Cge, $([Sge, $Y], y1), wge, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? cY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), Oge = $([
- R$,
- c1,
+}, Tge = $(xge, $([bge, QY], b1), Sge, (e, t, n) => f1(e, n, t)), x1 = (e, t, n, r, i, a, o, s) => n ?? sY(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? f1(r, a, i) : f1(a, i), e.allowDataOverflow), Ege = $([
+ z$,
l1,
+ u1,
+ pge,
hge,
- _ge,
- Dge,
- _W,
- $Y
-], b1, { memoizeOptions: { resultEqualityCheck: iX } }), kge = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+ Tge,
+ gW,
+ QY
+], x1, { memoizeOptions: { resultEqualityCheck: rX } }), Dge = [0, 1], S1 = (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 = XH(t, a);
- return l && s == null ? eY(0, n?.length ?? 0) : c === "category" ? yge(r, e, l) : i === "expand" ? kge : o;
- }
-}, S1 = $([
- R$,
- _W,
- Y$,
- Z$,
- CY,
- $Y,
- Oge
-], x1), C1 = $([
- R$,
- B$,
- TY
-], E$), w1 = (e, t, n) => {
+ var { dataKey: s, type: c } = e, l = YH(t, a);
+ return l && s == null ? $J(0, n?.length ?? 0) : c === "category" ? _ge(r, e, l) : i === "expand" ? Dge : o;
+ }
+}, C1 = $([
+ z$,
+ gW,
+ X$,
+ Q$,
+ SY,
+ QY,
+ Ege
+], S1), w1 = $([
+ z$,
+ V$,
+ wY
+], D$), T1 = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = s1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && aY(e)) {
- if (a) return _Y(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return vY(e, t.tickCount, t.allowDecimals, r);
+ var i = c1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && iY(e)) {
+ if (a) return gY(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return _Y(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && aY(e)) return _Y(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && aY(e)) return vY(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && iY(e)) return gY(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && iY(e)) return _Y(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, T1 = $([
- S1,
- z$,
- C1
-], w1), E1 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && aY(t) && Array.isArray(n) && n.length > 0) {
+}, E1 = $([
+ C1,
+ B$,
+ w1
+], T1), D1 = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && iY(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;
-}, Age = $([
- R$,
- S1,
- T1,
- $Y
-], E1), D1 = $($(Z$, R$, (e, t) => {
+}, Oge = $([
+ z$,
+ C1,
+ E1,
+ QY
+], D1), O1 = $($(Q$, z$, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(e1(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(t1(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;
@@ -54914,22 +54879,22 @@ var y1 = (e, t) => {
}
return n / o;
}
-}), _W, xY, NU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!VH(e)) return 0;
+}), gW, bY, MU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!BH(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = iz(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;
-}), jge = (e, t, n) => {
- var r = N$(e, t);
- return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, Mge = (e, t, n) => {
- var r = I$(e, t);
- return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, Nge = $(N$, jge, (e, t) => {
+}), kge = (e, t, n) => {
+ var r = P$(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : O1(e, "xAxis", t, n, r.padding);
+}, Age = (e, t, n) => {
+ var r = L$(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : O1(e, "yAxis", t, n, r.padding);
+}, jge = $(P$, kge, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -54942,7 +54907,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), Pge = $(I$, Mge, (e, t) => {
+}), Mge = $(L$, Age, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -54955,98 +54920,98 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), Fge = $([
- NU,
- Nge,
- zU,
+}), Nge = $([
+ MU,
+ jge,
RU,
+ LU,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), Ige = $([
- NU,
- _W,
- Pge,
- zU,
+}), Pge = $([
+ MU,
+ gW,
+ Mge,
RU,
+ LU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), O1 = (e, t, n, r) => {
+}), k1 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return Fge(e, n, r);
- case "yAxis": return Ige(e, n, r);
- case "zAxis": return L$(e, n)?.range;
- case "angleAxis": return JY(e);
- case "radiusAxis": return XY(e, n);
+ case "xAxis": return Nge(e, n, r);
+ case "yAxis": return Pge(e, n, r);
+ case "zAxis": return R$(e, n)?.range;
+ case "angleAxis": return qY(e);
+ case "radiusAxis": return YY(e, n);
default: return;
}
-}, k1 = $([R$, O1], NY), A1 = $([
- R$,
- C1,
- $([C1, Age], uX),
- k1
-], T$), j1 = (e, t, n, r) => {
+}, A1 = $([z$, k1], MY), j1 = $([
+ z$,
+ w1,
+ $([w1, Oge], lX),
+ A1
+], E$), M1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (XH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (YH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, M1 = $([
- _W,
- Z$,
- z$,
- $Y
-], j1), N1 = $([A1], lX);
-$([A1], tge), $([A1, dge], D$), $([
- W$,
- u1,
- $Y
-], gge);
-function P1(e, t) {
+}, N1 = $([
+ gW,
+ Q$,
+ B$,
+ QY
+], M1), P1 = $([j1], cX);
+$([j1], $he), $([j1, lge], O$), $([
+ G$,
+ d1,
+ QY
+], mge);
+function F1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, Lge = $(bU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Rge = $(xU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
+var I1 = (e, t) => t, L1 = (e, t, n) => n, Fge = $(yU, I1, L1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(F1)), Ige = $(bU, I1, L1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(F1)), R1 = (e, t) => ({
width: e.width,
height: t.height
-}), zge = (e, t) => ({
+}), Lge = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(NU, N$, L1), Bge = (e, t, n) => {
+}), z1 = $(MU, P$, R1), Rge = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, Vge = (e, t, n) => {
+}, zge = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, z1 = $(_U, NU, Lge, F1, I1, (e, t, n, r, i) => {
+}, Bge = $(gU, MU, Fge, I1, L1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = L1(t, n);
- o ??= Bge(t, r, e);
+ var s = R1(t, n);
+ o ??= Rge(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;
-}), Hge = $(gU, NU, Rge, F1, I1, (e, t, n, r, i) => {
+}), Vge = $(hU, MU, Ige, I1, L1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = zge(t, n);
- o ??= Vge(t, r, e);
+ var s = Lge(t, n);
+ o ??= zge(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;
-}), Uge = $([
- NU,
- N$,
+}), Hge = $([
+ MU,
+ P$,
(e, t) => {
- var n = N$(e, t);
- if (n != null) return z1(e, n.orientation, n.mirror);
+ var n = P$(e, t);
+ if (n != null) return Bge(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -55060,12 +55025,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Lge = $(bU, F1, I1, (e, t, n) => e.fi
y: i
};
}
-}), Wge = $([
- NU,
- I$,
+}), Uge = $([
+ MU,
+ L$,
(e, t) => {
- var n = I$(e, t);
- if (n != null) return Hge(e, n.orientation, n.mirror);
+ var n = L$(e, t);
+ if (n != null) return Vge(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -55079,38 +55044,38 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Lge = $(bU, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), B1 = $(NU, I$, (e, t) => ({
+}), B1 = $(MU, L$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), V1 = (e, t, n) => {
switch (t) {
- case "xAxis": return R1(e, n).width;
+ case "xAxis": return z1(e, n).width;
case "yAxis": return B1(e, n).height;
default: return;
}
}, H1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = XH(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && az(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = YH(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && iz(c)) return c;
}
}, U1 = $([
- _W,
- Z$,
- R$,
- $Y
+ gW,
+ Q$,
+ z$,
+ QY
], H1), W1 = $([
- _W,
- oge,
- C1,
- N1,
+ gW,
+ ige,
+ w1,
+ P1,
U1,
- M1,
- O1,
- T1,
- $Y
+ N1,
+ k1,
+ E1,
+ QY
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = XH(e, c);
+ var l = YH(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -55134,105 +55099,105 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, Lge = $(bU, F1, I1, (e, t, n) => e.fi
}
}), G1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = XH(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 ? $R(a[0] - a[1]) * 2 * m : m;
+ var l = YH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? QR(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return VH(i) ? {
+ return BH(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(uz) : l && s ? s.map((e, t) => {
+ }).filter(lz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(uz) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(lz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(uz) : r.domain().map((e, t) => {
+ }).filter(lz) : r.domain().map((e, t) => {
var n = r.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(uz);
+ }).filter(lz);
}
}, K1 = $([
- _W,
- z$,
- C1,
- N1,
- T1,
- O1,
+ gW,
+ B$,
+ w1,
+ P1,
+ E1,
+ k1,
U1,
- M1,
- $Y
+ N1,
+ QY
], G1), q1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = XH(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? $R(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = YH(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? QR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return VH(r) ? {
+ return BH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(uz) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(lz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return VH(r) ? {
+ return BH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(uz) : n.domain().map((e, t) => {
+ }).filter(lz) : n.domain().map((e, t) => {
var r = n.map(e);
- return VH(r) ? {
+ return BH(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(uz);
+ }).filter(lz);
}
}, J1 = $([
- _W,
- z$,
- N1,
- O1,
+ gW,
+ B$,
+ P1,
+ k1,
U1,
- M1,
- $Y
-], q1), Y1 = $(R$, N1, (e, t) => {
- if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
+ N1,
+ QY
+], q1), Y1 = $(z$, P1, (e, t) => {
+ if (e != null && t != null) return A$(A$({}, e), {}, { scale: t });
});
-$((e, t, n) => L$(e, n), $([$([
- R$,
+$((e, t, n) => R$(e, n), $([$([
+ z$,
+ w1,
C1,
- S1,
- k1
-], T$)], lX), (e, t) => {
- if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
+ A1
+], E$)], cX), (e, t) => {
+ if (e != null && t != null) return A$(A$({}, e), {}, { scale: t });
});
-var Gge = $([
- _W,
- bU,
- xU
+var Wge = $([
+ gW,
+ yU,
+ bU
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -55263,21 +55228,21 @@ function Q1(e, t, n) {
function $1(e, t) {
return Q1(t, X1(e), Z1(e));
}
-function Kge(e) {
+function Gge(e) {
return Q((t) => $1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var e0 = (e, t) => {
var n, r = Number(t);
- if (!(ez(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, qge = (e) => e.tooltip.settings, t0 = {
+ if (!($R(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, Kge = (e) => e.tooltip.settings, t0 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, n0 = KV({
+}, n0 = GV({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -55310,23 +55275,23 @@ var e0 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(yG(t.payload));
+ e.tooltipItemPayloads.push(vG(t.payload));
},
- prepare: jV()
+ prepare: AV()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bV(e).tooltipItemPayloads.indexOf(yG(n));
- i > -1 && (e.tooltipItemPayloads[i] = yG(r));
+ var { prev: n, next: r } = t.payload, i = yV(e).tooltipItemPayloads.indexOf(vG(n));
+ i > -1 && (e.tooltipItemPayloads[i] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = bV(e).tooltipItemPayloads.indexOf(yG(t.payload));
+ var n = yV(e).tooltipItemPayloads.indexOf(vG(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: jV()
+ prepare: AV()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -55356,7 +55321,7 @@ var e0 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: Jge, replaceTooltipEntrySettings: Yge, removeTooltipEntrySettings: Xge, setTooltipSettingsState: Zge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Qge, mouseLeaveChart: i0, setActiveClickItemIndex: $ge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: e_e, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, t_e = n0.reducer;
+}), { addTooltipEntrySettings: qge, replaceTooltipEntrySettings: Jge, removeTooltipEntrySettings: Yge, setTooltipSettingsState: Xge, setActiveMouseOverItemIndex: r0, mouseLeaveItem: Zge, mouseLeaveChart: i0, setActiveClickItemIndex: Qge, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: $ge, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, e_e = n0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function c0(e, t) {
@@ -55373,26 +55338,26 @@ function l0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? c0(Object(n), !0).forEach(function(t) {
- n_e(e, t, n[t]);
+ t_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function n_e(e, t, n) {
- return (t = r_e(t)) in e ? Object.defineProperty(e, t, {
+function t_e(e, t, n) {
+ return (t = n_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function r_e(e) {
- var t = i_e(e, "string");
+function n_e(e) {
+ var t = r_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function i_e(e, t) {
+function r_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55402,21 +55367,21 @@ function i_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function a_e(e, t, n) {
+function i_e(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function o_e(e) {
+function a_e(e) {
return e.index != null;
}
var u0 = (e, t, n, r) => {
if (t == null) return t0;
- var i = a_e(e, t, n);
+ var i = i_e(e, t, n);
if (i == null) return t0;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (o_e(i)) {
+ if (a_e(i)) {
if (a) return l0(l0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -55429,7 +55394,7 @@ var u0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function s_e(e) {
+function o_e(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -55438,24 +55403,24 @@ function s_e(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function c_e(e, t) {
- var n = s_e(e), r = t[0], i = t[1];
+function s_e(e, t) {
+ var n = o_e(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function l_e(e, t, n) {
+function c_e(e, t, n) {
if (n == null || t == null) return !0;
- var r = JH(e, t);
- return r == null || !aY(n) || c_e(r, n);
+ var r = qH(e, t);
+ return r == null || !iY(n) || s_e(r, n);
}
var d0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!VH(a)) return i;
+ if (!BH(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 || l_e(l, n, r) ? String(c) : null;
+ return l == null || c_e(l, n, r) ? String(c) : null;
}, f0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -55499,26 +55464,26 @@ function _0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? g0(Object(n), !0).forEach(function(t) {
- u_e(e, t, n[t]);
+ l_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function u_e(e, t, n) {
- return (t = d_e(t)) in e ? Object.defineProperty(e, t, {
+function l_e(e, t, n) {
+ return (t = u_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function d_e(e) {
- var t = f_e(e, "string");
+function u_e(e) {
+ var t = d_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function f_e(e, t) {
+function d_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55528,186 +55493,186 @@ function f_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function p_e(e) {
+function f_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function m_e(e) {
+function p_e(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function h_e(e) {
+function m_e(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
function v0(e) {
if (typeof e == "string") return e;
}
-function g_e(e) {
+function h_e(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? p_e(e.name) : void 0,
- unit: "unit" in e ? m_e(e.unit) : void 0,
- dataKey: "dataKey" in e ? h_e(e.dataKey) : void 0,
+ name: "name" in e ? f_e(e.name) : void 0,
+ unit: "unit" in e ? p_e(e.unit) : void 0,
+ dataKey: "dataKey" in e ? m_e(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
color: "color" in e ? v0(e.color) : void 0,
fill: "fill" in e ? v0(e.fill) : void 0
};
}
-function __e(e, t) {
+function g_e(e, t) {
return e ?? t;
}
var y0 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = __e(d, s), m = Array.isArray(p) ? BH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? sz(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = g_e(d, s), m = Array.isArray(p) ? zH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oz(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = g_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
+ var n = h_e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(fU({
+ e.push(dU({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: JH(a, i),
+ value: qH(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(fU({
+ }) : e.push(dU({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: JH(_, h),
- name: JH(_, g) ?? f?.name
+ value: qH(_, h),
+ name: qH(_, g) ?? f?.name
})), e;
}, []);
}
}, b0 = $([
- n1,
- B$,
- TY
-], E$), x0 = $([
+ r1,
+ V$,
+ wY
+], D$), x0 = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- n1,
- $([sX, cX], V$)
-], U$, { memoizeOptions: { resultEqualityCheck: aX } }), v_e = $([x0], (e) => e.filter(rX)), S0 = $([$([x0], q$, { memoizeOptions: { resultEqualityCheck: aX } }), tY], J$), y_e = $([
- v_e,
- tY,
- n1
-], nX), C0 = $([
+ r1,
+ $([oX, sX], H$)
+], W$, { memoizeOptions: { resultEqualityCheck: iX } }), __e = $([x0], (e) => e.filter(nX)), S0 = $([$([x0], J$, { memoizeOptions: { resultEqualityCheck: iX } }), eY], Y$), v_e = $([
+ __e,
+ eY,
+ r1
+], tX), C0 = $([
S0,
- n1,
+ r1,
x0
-], X$), w0 = $([n1], s1), T0 = $([w0, $([n1], (e) => e.allowDataOverflow)], sY), b_e = $([
+], Z$), w0 = $([r1], c1), T0 = $([w0, $([r1], (e) => e.allowDataOverflow)], oY), y_e = $([
$([
- y_e,
- $([x0], (e) => e.filter(rX)),
- CY,
- wY
- ], i1),
- tY,
- sX,
+ v_e,
+ $([x0], (e) => e.filter(nX)),
+ SY,
+ CY
+ ], a1),
+ eY,
+ oX,
T0
-], o1), x_e = $([
+], s1), b_e = $([
S0,
- n1,
- $([x0], K$),
- u1,
+ r1,
+ $([x0], q$),
+ d1,
+ oX
+], p1, { memoizeOptions: { resultEqualityCheck: rX } }), x_e = $([$([
+ m1,
+ oX,
+ sX
+], h1), oX], v1), S_e = $([$([
+ g1,
+ oX,
sX
-], f1, { memoizeOptions: { resultEqualityCheck: iX } }), S_e = $([$([
- p1,
- sX,
- cX
-], m1), sX], _1), C_e = $([$([
- h1,
- sX,
- cX
-], m1), sX], v1), E0 = $([
- n1,
- _W,
+], h1), oX], y1), E0 = $([
+ r1,
+ gW,
S0,
C0,
- CY,
- sX,
+ SY,
+ oX,
$([
- n1,
+ r1,
w0,
T0,
+ y_e,
b_e,
- x_e,
$([
- S_e,
+ x_e,
$([$([
- g1,
- sX,
- cX
- ], m1), sX], y1),
- C_e
- ], d1),
- _W,
- sX
- ], b1)
-], x1), w_e = $([
- n1,
+ _1,
+ oX,
+ sX
+ ], h1), oX], b1),
+ S_e
+ ], f1),
+ gW,
+ oX
+ ], x1)
+], S1), C_e = $([
+ r1,
E0,
$([
E0,
- n1,
+ r1,
b0
- ], w1),
- sX
-], E1), D0 = (e) => O1(e, sX(e), cX(e), !1), O0 = $([n1, D0], NY), k0 = $([$([
- n1,
+ ], T1),
+ oX
+], D1), D0 = (e) => k1(e, oX(e), sX(e), !1), O0 = $([r1, D0], MY), k0 = $([$([
+ r1,
b0,
- w_e,
+ C_e,
O0
-], T$)], lX), A0 = $([
- _W,
- n1,
+], E$)], cX), A0 = $([
+ gW,
+ r1,
b0,
k0,
D0,
$([
- _W,
+ gW,
C0,
- n1,
- sX
+ r1,
+ oX
], H1),
$([
- _W,
+ gW,
C0,
- n1,
- sX
- ], j1),
- sX
+ r1,
+ oX
+ ], M1),
+ oX
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = XH(e, s);
+ var { type: c } = t, l = YH(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 ? $R(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? QR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(uz) : r.domain().map((e, t) => {
+ }).filter(lz) : r.domain().map((e, t) => {
var n = r.map(e);
- return VH(n) ? {
+ return BH(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(uz);
+ }).filter(lz);
}
}
}), j0 = $([
X1,
Z1,
- qge
+ Kge
], (e, t, n) => Q1(n.shared, e, t)), M0 = (e) => e.tooltip.settings.trigger, N0 = (e) => e.tooltip.settings.defaultIndex, P0 = $([
h0,
j0,
@@ -55716,30 +55681,30 @@ var y0 = (e, t, n, r, i, a, o) => {
], u0), F0 = $([
P0,
S0,
- r1,
+ i1,
E0
], d0), I0 = $([A0, F0], e0), L0 = $([P0], (e) => {
if (e) return e.dataKey;
-}), T_e = $([P0], (e) => {
+}), w_e = $([P0], (e) => {
if (e) return e.graphicalItemId;
}), R0 = $([
h0,
j0,
M0,
N0
-], p0), E_e = $([P0, $([
+], p0), T_e = $([P0, $([
+ hU,
gU,
- _U,
- _W,
- NU,
+ gW,
+ MU,
A0,
N0,
R0
-], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), D_e = $([P0], (e) => e?.active ?? !1), O_e = $([$([
+], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), E_e = $([P0], (e) => e?.active ?? !1), D_e = $([$([
R0,
F0,
- tY,
- r1,
+ eY,
+ i1,
I0,
m0,
j0
@@ -55765,26 +55730,26 @@ function B0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? z0(Object(n), !0).forEach(function(t) {
- k_e(e, t, n[t]);
+ O_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function k_e(e, t, n) {
- return (t = A_e(t)) in e ? Object.defineProperty(e, t, {
+function O_e(e, t, n) {
+ return (t = k_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function A_e(e) {
- var t = j_e(e, "string");
+function k_e(e) {
+ var t = A_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function j_e(e, t) {
+function A_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55794,9 +55759,9 @@ function j_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var M_e = () => Q(n1), N_e = () => {
- var e = M_e(), t = Q(A0), n = Q(k0);
- return dU(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
+var j_e = () => Q(r1), M_e = () => {
+ var e = j_e(), t = Q(A0), n = Q(k0);
+ return uU(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -55814,26 +55779,26 @@ function H0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V0(Object(n), !0).forEach(function(t) {
- P_e(e, t, n[t]);
+ N_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function P_e(e, t, n) {
- return (t = F_e(t)) in e ? Object.defineProperty(e, t, {
+function N_e(e, t, n) {
+ return (t = P_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function F_e(e) {
- var t = I_e(e, "string");
+function P_e(e) {
+ var t = F_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function I_e(e, t) {
+function F_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55843,7 +55808,7 @@ function I_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var L_e = (e, t, n, r) => {
+var I_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -55859,18 +55824,18 @@ var L_e = (e, t, n, r) => {
x: 0,
y: 0
};
-}, R_e = (e, t, n, r) => {
+}, L_e = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return H0(H0(H0({}, r), OJ(r.cx, r.cy, o, a)), {}, {
+ return H0(H0(H0({}, r), DJ(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return H0(H0(H0({}, r), OJ(r.cx, r.cy, s, c)), {}, {
+ return H0(H0(H0({}, r), DJ(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -55889,7 +55854,7 @@ var L_e = (e, t, n, r) => {
y: 0
};
};
-function z_e(e, t) {
+function R_e(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
@@ -55899,9 +55864,9 @@ var U0 = (e, t, n, r, i) => {
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if ($R(c - s) !== $R(l - c)) {
+ if (QR(c - s) !== QR(l - c)) {
var d = [];
- if ($R(l - c) === $R(i[1] - i[0])) {
+ if (QR(l - c) === QR(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);
@@ -55926,7 +55891,7 @@ var U0 = (e, t, n, r, i) => {
}
}
return -1;
-}, W0 = () => Q(TY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, B_e = $(A0, (e) => nB(e, (e) => e.coordinate)), J0 = $([
+}, W0 = () => Q(wY), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, z_e = $(A0, (e) => tB(e, (e) => e.coordinate)), J0 = $([
h0,
G0,
K0,
@@ -55934,9 +55899,9 @@ var U0 = (e, t, n, r, i) => {
], u0), Y0 = $([
J0,
S0,
- r1,
+ i1,
E0
-], d0), V_e = (e, t, n) => {
+], d0), B_e = (e, t, n) => {
if (t != null) {
var r = h0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
@@ -55947,54 +55912,54 @@ var U0 = (e, t, n, r, i) => {
K0,
q0
], p0), Z0 = $([
+ hU,
gU,
- _U,
- _W,
- NU,
+ gW,
+ MU,
A0,
q0,
X0
-], f0), H_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), U_e = $([
+], f0), V_e = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), H_e = $([
X0,
Y0,
- tY,
- r1,
+ eY,
+ i1,
Q0,
m0,
G0
-], y0), W_e = $([J0, Y0], (e, t) => ({
+], y0), U_e = $([J0, Y0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), G_e = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && z_e(e, o)) {
- var s = U0(mU(e, t), a, i, n, r), c = L_e(t, i, s, e);
+})), W_e = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && R_e(e, o)) {
+ var s = U0(pU(e, t), a, i, n, r), c = I_e(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, K_e = (e, t, n, r, i, a, o) => {
+}, G_e = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = PJ(e, n);
+ var s = NJ(e, n);
if (s) {
- var c = U0(hU(s, t), o, a, r, i), l = R_e(t, a, c, s);
+ var c = U0(mU(s, t), o, a, r, i), l = L_e(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, q_e = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? G_e(e, t, r, i, a, o, s) : K_e(e, t, n, r, i, a, o);
-}, J_e = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, K_e = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? W_e(e, t, r, i, a, o, s) : G_e(e, t, n, r, i, a, o);
+}, q_e = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), Y_e = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(AY));
+}), J_e = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(kY));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: oX } });
+}, { memoizeOptions: { resultEqualityCheck: aX } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function $0(e, t) {
@@ -56011,26 +55976,26 @@ function e2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? $0(Object(n), !0).forEach(function(t) {
- X_e(e, t, n[t]);
+ Y_e(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function X_e(e, t, n) {
- return (t = Z_e(t)) in e ? Object.defineProperty(e, t, {
+function Y_e(e, t, n) {
+ return (t = X_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Z_e(e) {
- var t = Q_e(e, "string");
+function X_e(e) {
+ var t = Z_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Q_e(e, t) {
+function Z_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56040,17 +56005,17 @@ function Q_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $_e = { zIndexMap: Object.values(AY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
+var Q_e = { zIndexMap: Object.values(kY).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, eve = new Set(Object.values(AY));
-function tve(e) {
- return eve.has(e);
+} }), {}) }, $_e = new Set(Object.values(kY));
+function eve(e) {
+ return $_e.has(e);
}
-var t2 = KV({
+var t2 = GV({
name: "zIndex",
- initialState: $_e,
+ initialState: Q_e,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -56061,47 +56026,47 @@ var t2 = KV({
panoramaElement: void 0
};
},
- prepare: jV()
+ prepare: AV()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !tve(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !eve(n) && delete e.zIndexMap[n]);
},
- prepare: jV()
+ prepare: AV()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = yG(r) : e.zIndexMap[n].element = yG(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = vG(r) : e.zIndexMap[n].element = vG(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : yG(r),
- panoramaElement: i ? yG(r) : void 0
+ element: i ? void 0 : vG(r),
+ panoramaElement: i ? vG(r) : void 0
};
},
- prepare: jV()
+ prepare: AV()
},
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: jV()
+ prepare: AV()
}
}
-}), { registerZIndexPortal: nve, unregisterZIndexPortal: rve, registerZIndexPortalElement: ive, unregisterZIndexPortalElement: ave } = t2.actions, ove = t2.reducer;
+}), { registerZIndexPortal: tve, unregisterZIndexPortal: nve, registerZIndexPortalElement: rve, unregisterZIndexPortalElement: ive } = t2.actions, ave = t2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function n2(e) {
- var { zIndex: t, children: n } = e, r = SW() && t !== void 0 && t !== 0, i = LU(), a = Jz();
- (0, I.useLayoutEffect)(() => r ? (a(nve({ zIndex: t })), () => {
- a(rve({ zIndex: t }));
- }) : dz, [
+ var { zIndex: t, children: n } = e, r = xW() && t !== void 0 && t !== 0, i = IU(), a = qz();
+ (0, I.useLayoutEffect)(() => r ? (a(tve({ zIndex: t })), () => {
+ a(nve({ zIndex: t }));
+ }) : uz, [
a,
t,
r
]);
- var o = Q((e) => J_e(e, t, i));
+ var o = Q((e) => q_e(e, t, i));
return r ? o ? /*#__PURE__*/ (0, yh.createPortal)(n, o) : null : n;
}
//#endregion
@@ -56129,26 +56094,26 @@ function a2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i2(Object(n), !0).forEach(function(t) {
- sve(e, t, n[t]);
+ ove(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sve(e, t, n) {
- return (t = cve(t)) in e ? Object.defineProperty(e, t, {
+function ove(e, t, n) {
+ return (t = sve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cve(e) {
- var t = lve(e, "string");
+function sve(e) {
+ var t = cve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lve(e, t) {
+function cve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56158,18 +56123,18 @@ function lve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function uve(e) {
+function lve(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, I.isValidElement)(t) ? /*#__PURE__*/ (0, I.cloneElement)(t, r) : /*#__PURE__*/ (0, I.createElement)(n, r);
}
-function dve(e) {
+function uve(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = cq, h = AY.cursorLine;
- else if (l === "BarChart") p = lq(o, u, i, a), m = yJ, h = AY.cursorRectangle;
- else if (o === "radial" && _z(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = FJ(u);
+ if (l === "ScatterChart") p = u, m = sq, h = kY.cursorLine;
+ else if (l === "BarChart") p = cq(o, u, i, a), m = vJ, h = kY.cursorRectangle;
+ else if (o === "radial" && gz(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = PJ(u);
p = {
cx: g,
cy: _,
@@ -56177,25 +56142,25 @@ function dve(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = XJ, h = AY.cursorLine;
- } else p = { points: ZJ(o, u, i) }, m = ZK, h = AY.cursorLine;
+ }, m = YJ, h = kY.cursorLine;
+ } else p = { points: XJ(o, u, i) }, m = XK, h = kY.cursorLine;
var x = typeof s == "object" && "className" in s ? s.className : void 0, S = a2(a2(a2(a2({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), KL(s)), {}, {
+ }, i), p), GL(s)), {}, {
payload: d,
payloadIndex: f,
className: Wm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(uve, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(lve, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function fve(e) {
- var t = N_e(), n = pW(), r = vW(), i = W0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(dve, r2({}, e, {
+function dve(e) {
+ var t = M_e(), n = fW(), r = _W(), i = W0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(uve, r2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -56204,7 +56169,7 @@ function fve(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var o2 = /*#__PURE__*/ (0, I.createContext)(null), pve = () => (0, I.useContext)(o2), mve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
+var o2 = /*#__PURE__*/ (0, I.createContext)(null), fve = () => (0, I.useContext)(o2), pve = (/* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -56291,12 +56256,12 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), pve = () => (0, I.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, s2 = new mve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
+})))(), 1)).default, s2 = new pve(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!ez(n)) return e[n];
+ if (!$R(n)) return e[n];
}
-}, d2 = KV({
+}, d2 = GV({
name: "options",
initialState: {
chartName: "",
@@ -56307,13 +56272,13 @@ var o2 = /*#__PURE__*/ (0, I.createContext)(null), pve = () => (0, I.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), hve = d2.reducer, { createEventEmitter: gve } = d2.actions;
+}), mve = d2.reducer, { createEventEmitter: hve } = d2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function _ve(e) {
+function gve(e) {
return e.tooltip.syncInteraction;
}
-var f2 = KV({
+var f2 = GV({
name: "chartData",
initialState: {
chartData: void 0,
@@ -56323,7 +56288,7 @@ var f2 = KV({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = yG(t.payload), t.payload == null) {
+ if (e.chartData = vG(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -56337,7 +56302,7 @@ var f2 = KV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: p2, setDataStartEndIndexes: vve, setComputedData: yve } = f2.actions, bve = f2.reducer, xve = ["x", "y"];
+}), { setChartData: p2, setDataStartEndIndexes: _ve, setComputedData: vve } = f2.actions, yve = f2.reducer, bve = ["x", "y"];
function m2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -56352,26 +56317,26 @@ function h2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? m2(Object(n), !0).forEach(function(t) {
- Sve(e, t, n[t]);
+ xve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Sve(e, t, n) {
- return (t = Cve(t)) in e ? Object.defineProperty(e, t, {
+function xve(e, t, n) {
+ return (t = Sve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cve(e) {
- var t = wve(e, "string");
+function Sve(e) {
+ var t = Cve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wve(e, t) {
+function Cve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56381,16 +56346,16 @@ function wve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Tve(e, t) {
+function wve(e, t) {
if (e == null) return {};
- var n, r, i = Eve(e, t);
+ var n, r, i = Tve(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Eve(e, t) {
+function Tve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56399,16 +56364,16 @@ function Eve(e, t) {
}
return n;
}
-function Dve() {
- var e = Q(EY), t = Q(OY), n = Jz(), r = Q(DY), i = Q(A0), a = vW(), o = dW(), s = Q((e) => e.rootProps.className);
+function Eve() {
+ var e = Q(TY), t = Q(DY), n = qz(), r = Q(EY), i = Q(A0), a = _W(), o = uW(), s = Q((e) => e.rootProps.className);
(0, I.useEffect)(() => {
- if (e == null) return dz;
+ if (e == null) return uz;
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 = Tve(d, xve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = wve(d, bve), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
@@ -56469,12 +56434,12 @@ function Dve() {
o
]);
}
-function Ove() {
- var e = Q(EY), t = Q(OY), n = Jz();
+function Dve() {
+ var e = Q(TY), t = Q(DY), n = qz();
(0, I.useEffect)(() => {
- if (e == null) return dz;
+ if (e == null) return uz;
var r = (r, i, a) => {
- t !== a && e === r && n(vve(i));
+ t !== a && e === r && n(_ve(i));
};
return s2.on(l2, r), () => {
s2.off(l2, r);
@@ -56485,14 +56450,14 @@ function Ove() {
e
]);
}
-function kve() {
- var e = Jz();
+function Ove() {
+ var e = qz();
(0, I.useEffect)(() => {
- e(gve());
- }, [e]), Dve(), Ove();
+ e(hve());
+ }, [e]), Eve(), Dve();
}
-function Ave(e, t, n, r, i, a) {
- var o = Q((n) => V_e(n, e, t)), s = Q(T_e), c = Q(OY), l = Q(EY), u = Q(DY), d = Q(_ve)?.active, f = dW();
+function kve(e, t, n, r, i, a) {
+ var o = Q((n) => B_e(n, e, t)), s = Q(w_e), c = Q(DY), l = Q(TY), u = Q(EY), d = Q(gve)?.active, f = uW();
(0, I.useEffect)(() => {
if (!d && l != null && c != null) {
var e = o0({
@@ -56536,26 +56501,26 @@ function _2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? g2(Object(n), !0).forEach(function(t) {
- jve(e, t, n[t]);
+ Ave(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jve(e, t, n) {
- return (t = Mve(t)) in e ? Object.defineProperty(e, t, {
+function Ave(e, t, n) {
+ return (t = jve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Mve(e) {
- var t = Nve(e, "string");
+function jve(e) {
+ var t = Mve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Nve(e, t) {
+function Mve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56565,13 +56530,13 @@ function Nve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Pve(e) {
+function Nve(e) {
return e.dataKey;
}
-function Fve(e, t) {
- return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(yK, t);
+function Pve(e, t) {
+ return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(vK, t);
}
-var v2 = [], Ive = {
+var v2 = [], Fve = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -56597,10 +56562,10 @@ var v2 = [], Ive = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function Lve(e) {
- var t = xz(e, Ive), { 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 = Jz(), S = typeof v == "number" ? String(v) : v;
+function Ive(e) {
+ var t = bz(e, Fve), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = qz(), S = typeof v == "number" ? String(v) : v;
(0, I.useEffect)(() => {
- x(Zge({
+ x(Xge({
shared: g,
trigger: _,
axisId: b,
@@ -56615,12 +56580,12 @@ function Lve(e) {
n,
S
]);
- var C = dW(), w = IK(), T = Kge(g), { activeIndex: E, isActive: D } = Q((e) => W_e(e, T, _, S)) ?? {}, O = Q((e) => U_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => H_e(e, T, _, S)), j = O, M = pve(), N = n ?? D ?? !1, [ee, te] = aB([j, N]), P = T === "axis" ? k : void 0;
- Ave(T, _, A, P, E, N);
+ var C = uW(), w = FK(), T = Gge(g), { activeIndex: E, isActive: D } = Q((e) => U_e(e, T, _, S)) ?? {}, O = Q((e) => H_e(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => V_e(e, T, _, S)), j = O, M = fve(), N = n ?? D ?? !1, [ee, te] = iB([j, N]), P = T === "axis" ? k : void 0;
+ kve(T, _, A, P, E, N);
var F = y ?? M;
if (F == null || C == null || T == null) return null;
var ne = j ?? v2;
- N || (ne = v2), s && ne.length && (ne = Kz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Pve));
+ N || (ne = v2), s && ne.length && (ne = Gz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Nve));
var re = ne.length > 0, ie = _2(_2({}, t), {}, {
payload: ne,
label: P,
@@ -56628,7 +56593,7 @@ function Lve(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), L = /*#__PURE__*/ I.createElement(FK, {
+ }), L = /*#__PURE__*/ I.createElement(PK, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -56645,8 +56610,8 @@ function Lve(e) {
lastBoundingBox: ee,
innerRef: te,
hasPortalFromProps: !!y
- }, Fve(o, ie));
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(fve, {
+ }, Pve(o, ie));
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, yh.createPortal)(L, F), N && /*#__PURE__*/ I.createElement(dve, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -56660,19 +56625,19 @@ var y2 = (e) => null;
y2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function Rve(e, t, n) {
- return (t = zve(t)) in e ? Object.defineProperty(e, t, {
+function Lve(e, t, n) {
+ return (t = Rve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zve(e) {
- var t = Bve(e, "string");
+function Rve(e) {
+ var t = zve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bve(e, t) {
+function zve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56682,9 +56647,9 @@ function Bve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Vve = class {
+var Bve = class {
constructor(e) {
- Rve(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ Lve(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -56717,30 +56682,30 @@ function b2(e, t) {
}
return n;
}
-function Hve(e) {
+function Vve(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b2(Object(n), !0).forEach(function(t) {
- Uve(e, t, n[t]);
+ Hve(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Uve(e, t, n) {
- return (t = Wve(t)) in e ? Object.defineProperty(e, t, {
+function Hve(e, t, n) {
+ return (t = Uve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Wve(e) {
- var t = Gve(e, "string");
+function Uve(e) {
+ var t = Wve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Gve(e, t) {
+function Wve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56750,10 +56715,10 @@ function Gve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x2 = Hve({}, {
+var x2 = Vve({}, {
cacheSize: 2e3,
enableCache: !0
-}), S2 = new Vve(x2.cacheSize), Kve = {
+}), S2 = new Bve(x2.cacheSize), Gve = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -56762,13 +56727,13 @@ var x2 = Hve({}, {
border: "none",
whiteSpace: "pre"
}, C2 = "recharts_measurement_span";
-function qve(e, t) {
+function Kve(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
var w2 = (e, t) => {
try {
var n = document.getElementById(C2);
- n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Kve, t), n.textContent = `${e}`;
+ n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, Gve, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -56782,29 +56747,29 @@ var w2 = (e, t) => {
}
}, T2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || EK.isSsr) return {
+ if (e == null || TK.isSsr) return {
width: 0,
height: 0
};
if (!x2.enableCache) return w2(e, t);
- var n = qve(e, t), r = S2.get(n);
+ var n = Kve(e, t), r = S2.get(n);
if (r) return r;
var i = w2(e, t);
return S2.set(n, i), i;
}, E2;
-function Jve(e, t, n) {
- return (t = Yve(t)) in e ? Object.defineProperty(e, t, {
+function qve(e, t, n) {
+ return (t = Jve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yve(e) {
- var t = Xve(e, "string");
+function Jve(e) {
+ var t = Yve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xve(e, t) {
+function Yve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56814,7 +56779,7 @@ function Xve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Zve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Qve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, $ve = {
+var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Xve = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, Zve = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Qve = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -56822,7 +56787,7 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, eye = [
+}, $ve = [
"cm",
"mm",
"pt",
@@ -56831,20 +56796,20 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
"Q",
"px"
];
-function tye(e) {
- return eye.includes(e);
+function eye(e) {
+ return $ve.includes(e);
}
var k2 = "NaN";
-function nye(e, t) {
- return e * $ve[t];
+function tye(e, t) {
+ return e * Qve[t];
}
var A2 = class e {
static parse(t) {
- var [, n, r] = Qve.exec(t) ?? [];
+ var [, n, r] = Zve.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, ez(e) && (this.unit = ""), t !== "" && !Zve.test(t) && (this.num = NaN, this.unit = ""), tye(t) && (this.num = nye(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, $R(e) && (this.unit = ""), t !== "" && !Xve.test(t) && (this.num = NaN, this.unit = ""), eye(t) && (this.num = tye(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -56862,10 +56827,10 @@ var A2 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return ez(this.num);
+ return $R(this.num);
}
};
-E2 = A2, Jve(A2, "NaN", new E2(NaN, ""));
+E2 = A2, qve(A2, "NaN", new E2(NaN, ""));
function j2(e) {
if (e == null || e.includes(k2)) return k2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -56881,31 +56846,31 @@ function j2(e) {
return t;
}
var M2 = /\(([^()]*)\)/;
-function rye(e) {
+function nye(e) {
for (var t = e, n; (n = M2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(M2, j2(r));
}
return t;
}
-function iye(e) {
+function rye(e) {
var t = e.replace(/\s+/g, "");
- return t = rye(t), t = j2(t), t;
+ return t = nye(t), t = j2(t), t;
}
-function aye(e) {
+function iye(e) {
try {
- return iye(e);
+ return rye(e);
} catch {
return k2;
}
}
function N2(e) {
- var t = aye(e.slice(5, -1));
+ var t = iye(e.slice(5, -1));
return t === k2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var oye = [
+var aye = [
"x",
"y",
"lineHeight",
@@ -56914,7 +56879,7 @@ var oye = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], sye = [
+], oye = [
"dx",
"dy",
"angle",
@@ -56932,14 +56897,14 @@ function P2() {
}
function F2(e, t) {
if (e == null) return {};
- var n, r, i = cye(e, t);
+ var n, r, i = sye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function cye(e, t) {
+function sye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56952,7 +56917,7 @@ var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return cz(t) || (i = n ? t.toString().split("") : t.toString().split(I2)), {
+ return sz(t) || (i = n ? t.toString().split("") : t.toString().split(I2)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: T2(e, r).width
@@ -56966,8 +56931,8 @@ var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
function R2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function lye(e) {
- return cz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function cye(e) {
+ return sz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
var z2 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
@@ -56980,16 +56945,16 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), uye = "…", V2 = (e, t, n, r, i, a, o, s) => {
+}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), lye = "…", V2 = (e, t, n, r, i, a, o, s) => {
var c = L2({
breakAll: n,
style: r,
- children: e.slice(0, t) + uye
+ children: e.slice(0, t) + lye
});
if (!c) return [!1, []];
var l = z2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || B2(l).width > Number(a), l];
-}, dye = (e, t, n, r, i) => {
+}, uye = (e, t, n, r, i) => {
var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = z2(t, r, n, i);
if (!l || i || !(d.length > a || B2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
@@ -57002,11 +56967,11 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, H2 = (e) => [{
- words: cz(e) ? [] : e.toString().split(I2),
+ words: sz(e) ? [] : e.toString().split(I2),
width: void 0
-}], fye = (e) => {
+}], dye = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !EK.isSsr) {
+ if ((t || n) && !TK.isSsr) {
var s, c, l = L2({
breakAll: a,
children: r,
@@ -57016,7 +56981,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
} else return H2(r);
- return dye({
+ return uye({
breakAll: a,
children: r,
maxLines: o,
@@ -57024,7 +56989,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return H2(r);
-}, U2 = "#808080", pye = {
+}, U2 = "#808080", fye = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -57036,7 +57001,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, W2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = xz(e, pye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, oye), f = (0, I.useMemo)(() => fye({
+ var n = bz(e, fye), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, aye), f = (0, I.useMemo)(() => dye({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -57050,10 +57015,10 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, sye);
- if (!nz(r) || !nz(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, oye);
+ if (!tz(r) || !tz(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!VH(y) || !VH(b)) return null;
+ if (!BH(y) || !BH(b)) return null;
var x;
switch (u) {
case "start":
@@ -57069,7 +57034,7 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", P2({}, qL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", P2({}, KL(v), {
ref: t,
x: y,
y: b,
@@ -57102,26 +57067,26 @@ function K2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? G2(Object(n), !0).forEach(function(t) {
- mye(e, t, n[t]);
+ pye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mye(e, t, n) {
- return (t = hye(t)) in e ? Object.defineProperty(e, t, {
+function pye(e, t, n) {
+ return (t = mye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hye(e) {
- var t = gye(e, "string");
+function mye(e) {
+ var t = hye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gye(e, t) {
+function hye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57131,8 +57096,8 @@ function gye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _ye = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = uW(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 gye = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = lW(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -57213,9 +57178,9 @@ var _ye = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || tz(n.x)) && (Z(n.y) || tz(n.y)) ? K2({
- x: o + iz(n.x, m),
- y: s + iz(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || ez(n.x)) && (Z(n.y) || ez(n.y)) ? K2({
+ x: o + rz(n.x, m),
+ y: s + rz(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : K2({
@@ -57224,17 +57189,17 @@ var _ye = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, vye = ["labelRef"], yye = ["content"];
+}, _ye = ["labelRef"], vye = ["content"];
function q2(e, t) {
if (e == null) return {};
- var n, r, i = bye(e, t);
+ var n, r, i = yye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bye(e, t) {
+function yye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57257,26 +57222,26 @@ function Y2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? J2(Object(n), !0).forEach(function(t) {
- xye(e, t, n[t]);
+ bye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xye(e, t, n) {
- return (t = Sye(t)) in e ? Object.defineProperty(e, t, {
+function bye(e, t, n) {
+ return (t = xye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Sye(e) {
- var t = Cye(e, "string");
+function xye(e) {
+ var t = Sye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Cye(e, t) {
+function Sye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57313,9 +57278,9 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
]);
return /*#__PURE__*/ I.createElement(Z2.Provider, { value: c }, s);
}, $2 = () => {
- var e = (0, I.useContext)(Z2), t = dW();
- return e || (t ? uW(t) : void 0);
-}, e4 = /*#__PURE__*/ (0, I.createContext)(null), wye = (e) => {
+ var e = (0, I.useContext)(Z2), t = uW();
+ return e || (t ? lW(t) : void 0);
+}, e4 = /*#__PURE__*/ (0, I.createContext)(null), Cye = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, I.useMemo)(() => ({
cx: t,
cy: n,
@@ -57335,13 +57300,13 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
]);
return /*#__PURE__*/ I.createElement(e4.Provider, { value: l }, c);
}, t4 = () => {
- var e = (0, I.useContext)(e4), t = Q(QY);
+ var e = (0, I.useContext)(e4), t = Q(ZY);
return e || t;
-}, Tye = (e) => {
- var { value: t, formatter: n } = e, r = cz(e.children) ? t : e.children;
+}, wye = (e) => {
+ var { value: t, formatter: n } = e, r = sz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, n4 = (e) => e != null && typeof e == "function", Eye = (e, t) => $R(t - e) * Math.min(Math.abs(t - e), 360), Dye = (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 = Eye(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, n4 = (e) => e != null && typeof e == "function", Tye = (e, t) => QR(t - e) * Math.min(Math.abs(t - e), 360), Eye = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = Tye(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -57355,9 +57320,9 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = OJ(s, c, m, _), b = OJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = DJ(s, c, m, _), b = DJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = cz(e.id) ? rz("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = sz(e.id) ? nz("recharts-radial-line-") : e.id;
return /*#__PURE__*/ I.createElement("text", X2({}, r, {
dominantBaseline: "central",
className: Wm("recharts-radial-bar-label", o)
@@ -57365,10 +57330,10 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, Oye = (e, t, n) => {
+}, Dye = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = OJ(r, i, o + t, l);
+ var { x: u, y: d } = DJ(r, i, o + t, l);
return {
x: u,
y: d,
@@ -57394,21 +57359,21 @@ var Z2 = /*#__PURE__*/ (0, I.createContext)(null), Q2 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = OJ(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = DJ(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, r4 = (e) => e != null && "cx" in e && Z(e.cx), kye = {
+}, r4 = (e) => e != null && "cx" in e && Z(e.cx), Oye = {
angle: 0,
offset: 5,
- zIndex: AY.label,
+ zIndex: kY.label,
position: "middle",
textBreakAll: !1
};
-function Aye(e) {
+function kye(e) {
if (!r4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -57421,24 +57386,24 @@ function Aye(e) {
};
}
function i4(e) {
- var t = xz(e, kye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : uW(n), m, h, g = Aye(p);
- if (!p || cz(a) && cz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
+ var t = bz(e, Oye), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : lW(n), m, h, g = kye(p);
+ if (!p || sz(a) && sz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
var _ = Y2(Y2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, I.isValidElement)(s)) {
- var { labelRef: v } = _, y = q2(_, vye);
+ var { labelRef: v } = _, y = q2(_, _ye);
return /*#__PURE__*/ (0, I.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = q2(_, yye);
+ var { content: b } = _, x = q2(_, vye);
if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;
- } else m = Tye(t);
- var S = qL(t);
+ } else m = wye(t);
+ var S = KL(t);
if (r4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return Dye(t, i, m, S, p);
- h = Oye(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return Eye(t, i, m, S, p);
+ h = Dye(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = _ye({
+ var C = gye({
viewBox: g,
position: i,
offset: t.offset,
@@ -57467,7 +57432,7 @@ var a4 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ I.createElement(i4, X2({ key: "label-implicit" }, r)) : nz(e) ? /*#__PURE__*/ I.createElement(i4, X2({
+ return e === !0 ? /*#__PURE__*/ I.createElement(i4, X2({ key: "label-implicit" }, r)) : tz(e) ? /*#__PURE__*/ I.createElement(i4, X2({
key: "label-implicit",
value: e
}, r)) : /*#__PURE__*/ (0, I.isValidElement)(e) ? e.type === i4 ? /*#__PURE__*/ (0, I.cloneElement)(e, Y2({ key: "label-implicit" }, r)) : /*#__PURE__*/ I.createElement(i4, X2({
@@ -57482,13 +57447,13 @@ function o4(e) {
var { label: t, labelRef: n } = e;
return a4(t, $2(), n) || null;
}
-function jye(e) {
+function Aye(e) {
var { label: t } = e;
return a4(t, t4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var Mye = ["valueAccessor"], Nye = [
+var jye = ["valueAccessor"], Mye = [
"dataKey",
"clockWise",
"id",
@@ -57506,14 +57471,14 @@ function s4() {
}
function c4(e, t) {
if (e == null) return {};
- var n, r, i = Pye(e, t);
+ var n, r, i = Nye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Pye(e, t) {
+function Nye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57522,21 +57487,21 @@ function Pye(e, t) {
}
return n;
}
-var Fye = (e) => {
+var Pye = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (lye(t)) return t;
-}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Iye = d4.Provider;
-function Lye() {
+ if (cye(t)) return t;
+}, l4 = /*#__PURE__*/ (0, I.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, I.createContext)(void 0), Fye = d4.Provider;
+function Iye() {
return (0, I.useContext)(l4);
}
-function Rye() {
+function Lye() {
return (0, I.useContext)(d4);
}
function f4(e) {
- var { valueAccessor: t = Fye } = e, n = c4(e, Mye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, Nye), l = Lye(), u = Rye(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: s ?? AY.label }, /*#__PURE__*/ I.createElement(ZL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = cz(r) ? t(e, i) : JH(e.payload, r), l = cz(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ I.createElement(i4, s4({ key: `label-${i}` }, qL(e), c, l, {
+ var { valueAccessor: t = Pye } = e, n = c4(e, jye), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, Mye), l = Iye(), u = Lye(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: s ?? kY.label }, /*#__PURE__*/ I.createElement(XL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = sz(r) ? t(e, i) : qH(e.payload, r), l = sz(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ I.createElement(i4, s4({ key: `label-${i}` }, KL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -57557,12 +57522,12 @@ function p4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var zye = [
+var Rye = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], Bye;
+], zye;
function m4() {
return m4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -57572,16 +57537,16 @@ function m4() {
return e;
}, m4.apply(null, arguments);
}
-function Vye(e, t) {
+function Bye(e, t) {
if (e == null) return {};
- var n, r, i = Hye(e, t);
+ var n, r, i = Vye(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Hye(e, t) {
+function Vye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57590,10 +57555,10 @@ function Hye(e, t) {
}
return n;
}
-function Uye(e, t) {
+function Hye(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Wye = function() {
+var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Uye = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -57604,9 +57569,9 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Wye = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, g4 = (e, t) => {
- var n = Wye(e);
+ var n = Uye(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => QR(Bye ||= Uye([
+ var r = n.map((e) => e.reduce((e, t, n) => ZR(zye ||= Hye([
"",
"",
"",
@@ -57614,29 +57579,29 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, Wye = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, Gye = (e, t, n) => {
+}, Wye = (e, t, n) => {
var r = g4(e, n);
return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${g4(Array.from(t).reverse(), n).slice(1)}`;
}, _4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Vye(e, zye);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Bye(e, Rye);
if (!t || !t.length) return null;
var o = Wm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = Gye(t, r, i);
- return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
+ var s = a.stroke && a.stroke !== "none", c = Wye(t, r, i);
+ return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
+ })), s ? /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
fill: "none",
d: g4(t, i)
- })) : null, s ? /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
+ })) : null, s ? /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
fill: "none",
d: g4(r, i)
})) : null);
}
var l = g4(t, i);
- return /*#__PURE__*/ I.createElement("path", m4({}, qL(a), {
+ return /*#__PURE__*/ I.createElement("path", m4({}, KL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -57655,7 +57620,7 @@ function v4() {
}
var y4 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Wm("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", v4({}, GL(e), vz(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", v4({}, WL(e), _z(e), {
className: a,
cx: t,
cy: n,
@@ -57663,92 +57628,92 @@ var y4 = (e) => {
})) : null;
}, b4 = (e) => e.graphicalItems.polarItems, x4 = $([
b4,
- R$,
- $([$Y, eX], V$)
-], U$), S4 = $([$([x4], q$), nY], J$), C4 = $([
+ z$,
+ $([QY, $Y], H$)
+], W$), S4 = $([$([x4], J$), tY], Y$), C4 = $([
S4,
- R$,
+ z$,
x4
-], X$);
+], Z$);
$([
S4,
- R$,
+ z$,
x4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: JH(e, t.dataKey ?? n.dataKey),
+ value: qH(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: JH(e, t.dataKey),
+ value: qH(e, t.dataKey),
errorDomain: []
})));
var w4 = () => void 0, T4 = $([
- R$,
- _W,
+ z$,
+ gW,
S4,
C4,
- CY,
- $Y,
+ SY,
+ QY,
$([
- R$,
- c1,
+ z$,
l1,
+ u1,
w4,
$([
S4,
- R$,
+ z$,
x4,
- u1,
- $Y
- ], f1),
+ d1,
+ QY
+ ], p1),
w4,
- _W,
- $Y
- ], b1)
-], x1), E4 = $([
+ gW,
+ QY
+ ], x1)
+], S1), E4 = $([
T4,
+ B$,
+ w1
+], T1), Gye = $([w1, $([
z$,
- C1
-], w1), Kye = $([C1, $([
- R$,
T4,
E4,
- $Y
-], E1)], uX), D4 = (e, t, n) => {
+ QY
+], D1)], lX), D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return HY(e, n);
- case "radiusAxis": return UY(e, n);
+ case "angleAxis": return VY(e, n);
+ case "radiusAxis": return HY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, O4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return YY(e, n);
- case "radiusAxis": return ZY(e, n);
+ case "angleAxis": return JY(e, n);
+ case "radiusAxis": return XY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, k4 = $([$([
D4,
- C1,
- Kye,
+ w1,
+ Gye,
O4
-], T$)], lX), A4 = $([
- _W,
+], E$)], cX), A4 = $([
+ gW,
C4,
- z$,
- $Y
-], j1), j4 = $([
- _W,
+ B$,
+ QY
+], M1), j4 = $([
+ gW,
D4,
- C1,
+ w1,
k4,
E4,
O4,
U1,
A4,
- $Y
-], G1), qye = $([j4], (e) => {
+ QY
+], G1), Kye = $([j4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -57756,19 +57721,19 @@ var w4 = () => void 0, T4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), Jye = $([
- _W,
+}), qye = $([
+ gW,
D4,
k4,
O4,
U1,
A4,
- $Y
-], q1), Yye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
+ QY
+], q1), Jye = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Xye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
+}), Yye = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Zye = [
+}), Xye = [
"gridType",
"radialLines",
"angleAxisId",
@@ -57781,16 +57746,16 @@ var w4 = () => void 0, T4 = $([
"polarRadius",
"zIndex"
];
-function Qye(e, t) {
+function Zye(e, t) {
if (e == null) return {};
- var n, r, i = $ye(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 $ye(e, t) {
+function Qye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57822,26 +57787,26 @@ function P4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N4(Object(n), !0).forEach(function(t) {
- ebe(e, t, n[t]);
+ $ye(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ebe(e, t, n) {
- return (t = tbe(t)) in e ? Object.defineProperty(e, t, {
+function $ye(e, t, n) {
+ return (t = ebe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tbe(e) {
- var t = nbe(e, "string");
+function ebe(e) {
+ var t = tbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nbe(e, t) {
+function tbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57851,18 +57816,18 @@ function nbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var rbe = (e, t, n, r) => {
+var nbe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = OJ(t, n, e, r);
+ var o = DJ(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, ibe = (e) => {
+}, rbe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = P4({ stroke: "#ccc" }, GL(e));
+ var s = P4({ stroke: "#ccc" }, WL(e));
return /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = OJ(t, n, r, e), o = OJ(t, n, i, e);
+ var a = DJ(t, n, r, e), o = DJ(t, n, i, e);
return /*#__PURE__*/ I.createElement("line", M4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -57874,7 +57839,7 @@ var rbe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = P4({
stroke: "#ccc",
fill: "none"
- }, GL(e));
+ }, WL(e));
return /*#__PURE__*/ I.createElement("circle", M4({}, i, {
className: Wm("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -57885,12 +57850,12 @@ var rbe = (e, t, n, r) => {
var { radius: t } = e, n = P4({
stroke: "#ccc",
fill: "none"
- }, GL(e));
+ }, WL(e));
return /*#__PURE__*/ I.createElement("path", M4({}, n, {
className: Wm("recharts-polar-grid-concentric-polygon", e.className),
- d: rbe(t, e.cx, e.cy, e.polarAngles)
+ d: nbe(t, e.cx, e.cy, e.polarAngles)
}));
-}, abe = (e) => {
+}, ibe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -57904,14 +57869,14 @@ var rbe = (e, t, n, r) => {
radius: t
}));
}));
-}, obe = {
+}, abe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: AY.grid
+ zIndex: kY.grid
}, L4 = (e) => {
- var t = xz(e, obe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Qye(t, Zye), m = Q(QY), h = Q((e) => Yye(e, i)), g = Q((e) => Xye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ var t = bz(e, abe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = Zye(t, Xye), m = Q(ZY), h = Q((e) => Jye(e, i)), g = Q((e) => Yye(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
var y = P4({
cx: m?.cx ?? o ?? 0,
@@ -57922,13 +57887,13 @@ var rbe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(abe, M4({
+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(ibe, M4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ I.createElement(ibe, M4({
+ })), /*#__PURE__*/ I.createElement(rbe, M4({
gridType: n,
radialLines: r
}, y, {
@@ -57944,11 +57909,11 @@ function R4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function sbe(e, t = Ez) {
+function obe(e, t = Tz) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
- let r = Wz(t), i, a;
+ let r = Uz(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);
@@ -57957,11 +57922,11 @@ function sbe(e, t = Ez) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function cbe(e, t = Ez) {
+function sbe(e, t = Tz) {
if (e == null) return;
let n = R4(e);
if (n.length === 0) return;
- let r = Wz(t), i, a;
+ let r = Uz(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);
@@ -57970,7 +57935,7 @@ function cbe(e, t = Ez) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var z4 = KV({
+var z4 = GV({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -57978,19 +57943,19 @@ var z4 = KV({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = yG(t.payload);
+ e.radiusAxis[t.payload.id] = vG(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = yG(t.payload);
+ e.angleAxis[t.payload.id] = vG(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: lbe, removeRadiusAxis: ube, addAngleAxis: dbe, removeAngleAxis: fbe } = z4.actions, pbe = z4.reducer;
+}), { addRadiusAxis: cbe, removeRadiusAxis: lbe, addAngleAxis: ube, removeAngleAxis: dbe } = z4.actions, fbe = z4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function B4(e) {
@@ -57998,12 +57963,12 @@ function B4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var mbe = ["type"], hbe = [
+var pbe = ["type"], mbe = [
"cx",
"cy",
"angle",
"axisLine"
-], gbe = [
+], hbe = [
"angle",
"tickFormatter",
"stroke",
@@ -58032,26 +57997,26 @@ function U4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H4(Object(n), !0).forEach(function(t) {
- _be(e, t, n[t]);
+ gbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _be(e, t, n) {
- return (t = vbe(t)) in e ? Object.defineProperty(e, t, {
+function gbe(e, t, n) {
+ return (t = _be(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vbe(e) {
- var t = ybe(e, "string");
+function _be(e) {
+ var t = vbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ybe(e, t) {
+function vbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58063,14 +58028,14 @@ function ybe(e, t) {
}
function W4(e, t) {
if (e == null) return {};
- var n, r, i = bbe(e, t);
+ var n, r, i = ybe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bbe(e, t) {
+function ybe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58079,20 +58044,20 @@ function bbe(e, t) {
}
return n;
}
-var xbe = "radiusAxis";
-function Sbe(e) {
- var t = Jz(), n = xW(), r = (0, I.useMemo)(() => {
- var { type: t } = e, r = W4(e, mbe), i = PY(n, "radiusAxis", t);
+var bbe = "radiusAxis";
+function xbe(e) {
+ var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
+ var { type: t } = e, r = W4(e, pbe), i = NY(n, "radiusAxis", t);
if (i != null) return U4(U4({}, r), {}, { type: i });
}, [e, n]);
- return (0, I.useEffect)(() => r == null ? dz : (t(lbe(r)), () => {
- t(ube(r));
+ return (0, I.useEffect)(() => r == null ? uz : (t(cbe(r)), () => {
+ t(lbe(r));
}), [t, r]), null;
}
-var Cbe = (e, t, n, r) => {
+var Sbe = (e, t, n, r) => {
var { coordinate: i } = e;
- return OJ(n, r, i, t);
-}, wbe = (e) => {
+ return DJ(n, r, i, t);
+}, Cbe = (e) => {
var t;
switch (e) {
case "left":
@@ -58104,49 +58069,49 @@ var Cbe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, Tbe = (e, t, n, r) => {
- var i = sbe(r, (e) => e.coordinate || 0);
+}, wbe = (e, t, n, r) => {
+ var i = obe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: cbe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: sbe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, Ebe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, hbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = OJ(n, r, s[0], i), l = OJ(n, r, s[1], i), u = U4(U4(U4({}, GL(o)), {}, { fill: "none" }, GL(a)), {}, {
+}, Tbe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, mbe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = DJ(n, r, s[0], i), l = DJ(n, r, s[1], i), u = U4(U4(U4({}, WL(o)), {}, { fill: "none" }, WL(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
return /*#__PURE__*/ I.createElement("line", V4({ className: "recharts-polar-radius-axis-line" }, u));
-}, Dbe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Obe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, gbe), s = wbe(e.orientation), c = GL(o), l = KL(a), u = t.map((t, o) => {
- var u = Cbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
+}, Ebe = (e, t, n) => /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ I.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Dbe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, hbe), s = Cbe(e.orientation), c = WL(o), l = GL(a), u = t.map((t, o) => {
+ var u = Sbe(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ I.createElement(ZL, V4({
+ return /*#__PURE__*/ I.createElement(XL, V4({
className: Wm("recharts-polar-radius-axis-tick", B4(a)),
key: `tick-${t.coordinate}`
- }, yz(e, t, o)), Dbe(a, d, r ? r(t.value, o) : t.value));
+ }, vz(e, t, o)), Ebe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, kbe = (e) => {
- var { radiusAxisId: t } = e, n = Q(QY), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, Obe = (e) => {
+ var { radiusAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = U4(U4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-polar-radius-axis", xbe, a.className) }, s && Ebe(a, i), o && Obe(a, i), /*#__PURE__*/ I.createElement(wye, Tbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(jye, { label: a.label }), a.children)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-radius-axis", bbe, a.className) }, s && Tbe(a, i), o && Dbe(a, i), /*#__PURE__*/ I.createElement(Cye, wbe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(Aye, { label: a.label }), a.children)));
};
function G4(e) {
- var t = xz(e, MY);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Sbe, {
+ var t = bz(e, jY);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(xbe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -58163,12 +58128,12 @@ function G4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ I.createElement(kbe, t));
+ }), /*#__PURE__*/ I.createElement(Obe, t));
}
G4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var Abe = ["children", "type"], jbe = ["ref"];
+var kbe = ["children", "type"], Abe = ["ref"];
function K4() {
return K4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -58192,26 +58157,26 @@ function J4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q4(Object(n), !0).forEach(function(t) {
- Mbe(e, t, n[t]);
+ jbe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mbe(e, t, n) {
- return (t = Nbe(t)) in e ? Object.defineProperty(e, t, {
+function jbe(e, t, n) {
+ return (t = Mbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nbe(e) {
- var t = Pbe(e, "string");
+function Mbe(e) {
+ var t = Nbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pbe(e, t) {
+function Nbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58223,14 +58188,14 @@ function Pbe(e, t) {
}
function Y4(e, t) {
if (e == null) return {};
- var n, r, i = Fbe(e, t);
+ var n, r, i = Pbe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Fbe(e, t) {
+function Pbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58239,47 +58204,47 @@ function Fbe(e, t) {
}
return n;
}
-var X4 = 1e-5, Ibe = Math.cos(EJ(45)), Lbe = "angleAxis";
-function Rbe(e) {
- var t = Jz(), n = xW(), r = (0, I.useMemo)(() => {
- var { children: t, type: r } = e, i = Y4(e, Abe), a = PY(n, "angleAxis", r);
+var X4 = 1e-5, Fbe = Math.cos(TJ(45)), Ibe = "angleAxis";
+function Lbe(e) {
+ var t = qz(), n = bW(), r = (0, I.useMemo)(() => {
+ var { children: t, type: r } = e, i = Y4(e, kbe), a = NY(n, "angleAxis", r);
if (a != null) return J4(J4({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => HY(e, r?.id));
- return (0, I.useEffect)(() => r == null ? dz : (t(dbe(r)), () => {
- t(fbe(r));
+ }, [e, n]), i = r === Q((e) => VY(e, r?.id));
+ return (0, I.useEffect)(() => r == null ? uz : (t(ube(r)), () => {
+ t(dbe(r));
}), [t, r]), i ? e.children : null;
}
-var zbe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = OJ(n, r, i, e.coordinate), l = OJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var Rbe = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = DJ(n, r, i, e.coordinate), l = DJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, Bbe = (e, t) => {
- var n = Math.cos(EJ(-e.coordinate));
+}, zbe = (e, t) => {
+ var n = Math.cos(TJ(-e.coordinate));
return n > X4 ? t === "outer" ? "start" : "end" : n < -X4 ? t === "outer" ? "end" : "start" : "middle";
+}, Bbe = (e) => {
+ var t = Math.cos(TJ(-e.coordinate)), n = Math.sin(TJ(-e.coordinate));
+ return Math.abs(t) <= Fbe ? n > 0 ? "start" : "end" : "middle";
}, Vbe = (e) => {
- var t = Math.cos(EJ(-e.coordinate)), n = Math.sin(EJ(-e.coordinate));
- return Math.abs(t) <= Ibe ? n > 0 ? "start" : "end" : "middle";
-}, Hbe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = J4(J4({}, GL(e)), {}, { fill: "none" }, GL(a));
+ var s = J4(J4({}, WL(e)), {}, { fill: "none" }, WL(a));
if (i === "circle") return /*#__PURE__*/ I.createElement(y4, K4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => OJ(t, n, r, e.coordinate));
+ var c = o.map((e) => DJ(t, n, r, e.coordinate));
return /*#__PURE__*/ I.createElement(_4, K4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, Ube = (e) => {
+}, Hbe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
return t ? /*#__PURE__*/ I.isValidElement(t) ? /*#__PURE__*/ I.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ I.createElement(W2, K4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, Wbe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = GL(e), { ref: s } = o, c = Y4(o, jbe), l = KL(t), u = J4(J4({}, c), {}, { fill: "none" }, GL(n)), d = a.map((a, o) => {
- var s = zbe(a, e), d = Bbe(a, e.orientation), f = Vbe(a), p = J4(J4(J4({}, c), {}, {
+}, Ube = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WL(e), { ref: s } = o, c = Y4(o, Abe), l = GL(t), u = J4(J4({}, c), {}, { fill: "none" }, WL(n)), d = a.map((a, o) => {
+ var s = Rbe(a, e), d = zbe(a, e.orientation), f = Bbe(a), p = J4(J4(J4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -58290,28 +58255,28 @@ var zbe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ I.createElement(ZL, K4({
+ return /*#__PURE__*/ I.createElement(XL, K4({
className: Wm("recharts-polar-angle-axis-tick", B4(t)),
key: `tick-${a.coordinate}`
- }, yz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Ube, {
+ }, vz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(Hbe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, Gbe = (e) => {
- var { angleAxisId: t } = e, n = Q(QY), r = Q((e) => k4(e, "angleAxis", t)), i = LU(), a = Q((e) => qye(e, "angleAxis", t, i));
+ return /*#__PURE__*/ I.createElement(XL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, Wbe = (e) => {
+ var { angleAxisId: t } = e, n = Q(ZY), r = Q((e) => k4(e, "angleAxis", t)), i = IU(), a = Q((e) => Kye(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
var o = J4(J4(J4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-polar-angle-axis", Lbe, o.className) }, /*#__PURE__*/ I.createElement(Hbe, o), /*#__PURE__*/ I.createElement(Wbe, o)));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-polar-angle-axis", Ibe, o.className) }, /*#__PURE__*/ I.createElement(Vbe, o), /*#__PURE__*/ I.createElement(Ube, o)));
};
function Z4(e) {
- var t = xz(e, jY);
- return /*#__PURE__*/ I.createElement(Rbe, {
+ var t = bz(e, AY);
+ return /*#__PURE__*/ I.createElement(Lbe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -58328,12 +58293,12 @@ function Z4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ I.createElement(Gbe, t));
+ }, /*#__PURE__*/ I.createElement(Wbe, t));
}
Z4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var Kbe = /* @__PURE__ */ M(((e) => {
+var Gbe = /* @__PURE__ */ M(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -58362,26 +58327,26 @@ var Kbe = /* @__PURE__ */ M(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), qbe = (/* @__PURE__ */ M(((e, t) => {
- t.exports = Kbe();
+})), Kbe = (/* @__PURE__ */ M(((e, t) => {
+ t.exports = Gbe();
})))(), Q4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", $4 = null, e3 = null, t3 = (e) => {
if (e === $4 && Array.isArray(e3)) return e3;
var t = [];
return I.Children.forEach(e, (e) => {
- cz(e) || ((0, qbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
+ sz(e) || ((0, Kbe.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
}), e3 = t, $4 = e, t;
};
function n3(e, t) {
var n = [], r = [];
return r = Array.isArray(t) ? t.map((e) => Q4(e)) : [Q4(t)], t3(e).forEach((e) => {
- var t = XR(e, "type.displayName") || XR(e, "type.name");
+ var t = YR(e, "type.displayName") || YR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
var r3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function Jbe(e) {
+function qbe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -58394,7 +58359,7 @@ function Jbe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var Ybe, Xbe, Zbe, Qbe, $be;
+var Jbe, Ybe, Xbe, Zbe, Qbe;
function i3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58409,26 +58374,26 @@ function a3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? i3(Object(n), !0).forEach(function(t) {
- exe(e, t, n[t]);
+ $be(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function exe(e, t, n) {
- return (t = txe(t)) in e ? Object.defineProperty(e, t, {
+function $be(e, t, n) {
+ return (t = exe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function txe(e) {
- var t = nxe(e, "string");
+function exe(e) {
+ var t = txe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nxe(e, t) {
+function txe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58451,29 +58416,29 @@ function s3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
var c3 = (e, t, n, r, i) => {
- var a = n - r, o = QR(Ybe ||= s3([
+ var a = n - r, o = ZR(Jbe ||= s3([
"M ",
",",
""
]), e, t);
- return o += QR(Xbe ||= s3([
+ return o += ZR(Ybe ||= s3([
"L ",
",",
""
- ]), e + n, t), o += QR(Zbe ||= s3([
+ ]), e + n, t), o += ZR(Xbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += QR(Qbe ||= s3([
+ ]), e + n - a / 2, t + i), o += ZR(Zbe ||= s3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += QR($be ||= s3([
+ ]), e + n - a / 2 - r, t + i), o += ZR(Qbe ||= s3([
"L ",
",",
" Z"
]), e, t), o;
-}, rxe = {
+}, nxe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -58483,8 +58448,8 @@ var c3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, ixe = (e) => {
- var t = xz(e, rxe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Yq(e, "trapezoid-");
+}, rxe = (e) => {
+ var t = bz(e, nxe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, I.useRef)(null), [p, m] = (0, I.useState)(-1), h = (0, I.useRef)(i), g = (0, I.useRef)(a), _ = (0, I.useRef)(o), v = (0, I.useRef)(n), y = (0, I.useRef)(r), b = Jq(e, "trapezoid-");
if ((0, I.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -58492,12 +58457,12 @@ var c3 = (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 = Wm("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", o3({}, qL(t), {
+ if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", o3({}, KL(t), {
className: x,
d: c3(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 = gq(["strokeDasharray"], l, c);
- return /*#__PURE__*/ I.createElement(Jq, {
+ 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 = hq(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ I.createElement(qq, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -58506,35 +58471,35 @@ var c3 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = oz(S, i, e), c = oz(C, a, e), l = oz(w, o, e), u = oz(T, n, e), d = oz(E, r, e);
+ var s = az(S, i, e), c = az(C, a, e), l = az(w, o, e), u = az(T, n, e), d = az(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__*/ I.createElement("path", o3({}, qL(t), {
+ return /*#__PURE__*/ I.createElement("path", o3({}, KL(t), {
className: x,
d: c3(u, d, s, c, l),
ref: f,
style: a3(a3({}, p), t.style)
}));
});
-}, axe = [
+}, ixe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function oxe(e, t) {
+function axe(e, t) {
if (e == null) return {};
- var n, r, i = sxe(e, t);
+ var n, r, i = oxe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function sxe(e, t) {
+function oxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58557,26 +58522,26 @@ function u3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? l3(Object(n), !0).forEach(function(t) {
- cxe(e, t, n[t]);
+ sxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cxe(e, t, n) {
- return (t = lxe(t)) in e ? Object.defineProperty(e, t, {
+function sxe(e, t, n) {
+ return (t = cxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lxe(e) {
- var t = uxe(e, "string");
+function cxe(e) {
+ var t = lxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uxe(e, t) {
+function lxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58586,34 +58551,34 @@ function uxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function dxe(e, t) {
+function uxe(e, t) {
return u3(u3({}, t), e);
}
-function fxe(e, t) {
+function dxe(e, t) {
return e === "symbols";
}
function d3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ I.createElement(yJ, n);
- case "trapezoid": return /*#__PURE__*/ I.createElement(ixe, n);
- case "sector": return /*#__PURE__*/ I.createElement(XJ, n);
+ case "rectangle": return /*#__PURE__*/ I.createElement(vJ, n);
+ case "trapezoid": return /*#__PURE__*/ I.createElement(rxe, n);
+ case "sector": return /*#__PURE__*/ I.createElement(YJ, n);
case "symbols":
- if (fxe(t, n)) return /*#__PURE__*/ I.createElement(gz, n);
+ if (dxe(t, n)) return /*#__PURE__*/ I.createElement(hz, n);
break;
- case "curve": return /*#__PURE__*/ I.createElement(ZK, n);
+ case "curve": return /*#__PURE__*/ I.createElement(XK, n);
default: return null;
}
}
-function pxe(e) {
+function fxe(e) {
return /*#__PURE__*/ (0, I.isValidElement)(e) ? e.props : e;
}
function f3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = oxe(e, axe), o;
- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), pxe(t)));
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = axe(e, ixe), o;
+ if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, u3(u3({}, a), fxe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (Jbe(t) && typeof t != "boolean") {
- var s = dxe(t, a);
+ else if (qbe(t) && typeof t != "boolean") {
+ var s = uxe(t, a);
o = /*#__PURE__*/ I.createElement(d3, {
shapeType: n,
elementProps: s
@@ -58625,12 +58590,12 @@ function f3(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ I.createElement(ZL, { className: r }, o) : /*#__PURE__*/ I.createElement(ZL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ I.createElement(XL, { className: r }, o) : /*#__PURE__*/ I.createElement(XL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var p3 = (e, t, n) => {
- var r = Jz();
+ var r = qz();
return (i, a) => (o) => {
e?.(i, a, o), r(r0({
activeIndex: String(a),
@@ -58640,14 +58605,14 @@ var p3 = (e, t, n) => {
}));
};
}, m3 = (e) => {
- var t = Jz();
+ var t = qz();
return (n, r) => (i) => {
- e?.(n, r, i), t(Qge());
+ e?.(n, r, i), t(Zge());
};
}, h3 = (e, t, n) => {
- var r = Jz();
+ var r = qz();
return (i, a) => (o) => {
- e?.(i, a, o), r($ge({
+ e?.(i, a, o), r(Qge({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -58658,9 +58623,9 @@ var p3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function g3(e) {
- var { tooltipEntrySettings: t } = e, n = Jz(), r = LU(), i = (0, I.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = qz(), r = IU(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(Jge(t)) : i.current !== t && n(Yge({
+ r || (i.current === null ? n(qge(t)) : i.current !== t && n(Jge({
prev: i.current,
next: t
})), i.current = t);
@@ -58669,15 +58634,15 @@ function g3(e) {
n,
r
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(Xge(i.current)), null);
+ i.current &&= (n(Yge(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function _3(e) {
- var { legendPayload: t } = e, n = Jz(), r = LU(), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = qz(), r = IU(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(CG(t)) : i.current !== t && n(wG({
+ r || (i.current === null ? n(SG(t)) : i.current !== t && n(CG({
prev: i.current,
next: t
})), i.current = t);
@@ -58686,13 +58651,13 @@ function _3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(TG(i.current)), null);
+ i.current &&= (n(wG(i.current)), null);
}, [n]), null;
}
function v3(e) {
- var { legendPayload: t } = e, n = Jz(), r = Q(_W), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = qz(), r = Q(gW), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(CG(t)) : i.current !== t && n(wG({
+ (r === "centric" || r === "radial") && (i.current === null ? n(SG(t)) : i.current !== t && n(CG({
prev: i.current,
next: t
})), i.current = t);
@@ -58701,27 +58666,27 @@ function v3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(TG(i.current)), null);
+ i.current &&= (n(wG(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var mxe = I.useId ?? (() => {
- var [e] = I.useState(() => rz("uid-"));
+var pxe = I.useId ?? (() => {
+ var [e] = I.useState(() => nz("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function hxe(e, t) {
- var n = mxe();
+function mxe(e, t) {
+ var n = pxe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var gxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
- var { id: t, type: n, children: r } = e, i = hxe(`recharts-${n}`, t);
- return /*#__PURE__*/ I.createElement(gxe.Provider, { value: i }, r(i));
-}, b3 = KV({
+var hxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = mxe(`recharts-${n}`, t);
+ return /*#__PURE__*/ I.createElement(hxe.Provider, { value: i }, r(i));
+}, b3 = GV({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -58730,79 +58695,79 @@ var gxe = /*#__PURE__*/ (0, I.createContext)(void 0), y3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(yG(t.payload));
+ e.cartesianItems.push(vG(t.payload));
},
- prepare: jV()
+ prepare: AV()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bV(e).cartesianItems.indexOf(yG(n));
- i > -1 && (e.cartesianItems[i] = yG(r));
+ var { prev: n, next: r } = t.payload, i = yV(e).cartesianItems.indexOf(vG(n));
+ i > -1 && (e.cartesianItems[i] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = bV(e).cartesianItems.indexOf(yG(t.payload));
+ var n = yV(e).cartesianItems.indexOf(vG(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: jV()
+ prepare: AV()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(yG(t.payload));
+ e.polarItems.push(vG(t.payload));
},
- prepare: jV()
+ prepare: AV()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = bV(e).polarItems.indexOf(yG(t.payload));
+ var n = yV(e).polarItems.indexOf(vG(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: jV()
+ prepare: AV()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = bV(e).polarItems.indexOf(yG(n));
- i > -1 && (e.polarItems[i] = yG(r));
+ var { prev: n, next: r } = t.payload, i = yV(e).polarItems.indexOf(vG(n));
+ i > -1 && (e.polarItems[i] = vG(r));
},
- prepare: jV()
+ prepare: AV()
}
}
-}), { addCartesianGraphicalItem: _xe, replaceCartesianGraphicalItem: vxe, removeCartesianGraphicalItem: yxe, addPolarGraphicalItem: bxe, removePolarGraphicalItem: xxe, replacePolarGraphicalItem: Sxe } = b3.actions, Cxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Jz(), n = (0, I.useRef)(null);
+}), { addCartesianGraphicalItem: gxe, replaceCartesianGraphicalItem: _xe, removeCartesianGraphicalItem: vxe, addPolarGraphicalItem: yxe, removePolarGraphicalItem: bxe, replacePolarGraphicalItem: xxe } = b3.actions, Sxe = b3.reducer, x3 = /*#__PURE__*/ (0, I.memo)((e) => {
+ var t = qz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(_xe(e)) : n.current !== e && t(vxe({
+ n.current === null ? t(gxe(e)) : n.current !== e && t(_xe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(yxe(n.current)), null);
+ n.current &&= (t(vxe(n.current)), null);
}, [t]), null;
}), S3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Jz(), n = (0, I.useRef)(null);
+ var t = qz(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(bxe(e)) : n.current !== e && t(Sxe({
+ n.current === null ? t(yxe(e)) : n.current !== e && t(xxe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(xxe(n.current)), null);
+ n.current &&= (t(bxe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function wxe(e) {
+function Cxe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function Txe(e) {
- if (!(!Dz(e) || e.length === 0)) return wxe(R4(e));
+function wxe(e) {
+ if (!(!Ez(e) || e.length === 0)) return Cxe(R4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var Exe = ["points"];
+var Txe = ["points"];
function C3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -58817,26 +58782,26 @@ function w3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? C3(Object(n), !0).forEach(function(t) {
- Dxe(e, t, n[t]);
+ Exe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Dxe(e, t, n) {
- return (t = Oxe(t)) in e ? Object.defineProperty(e, t, {
+function Exe(e, t, n) {
+ return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Oxe(e) {
- var t = kxe(e, "string");
+function Dxe(e) {
+ var t = Oxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kxe(e, t) {
+function Oxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58855,16 +58820,16 @@ function T3() {
return e;
}, T3.apply(null, arguments);
}
-function Axe(e, t) {
+function kxe(e, t) {
if (e == null) return {};
- var n, r, i = jxe(e, t);
+ var n, r, i = Axe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function jxe(e, t) {
+function Axe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58873,19 +58838,19 @@ function jxe(e, t) {
}
return n;
}
-function Mxe(e) {
+function jxe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, I.isValidElement)(t)) return /*#__PURE__*/ (0, I.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Axe(a, Exe);
+ var i = Wm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = kxe(a, Txe);
return /*#__PURE__*/ I.createElement(y4, T3({}, s, { className: i }));
}
-function Nxe(e, t) {
+function Mxe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
function E3(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = AY.scatter } = e;
- if (!Nxe(t, n)) return null;
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = kY.scatter } = e;
+ if (!Mxe(t, n)) return null;
var u = r3(n), d = Wue(n), f = t.map((e, r) => {
var s = w3(w3(w3({ r: 3 }, o), d), {}, {
index: r,
@@ -58896,14 +58861,14 @@ function E3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ I.createElement(Mxe, {
+ return /*#__PURE__*/ I.createElement(jxe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(n2, { zIndex: l }, /*#__PURE__*/ I.createElement(ZL, T3({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ I.createElement(n2, { zIndex: l }, /*#__PURE__*/ I.createElement(XL, T3({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -58921,26 +58886,26 @@ function O3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? D3(Object(n), !0).forEach(function(t) {
- Pxe(e, t, n[t]);
+ Nxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Pxe(e, t, n) {
- return (t = Fxe(t)) in e ? Object.defineProperty(e, t, {
+function Nxe(e, t, n) {
+ return (t = Pxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Fxe(e) {
- var t = Ixe(e, "string");
+function Pxe(e) {
+ var t = Fxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ixe(e, t) {
+function Fxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58950,7 +58915,7 @@ function Ixe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var k3 = KV({
+var k3 = GV({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -58960,60 +58925,60 @@ var k3 = KV({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = yG(t.payload);
+ e.xAxis[t.payload.id] = vG(t.payload);
},
- prepare: jV()
+ prepare: AV()
},
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] = yG(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: jV()
+ prepare: AV()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = yG(t.payload);
+ e.yAxis[t.payload.id] = vG(t.payload);
},
- prepare: jV()
+ prepare: AV()
},
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] = yG(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: jV()
+ prepare: AV()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = yG(t.payload);
+ e.zAxis[t.payload.id] = vG(t.payload);
},
- prepare: jV()
+ prepare: AV()
},
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] = yG(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = vG(r));
},
- prepare: jV()
+ prepare: AV()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: jV()
+ prepare: AV()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -59028,15 +58993,15 @@ var k3 = KV({
}
}
}
-}), { addXAxis: Lxe, replaceXAxis: Rxe, removeXAxis: zxe, addYAxis: Bxe, replaceYAxis: Vxe, removeYAxis: Hxe, addZAxis: Uxe, replaceZAxis: Wxe, removeZAxis: Gxe, updateYAxisWidth: Kxe } = k3.actions, qxe = k3.reducer, Jxe = $([
- $([NU], (e) => ({
+}), { addXAxis: Ixe, replaceXAxis: Lxe, removeXAxis: Rxe, addYAxis: zxe, replaceYAxis: Bxe, removeYAxis: Vxe, addZAxis: Hxe, replaceZAxis: Uxe, removeZAxis: Wxe, updateYAxisWidth: Gxe } = k3.actions, Kxe = k3.reducer, qxe = $([
+ $([MU], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- gU,
- _U
+ hU,
+ gU
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -59044,7 +59009,7 @@ var k3 = KV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), A3 = () => Q(Jxe), Yxe = () => Q(O_e);
+}), A3 = () => Q(qxe), Jxe = () => Q(D_e);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function j3(e, t) {
@@ -59061,26 +59026,26 @@ function M3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? j3(Object(n), !0).forEach(function(t) {
- Xxe(e, t, n[t]);
+ Yxe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Xxe(e, t, n) {
- return (t = Zxe(t)) in e ? Object.defineProperty(e, t, {
+function Yxe(e, t, n) {
+ return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Zxe(e) {
- var t = Qxe(e, "string");
+function Xxe(e) {
+ var t = Zxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Qxe(e, t) {
+function Zxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59090,7 +59055,7 @@ function Qxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var $xe = (e) => {
+var Qxe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
var s = M3(M3(M3({}, {
@@ -59104,17 +59069,17 @@ var $xe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), KL(i)), vz(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(y4, s);
- return /*#__PURE__*/ I.createElement(ZL, {
+ }), GL(i)), _z(i)), c = /*#__PURE__*/ (0, I.isValidElement)(i) ? /*#__PURE__*/ (0, I.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ I.createElement(y4, s);
+ return /*#__PURE__*/ I.createElement(XL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
function N3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = AY.activeDot } = e, s = Q(F0), c = Yxe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = kY.activeDot } = e, s = Q(F0), c = Jxe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return cz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement($xe, {
+ return sz(l) ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: o }, /*#__PURE__*/ I.createElement(Qxe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -59139,26 +59104,26 @@ function F3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? P3(Object(n), !0).forEach(function(t) {
- eSe(e, t, n[t]);
+ $xe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eSe(e, t, n) {
- return (t = tSe(t)) in e ? Object.defineProperty(e, t, {
+function $xe(e, t, n) {
+ return (t = eSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tSe(e) {
- var t = nSe(e, "string");
+function eSe(e) {
+ var t = tSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nSe(e, t) {
+function tSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59168,16 +59133,16 @@ function nSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I3 = (e, t) => k4(e, "radiusAxis", t), rSe = $([I3], (e) => {
+var I3 = (e, t) => k4(e, "radiusAxis", t), nSe = $([I3], (e) => {
if (e != null) return { scale: e };
-}), iSe = $([UY, I3], (e, t) => {
+}), rSe = $([HY, I3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), aSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => HY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), oSe = $([L3, R3], (e, t) => {
+}), iSe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => VY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), aSe = $([L3, R3], (e, t) => {
if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), sSe = (e, t, n, r) => j4(e, "angleAxis", n, r), cSe = $([
+}), oSe = (e, t, n, r) => j4(e, "angleAxis", n, r), sSe = $([
L3,
R3,
- QY
+ ZY
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -59186,30 +59151,30 @@ var I3 = (e, t) => k4(e, "radiusAxis", t), rSe = $([I3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), lSe = (e, t, n, r, i) => i, uSe = $([
- _W,
+}), cSe = (e, t, n, r, i) => i, lSe = $([
+ gW,
+ rSe,
iSe,
aSe,
- oSe,
- sSe
-], (e, t, n, r, i) => XH(e, "radiusAxis") ? dU(t, n, !1) : dU(r, i, !1)), dSe = $([
- rSe,
- cSe,
- nY,
- $([b4, lSe], (e, t) => {
+ oSe
+], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), uSe = $([
+ nSe,
+ sSe,
+ tY,
+ $([b4, cSe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- uSe
+ lSe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return xSe({
+ if (e != null && t != null && a != null && i != null && r != null) return bSe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), fSe = ["id"];
+}), dSe = ["id"];
function z3() {
return z3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59233,26 +59198,26 @@ function V3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? B3(Object(n), !0).forEach(function(t) {
- pSe(e, t, n[t]);
+ fSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function pSe(e, t, n) {
- return (t = mSe(t)) in e ? Object.defineProperty(e, t, {
+function fSe(e, t, n) {
+ return (t = pSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mSe(e) {
- var t = hSe(e, "string");
+function pSe(e) {
+ var t = mSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hSe(e, t) {
+function mSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59262,16 +59227,16 @@ function hSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function gSe(e, t) {
+function hSe(e, t) {
if (e == null) return {};
- var n, r, i = _Se(e, t);
+ var n, r, i = gSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _Se(e, t) {
+function gSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59283,27 +59248,27 @@ function _Se(e, t) {
function H3(e, t) {
return e && e !== "none" ? e : t;
}
-var vSe = (e) => {
+var _Se = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: H3(r, i),
- value: pU(n, t),
+ value: fU(n, t),
payload: e
}];
-}, ySe = /*#__PURE__*/ I.memo((e) => {
+}, vSe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: dz,
+ getPosition: uz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: pU(a, t),
+ name: fU(a, t),
hide: o,
type: s,
color: H3(n, i),
@@ -59313,8 +59278,8 @@ var vSe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: l });
});
-function bSe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = GL(gSe(n, fSe));
+function ySe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WL(hSe(n, dSe));
return /*#__PURE__*/ I.createElement(E3, {
points: t,
dot: r,
@@ -59324,11 +59289,11 @@ function bSe(e) {
baseProps: o
});
}
-function xSe(e) {
+function bSe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = JH(e, n.dataKey, r), d = JH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Txe(d) : d, m = cz(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, OJ(o, s, m, f)), {}, {
+ var a = qH(e, n.dataKey, r), d = qH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? wxe(d) : d, m = sz(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, DJ(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -59341,8 +59306,8 @@ function xSe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = cz(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(V3(V3({}, e), {}, { radius: r }, OJ(o, s, r, e.angle)));
+ var n = e.value[0], r = sz(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(V3(V3({}, e), {}, { radius: r }, DJ(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -59350,7 +59315,7 @@ function xSe(e) {
baseLinePoints: d
};
}
-function SSe(e) {
+function xSe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -59370,10 +59335,10 @@ function SSe(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, r);
}
-function CSe(e) {
+function SSe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(_4, z3({}, qL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ I.isValidElement(i) ? /*#__PURE__*/ I.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ I.createElement(_4, z3({}, KL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -59386,7 +59351,7 @@ function CSe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(bSe, {
+ return /*#__PURE__*/ I.createElement(XL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(ySe, {
props: r,
points: t
}));
@@ -59394,23 +59359,23 @@ function CSe(e) {
var U3 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? V3(V3({}, r), {}, {
- x: oz(a.x, r.x, n),
- y: oz(a.y, r.y, n)
+ x: az(a.x, r.x, n),
+ y: az(a.y, r.y, n)
}) : V3(V3({}, r), {}, {
- x: oz(r.cx, r.x, n),
- y: oz(r.cy, r.y, n)
+ x: az(r.cx, r.x, n),
+ y: az(r.cy, r.y, n)
});
};
-function wSe(e) {
- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = Yq(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
+function CSe(e) {
+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = Jq(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, I.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ I.createElement(SSe, {
+ return /*#__PURE__*/ I.createElement(xSe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ I.createElement(Jq, {
+ }, /*#__PURE__*/ I.createElement(qq, {
animationId: g,
begin: s,
duration: c,
@@ -59421,22 +59386,22 @@ function wSe(e) {
onAnimationStart: x
}, (e) => {
var o = e === 1 ? i : i.map(U3(f, m, e)), s = e === 1 ? a : a?.map(U3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(CSe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(SSe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function TSe(e) {
+function wSe(e) {
var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);
- return /*#__PURE__*/ I.createElement(wSe, {
+ return /*#__PURE__*/ I.createElement(CSe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var ESe = {
+var TSe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -59448,29 +59413,29 @@ var ESe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: AY.area
+ zIndex: kY.area
};
-function DSe(e) {
+function ESe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Wm("recharts-radar", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: i }, /*#__PURE__*/ I.createElement(TSe, e)), /*#__PURE__*/ I.createElement(N3, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, /*#__PURE__*/ I.createElement(wSe, e)), /*#__PURE__*/ I.createElement(N3, {
points: r,
mainColor: H3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function OSe(e) {
- var t = LU(), n = Q((n) => dSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ I.createElement(DSe, z3({}, e, {
+function DSe(e) {
+ var t = IU(), n = Q((n) => uSe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ I.createElement(ESe, z3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function W3(e) {
- var t = xz(e, ESe);
+ var t = bz(e, TSe);
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "radar"
@@ -59482,7 +59447,7 @@ function W3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ I.createElement(v3, { legendPayload: vSe(t) }), /*#__PURE__*/ I.createElement(ySe, {
+ }), /*#__PURE__*/ I.createElement(v3, { legendPayload: _Se(t) }), /*#__PURE__*/ I.createElement(vSe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -59491,7 +59456,7 @@ function W3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ I.createElement(OSe, z3({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(DSe, z3({}, t, { id: e }))));
}
W3.displayName = "Radar";
//#endregion
@@ -59515,9 +59480,9 @@ function q3(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var J3 = (e, t, n) => {
var r = n ?? e;
- if (!cz(r)) return iz(r, t, 0);
+ if (!sz(r)) return rz(r, t, 0);
}, Y3 = (e, t, n) => {
- var r = {}, i = e.filter(rX), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ var r = {}, i = e.filter(nX), 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) => {
@@ -59550,26 +59515,26 @@ function Z3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X3(Object(n), !0).forEach(function(t) {
- kSe(e, t, n[t]);
+ OSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kSe(e, t, n) {
- return (t = ASe(t)) in e ? Object.defineProperty(e, t, {
+function OSe(e, t, n) {
+ return (t = kSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ASe(e) {
- var t = jSe(e, "string");
+function kSe(e) {
+ var t = ASe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jSe(e, t) {
+function ASe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59579,11 +59544,11 @@ function jSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function MSe(e, t, n, r, i) {
+function jSe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = iz(e, n, 0, !0), s, c = [];
- if (VH(r[0]?.barSize)) {
+ var o = rz(e, n, 0, !0), s, c = [];
+ if (BH(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 = {
@@ -59602,11 +59567,11 @@ function MSe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = iz(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 = VH(i) ? Math.min(m, i) : m;
+ var h = BH(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -59620,10 +59585,10 @@ function MSe(e, t, n, r, i) {
}
}
var Q3 = (e, t, n, r, i, a, o) => {
- var s = cz(o) ? t : o, c = MSe(n, r, i === a ? a : i, e, s);
+ var s = sz(o) ? t : o, c = jSe(n, r, i === a ? a : i, e, s);
return i !== a && c != null && (c = c.map((e) => Z3(Z3({}, e), {}, { position: Z3(Z3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
}, $3 = (e, t) => {
- var n = tX(t);
+ var n = eX(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -59656,26 +59621,26 @@ function n6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? t6(Object(n), !0).forEach(function(t) {
- NSe(e, t, n[t]);
+ MSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NSe(e, t, n) {
- return (t = PSe(t)) in e ? Object.defineProperty(e, t, {
+function MSe(e, t, n) {
+ return (t = NSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PSe(e) {
- var t = FSe(e, "string");
+function NSe(e) {
+ var t = PSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FSe(e, t) {
+function PSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59685,81 +59650,81 @@ function FSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var r6 = $([(e, t) => UY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
+var r6 = $([(e, t) => HY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
-}), i6 = (e, t) => Jye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => HY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
+}), i6 = (e, t) => qye(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => VY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
}), o6 = (e, t, n) => j4(e, "angleAxis", n, !1), s6 = $([b4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
}), c6 = $([
- _W,
+ gW,
r6,
i6,
a6,
o6
-], (e, t, n, r, i) => XH(e, "radiusAxis") ? dU(t, n, !1) : dU(r, i, !1)), ISe = $([
+], (e, t, n, r, i) => YH(e, "radiusAxis") ? uU(t, n, !1) : uU(r, i, !1)), FSe = $([
a6,
r6,
- _W
+ gW
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return aU({ numericAxis: r });
-}), LSe = (e, t, n, r, i) => i, RSe = (e, t, n, r, i) => n, zSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", BSe = $([$([
+ if (r != null && r.scale != null) return iU({ numericAxis: r });
+}), ISe = (e, t, n, r, i) => i, LSe = (e, t, n, r, i) => n, RSe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", zSe = $([$([
$([
$([
- _W,
+ gW,
b4,
- RSe,
- zSe
+ LSe,
+ RSe
], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(u6)),
- SY,
+ xY,
() => void 0
], Y3),
+ vY,
yY,
bY,
- xY,
$([
- _W,
- yY,
+ gW,
+ vY,
a6,
o6,
r6,
i6,
l6
], (e, t, n, r, i, a, o) => {
- var s = cz(o) ? t : o;
- return e === "centric" ? dU(n, r, !0) ?? s ?? 0 : dU(i, a, !0) ?? s ?? 0;
+ var s = sz(o) ? t : o;
+ return e === "centric" ? uU(n, r, !0) ?? s ?? 0 : uU(i, a, !0) ?? s ?? 0;
}),
c6,
l6
-], Q3), s6], e6), d6 = $([x4], (e) => e.filter(u6).filter(rX)), f6 = $([
+], Q3), s6], e6), d6 = $([x4], (e) => e.filter(u6).filter(nX)), f6 = $([
$([
d6,
- nY,
- n1
- ], nX),
+ tY,
+ r1
+ ], tX),
d6,
- CY,
- wY
-], i1), VSe = $([
+ SY,
+ CY
+], a1), BSe = $([
a6,
o6,
r6,
i6,
- tY,
+ eY,
s6,
c6,
- _W,
+ gW,
+ FSe,
+ ZY,
ISe,
- QY,
- LSe,
- BSe,
- $([(e, t, n) => _W(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
+ zSe,
+ $([(e, t, n) => gW(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return iCe({
+ return rCe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -59780,7 +59745,7 @@ var r6 = $([(e, t) => UY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), HSe = $([nY, (e, t) => t], (e, t) => {
+}), VSe = $([tY, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -59794,20 +59759,20 @@ var r6 = $([(e, t) => UY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function p6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && VH(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && BH(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var USe = [
+var HSe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], WSe = [
+], USe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], GSe = ["value", "background"];
+], WSe = ["value", "background"];
function m6() {
return m6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59831,26 +59796,26 @@ function g6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? h6(Object(n), !0).forEach(function(t) {
- KSe(e, t, n[t]);
+ GSe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KSe(e, t, n) {
- return (t = qSe(t)) in e ? Object.defineProperty(e, t, {
+function GSe(e, t, n) {
+ return (t = KSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qSe(e) {
- var t = JSe(e, "string");
+function KSe(e) {
+ var t = qSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JSe(e, t) {
+function qSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59862,14 +59827,14 @@ function JSe(e, t) {
}
function _6(e, t) {
if (e == null) return {};
- var n, r, i = YSe(e, t);
+ var n, r, i = JSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function YSe(e, t) {
+function JSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59879,7 +59844,7 @@ function YSe(e, t) {
return n;
}
var v6 = [];
-function XSe(e) {
+function YSe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -59896,15 +59861,15 @@ function XSe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ I.createElement(Iye, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ I.createElement(Fye, { value: t ? i : void 0 }, r);
}
-function ZSe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, USe), l = GL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, WSe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ I.createElement(XSe, {
+function XSe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, HSe), l = WL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, USe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ I.createElement(YSe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = g6(g6(g6(g6({}, l), {}, { cornerRadius: K3(o) }, e), yz(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = g6(g6(g6(g6({}, l), {}, { cornerRadius: K3(o) }, e), vz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -59916,18 +59881,18 @@ function ZSe(e) {
index: t
});
return n ? /*#__PURE__*/ I.createElement(n2, {
- zIndex: AY.activeBar,
+ zIndex: kY.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
}, /*#__PURE__*/ I.createElement(q3, f)) : /*#__PURE__*/ I.createElement(q3, m6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }), n.children);
}
-function QSe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Yq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
+function ZSe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Jq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, I.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ I.createElement(Jq, {
+ return /*#__PURE__*/ I.createElement(qq, {
animationId: u,
begin: a,
duration: o,
@@ -59940,34 +59905,34 @@ function QSe(e) {
var i = e === 1 ? r : (r ?? v6).map((t, n) => {
var r = d && d[n];
if (r) return g6(g6({}, t), {}, {
- startAngle: oz(r.startAngle, t.startAngle, e),
- endAngle: oz(r.endAngle, t.endAngle, e)
+ startAngle: az(r.startAngle, t.startAngle, e),
+ endAngle: az(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return g6(g6({}, t), {}, { endAngle: oz(a, i, e) });
+ return g6(g6({}, t), {}, { endAngle: az(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(ZSe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(XSe, {
sectors: i ?? v6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function $Se(e) {
+function QSe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(QSe, {
+ return /*#__PURE__*/ I.createElement(ZSe, {
props: e,
previousSectorsRef: t
});
}
-function eCe(e) {
- var t = Q((t) => HSe(t, e.legendType));
+function $Se(e) {
+ var t = Q((t) => VSe(t, e.legendType));
return /*#__PURE__*/ I.createElement(v3, { legendPayload: t ?? [] });
}
-var tCe = /*#__PURE__*/ I.memo((e) => {
+var eCe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: dz,
+ getPosition: uz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -59975,7 +59940,7 @@ var tCe = /*#__PURE__*/ I.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: pU(a, t),
+ name: fU(a, t),
hide: o,
type: c,
color: s,
@@ -59983,14 +59948,14 @@ var tCe = /*#__PURE__*/ I.memo((e) => {
}
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
-}), nCe = class extends I.PureComponent {
+}), tCe = class extends I.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = KL(this.props.background);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(this.props.background, AY.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = _6(e, GSe);
+ var { cornerRadius: t } = this.props, n = GL(this.props.background);
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(this.props.background, kY.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = _6(e, WSe);
if (!a) return null;
- var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), yz(this.props, e, r)), {}, {
+ var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), vz(this.props, e, r)), {}, {
index: r,
className: Wm("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -60003,17 +59968,17 @@ var tCe = /*#__PURE__*/ I.memo((e) => {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Wm("recharts-area", n);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: i }, r && /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(ZL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement($Se, this.props))));
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: i }, r && /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement(XL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(QSe, this.props))));
}
};
-function rCe(e) {
+function nCe(e) {
var t = I.useMemo(() => n3(e.children, y2), [e.children]), n = I.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: nU(e.stackId),
+ stackId: tU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -60028,8 +59993,8 @@ function rCe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => VSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tCe, {
+ ]), r = Q((r) => BSe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(eCe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -60039,7 +60004,7 @@ function rCe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ I.createElement(nCe, m6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ I.createElement(tCe, m6({}, e, { sectors: r })));
}
var y6 = {
angleAxisId: 0,
@@ -60056,14 +60021,14 @@ var y6 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: AY.bar
+ zIndex: kY.bar
};
-function iCe(e) {
+function rCe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
return g == null || l == null ? v6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = $H(n[r + t], i) : (b = JH(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 = iU({
+ if (n ? b = QH(n[r + t], i) : (b = qH(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 = rU({
axis: c,
ticks: l,
bandSize: u,
@@ -60074,7 +60039,7 @@ function iCe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = $R(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = QR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -60086,7 +60051,7 @@ function iCe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = iU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = rU({
axis: f,
ticks: g,
bandSize: u,
@@ -60097,7 +60062,7 @@ function iCe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = $R(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = QR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -60114,7 +60079,7 @@ function iCe(e) {
});
}
function b6(e) {
- var t = xz(e, y6);
+ var t = bz(e, y6);
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "radialBar"
@@ -60126,17 +60091,17 @@ function b6(e) {
hide: t.hide ?? y6.hide,
angleAxisId: t.angleAxisId ?? y6.angleAxisId,
radiusAxisId: t.radiusAxisId ?? y6.radiusAxisId,
- stackId: nU(t.stackId),
+ stackId: tU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ I.createElement(eCe, t), /*#__PURE__*/ I.createElement(rCe, m6({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement($Se, t), /*#__PURE__*/ I.createElement(nCe, m6({}, t, { id: e }))));
}
b6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var x6 = (e) => {
- var { chartData: t } = e, n = Jz(), r = LU();
+ var { chartData: t } = e, n = qz(), r = IU();
return (0, I.useEffect)(() => r ? () => {} : (n(p2(t)), () => {
n(p2(void 0));
}), [
@@ -60155,13 +60120,13 @@ var x6 = (e) => {
bottom: 0,
left: 0
}
-}, C6 = KV({
+}, C6 = GV({
name: "brush",
initialState: S6,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? S6 : t.payload;
} }
-}), { setBrushSettings: aCe } = C6.actions, oCe = C6.reducer, sCe = (e, t) => {
+}), { setBrushSettings: iCe } = C6.actions, aCe = C6.reducer, oCe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -60169,9 +60134,9 @@ var x6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, cCe = (e) => {
+}, sCe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return sCe({
+ return oCe({
x: t,
y: n
}, {
@@ -60179,13 +60144,13 @@ var x6 = (e) => {
y: i
});
};
-function lCe(e) {
+function cCe(e) {
return (e % 180 + 180) % 180;
}
-var uCe = function(e) {
- var { width: t, height: n } = e, r = lCe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var lCe = function(e) {
+ var { width: t, height: n } = e, r = cCe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, w6 = KV({
+}, w6 = GV({
name: "referenceElements",
initialState: {
dots: [],
@@ -60197,26 +60162,26 @@ var uCe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = bV(e).dots.findIndex((e) => e === t.payload);
+ var n = yV(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 = bV(e).areas.findIndex((e) => e === t.payload);
+ var n = yV(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(yG(t.payload));
+ e.lines.push(vG(t.payload));
},
removeLine: (e, t) => {
- var n = bV(e).lines.findIndex((e) => e === t.payload);
+ var n = yV(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: dCe, removeDot: fCe, addArea: pCe, removeArea: mCe, addLine: hCe, removeLine: gCe } = w6.actions, _Ce = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), vCe = (e) => {
- var { children: t } = e, [n] = (0, I.useState)(`${rz("recharts")}-clip`), r = A3();
+}), { addDot: uCe, removeDot: dCe, addArea: fCe, removeArea: pCe, addLine: mCe, removeLine: hCe } = w6.actions, gCe = w6.reducer, T6 = /*#__PURE__*/ (0, I.createContext)(void 0), _Ce = (e) => {
+ var { children: t } = e, [n] = (0, I.useState)(`${nz("recharts")}-clip`), r = A3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
return /*#__PURE__*/ I.createElement(T6.Provider, { value: n }, /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: n }, /*#__PURE__*/ I.createElement("rect", {
@@ -60225,7 +60190,7 @@ var uCe = function(e) {
height: s,
width: o
}))), t);
-}, yCe = () => (0, I.useContext)(T6), bCe = class {
+}, vCe = () => (0, I.useContext)(T6), yCe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -60265,26 +60230,26 @@ function D6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? E6(Object(n), !0).forEach(function(t) {
- xCe(e, t, n[t]);
+ bCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xCe(e, t, n) {
- return (t = SCe(t)) in e ? Object.defineProperty(e, t, {
+function bCe(e, t, n) {
+ return (t = xCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SCe(e) {
- var t = CCe(e, "string");
+function xCe(e) {
+ var t = SCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CCe(e, t) {
+function SCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60303,18 +60268,18 @@ function O6() {
return e;
}, O6.apply(null, arguments);
}
-var wCe = (e, t) => {
+var CCe = (e, t) => {
var n;
if (/*#__PURE__*/ I.isValidElement(e)) n = /*#__PURE__*/ I.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!VH(t.x1) || !VH(t.y1) || !VH(t.x2) || !VH(t.y2)) return null;
+ if (!BH(t.x1) || !BH(t.y1) || !BH(t.x2) || !BH(t.y2)) return null;
n = /*#__PURE__*/ I.createElement("line", O6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, TCe = (e, t, n, r, i, a) => {
+}, wCe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!VH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -60323,9 +60288,9 @@ var wCe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, ECe = (e, t, n, r, i, a) => {
+}, TCe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!VH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!BH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -60334,7 +60299,7 @@ var wCe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, DCe = (e, t, n, r) => {
+}, ECe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -60343,43 +60308,43 @@ var wCe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, OCe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = nz(s);
- return nz(c) ? TCe(c, u, r, a, t, n) : d ? ECe(s, u, r, i, e, n) : l != null && l.length === 2 ? DCe(l, u, r, new bCe({
+}, DCe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tz(s);
+ return tz(c) ? wCe(c, u, r, a, t, n) : d ? TCe(s, u, r, i, e, n) : l != null && l.length === 2 ? ECe(l, u, r, new yCe({
x: e,
y: t
})) : null;
};
-function kCe(e) {
- var t = Jz();
- return (0, I.useEffect)(() => (t(hCe(e)), () => {
- t(gCe(e));
+function OCe(e) {
+ var t = qz();
+ return (0, I.useEffect)(() => (t(mCe(e)), () => {
+ t(hCe(e));
})), null;
}
-function ACe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = LU(), s = yCe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = dW();
+function kCe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = IU(), s = vCe(), c = Q((e) => P$(e, t)), l = Q((e) => L$(e, n)), u = Q((e) => P1(e, "xAxis", t, o)), d = Q((e) => P1(e, "yAxis", n, o)), f = uW();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = OCe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = DCe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = D6(D6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, qL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = D6(D6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = cCe({
+ }), x = sCe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-reference-line", i) }, wCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-reference-line", i) }, CCe(r, b), /*#__PURE__*/ I.createElement(Q2, O6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ I.createElement(o4, { label: e.label }), e.children)));
}
-var jCe = {
+var ACe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -60389,18 +60354,18 @@ var jCe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: AY.line
+ zIndex: kY.line
};
function k6(e) {
- var t = xz(e, jCe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(kCe, {
+ var t = bz(e, ACe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(OCe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ I.createElement(ACe, t));
+ }), /*#__PURE__*/ I.createElement(kCe, t));
}
k6.displayName = "ReferenceLine";
//#endregion
@@ -60416,13 +60381,13 @@ function A6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function MCe(e, t, n) {
- return uCe({
+function jCe(e, t, n) {
+ return lCe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function NCe(e, t, n) {
+function MCe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -60437,12 +60402,12 @@ function j6(e, t, n, r, i) {
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function PCe(e, t) {
+function NCe(e, t) {
return A6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function FCe(e, t, n, r, i) {
+function PCe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
if (t === void 0) return { v: A6(r, l) };
@@ -60451,7 +60416,7 @@ function FCe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function ICe(e, t, n, r, i) {
+function FCe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
@@ -60488,26 +60453,26 @@ function N6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? M6(Object(n), !0).forEach(function(t) {
- LCe(e, t, n[t]);
+ ICe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LCe(e, t, n) {
- return (t = RCe(t)) in e ? Object.defineProperty(e, t, {
+function ICe(e, t, n) {
+ return (t = LCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RCe(e) {
- var t = zCe(e, "string");
+function LCe(e) {
+ var t = RCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zCe(e, t) {
+function RCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60517,7 +60482,7 @@ function zCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function BCe(e, t, n, r, i) {
+function zCe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
@@ -60530,7 +60495,7 @@ function BCe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function VCe(e, t, n, r, i, a) {
+function BCe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
@@ -60554,7 +60519,7 @@ function VCe(e, t, n, r, i, a) {
function P6(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || EK.isSsr) return PCe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || TK.isSsr) return NCe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? T2(u, {
fontSize: t,
letterSpacing: n
@@ -60563,19 +60528,19 @@ function P6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? MCe(T2(i, {
+ return p === "width" ? jCe(T2(i, {
fontSize: t,
letterSpacing: n
}), m, d) : T2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? $R(_.coordinate - g.coordinate) : 1, y = NCe(a, v, p);
- return c === "equidistantPreserveStart" ? FCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? ICe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? VCe(v, y, h, i, o, c === "preserveStartEnd") : BCe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QR(_.coordinate - g.coordinate) : 1, y = MCe(a, v, p);
+ return c === "equidistantPreserveStart" ? PCe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? FCe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? BCe(v, y, h, i, o, c === "preserveStartEnd") : zCe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var HCe = (e) => {
+var VCe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -60588,7 +60553,7 @@ var HCe = (e) => {
return Math.round(l);
}
return 0;
-}, F6 = KV({
+}, F6 = GV({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -60597,14 +60562,14 @@ var HCe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = yG(i);
+ e[n][r] = vG(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: UCe, removeRenderedTicks: WCe } = F6.actions, GCe = F6.reducer, KCe = [
+}), { setRenderedTicks: HCe, removeRenderedTicks: UCe } = F6.actions, WCe = F6.reducer, GCe = [
"axisLine",
"width",
"height",
@@ -60614,16 +60579,16 @@ var HCe = (e) => {
"axisType",
"axisId"
];
-function qCe(e, t) {
+function KCe(e, t) {
if (e == null) return {};
- var n, r, i = JCe(e, t);
+ var n, r, i = qCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JCe(e, t) {
+function qCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60655,26 +60620,26 @@ function R6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? L6(Object(n), !0).forEach(function(t) {
- YCe(e, t, n[t]);
+ JCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YCe(e, t, n) {
- return (t = XCe(t)) in e ? Object.defineProperty(e, t, {
+function JCe(e, t, n) {
+ return (t = YCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XCe(e) {
- var t = ZCe(e, "string");
+function YCe(e) {
+ var t = XCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZCe(e, t) {
+function XCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60706,12 +60671,12 @@ var z6 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: AY.axis
+ zIndex: kY.axis
};
-function QCe(e) {
+function ZCe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = R6(R6(R6({}, c), GL(s)), {}, { fill: "none" });
+ var l = R6(R6(R6({}, c), WL(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = R6(R6({}, l), {}, {
@@ -60729,9 +60694,9 @@ function QCe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ I.createElement("line", I6({}, l, { className: Wm("recharts-cartesian-axis-line", XR(s, "className")) }));
+ return /*#__PURE__*/ I.createElement("line", I6({}, l, { className: Wm("recharts-cartesian-axis-line", YR(s, "className")) }));
}
-function $Ce(e, t, n, r, i, a, o, s, c) {
+function QCe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -60758,14 +60723,14 @@ function $Ce(e, t, n, r, i, a, o, s, c) {
}
};
}
-function ewe(e, t) {
+function $Ce(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function twe(e, t) {
+function ewe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -60773,7 +60738,7 @@ function twe(e, t) {
default: return t ? "end" : "start";
}
}
-function nwe(e) {
+function twe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Wm(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ I.isValidElement(t)) i = /*#__PURE__*/ I.cloneElement(t, R6(R6({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(R6(R6({}, n), {}, { className: a }));
@@ -60783,9 +60748,9 @@ function nwe(e) {
}
return i;
}
-function rwe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = Jz();
- return (0, I.useEffect)(() => r == null || n == null ? dz : (i(UCe({
+function nwe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = qz();
+ return (0, I.useEffect)(() => r == null || n == null ? uz : (i(HCe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -60795,7 +60760,7 @@ function rwe(e) {
axisId: r,
axisType: n
})), () => {
- i(WCe({
+ i(UCe({
axisId: r,
axisType: n
}));
@@ -60806,15 +60771,15 @@ function rwe(e) {
n
]), null;
}
-var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = GL(b), E = KL(r), D = R2(T.textAnchor) ? T.textAnchor : ewe(u, d), O = twe(u, d), k = {};
+var rwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = WL(b), E = GL(r), D = R2(T.textAnchor) ? T.textAnchor : $Ce(u, d), O = ewe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, $Ce(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, QCe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ I.createElement(ZL, {
+ return /*#__PURE__*/ I.createElement(XL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ I.createElement("line", I6({}, A, n, { className: Wm("recharts-cartesian-axis-tick-line", XR(i, "className")) })));
+ }, i && /*#__PURE__*/ I.createElement("line", I6({}, A, n, { className: Wm("recharts-cartesian-axis-tick-line", YR(i, "className")) })));
}), N = j.map((e, t) => {
var { entry: n, tick: i } = e, u = R6(R6({}, R6(R6(R6(R6({ verticalAnchor: O }, T), {}, {
textAnchor: D,
@@ -60827,26 +60792,26 @@ var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ I.createElement(ZL, I6({
+ return /*#__PURE__*/ I.createElement(XL, I6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, yz(x, n, t)), r && /*#__PURE__*/ I.createElement(nwe, {
+ }, vz(x, n, t)), r && /*#__PURE__*/ I.createElement(twe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(rwe, {
+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(nwe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ I.createElement(n2, { zIndex: AY.label }, /*#__PURE__*/ I.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ I.createElement(n2, { zIndex: kY.label }, /*#__PURE__*/ I.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), awe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = qCe(e, KCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => HCe({
+}), iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = KCe(e, GCe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
+ (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => VCe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -60864,7 +60829,7 @@ var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(ZL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(QCe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ I.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(XL, { className: Wm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(ZCe, {
x: e.x,
y: e.y,
width: r,
@@ -60872,8 +60837,8 @@ var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: GL(e)
- }), /*#__PURE__*/ I.createElement(iwe, {
+ otherSvgProps: WL(e)
+ }), /*#__PURE__*/ I.createElement(rwe, {
ref: g,
axisType: c,
events: u,
@@ -60909,19 +60874,19 @@ var iwe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), B6 = /*#__PURE__*/ I.forwardRef((e, t) => {
- var n = xz(e, z6);
- return /*#__PURE__*/ I.createElement(awe, I6({}, n, { ref: t }));
+ var n = bz(e, z6);
+ return /*#__PURE__*/ I.createElement(iwe, I6({}, n, { ref: t }));
});
B6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var owe = [
+var awe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], swe = ["offset"], cwe = ["xAxisId", "yAxisId"], lwe = ["xAxisId", "yAxisId"];
+], owe = ["offset"], swe = ["xAxisId", "yAxisId"], cwe = ["xAxisId", "yAxisId"];
function V6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60936,26 +60901,26 @@ function H6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? V6(Object(n), !0).forEach(function(t) {
- uwe(e, t, n[t]);
+ lwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uwe(e, t, n) {
- return (t = dwe(t)) in e ? Object.defineProperty(e, t, {
+function lwe(e, t, n) {
+ return (t = uwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dwe(e) {
- var t = fwe(e, "string");
+function uwe(e) {
+ var t = dwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fwe(e, t) {
+function dwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60976,14 +60941,14 @@ function U6() {
}
function W6(e, t) {
if (e == null) return {};
- var n, r, i = pwe(e, t);
+ var n, r, i = fwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function pwe(e, t) {
+function fwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60992,7 +60957,7 @@ function pwe(e, t) {
}
return n;
}
-var mwe = (e) => {
+var pwe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -61013,7 +60978,7 @@ function G6(e) {
if (/*#__PURE__*/ I.isValidElement(t)) r = /*#__PURE__*/ I.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = GL(W6(n, owe)) ?? {}, { offset: u } = l, d = W6(l, swe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WL(W6(n, awe)) ?? {}, { offset: u } = l, d = W6(l, owe);
r = /*#__PURE__*/ I.createElement("line", U6({}, d, {
x1: i,
y1: a,
@@ -61025,10 +60990,10 @@ function G6(e) {
}
return r;
}
-function hwe(e) {
+function mwe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, cwe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, swe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: t,
y1: e,
@@ -61045,10 +61010,10 @@ function hwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function gwe(e) {
+function hwe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, lwe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = W6(e, cwe), c = i.map((e, i) => {
var a = H6(H6({}, s), {}, {
x1: e,
y1: t,
@@ -61065,7 +61030,7 @@ function gwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function _we(e) {
+function gwe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -61088,7 +61053,7 @@ function _we(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function vwe(e) {
+function _we(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -61111,10 +61076,10 @@ function vwe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var ywe = (e, t) => {
+var vwe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return ZH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: QH(n, !0),
+ return XH(P6(H6(H6(H6({}, z6), n), {}, {
+ ticks: ZH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -61122,10 +61087,10 @@ var ywe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, bwe = (e, t) => {
+}, ywe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return ZH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: QH(n, !0),
+ return XH(P6(H6(H6(H6({}, z6), n), {}, {
+ ticks: ZH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -61133,7 +61098,7 @@ var ywe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, xwe = {
+}, bwe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -61145,17 +61110,17 @@ var ywe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: AY.grid
+ zIndex: kY.grid
};
function K6(e) {
- var t = mW(), n = hW(), r = pW(), i = H6(H6({}, xz(e, xwe)), {}, {
+ var t = pW(), n = mW(), r = fW(), i = H6(H6({}, bz(e, bwe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = LU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
- if (!HH(l) || !HH(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || ywe, v = i.horizontalCoordinatesGenerator || bwe, { 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 = IU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
+ if (!VH(l) || !VH(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || vwe, v = i.horizontalCoordinatesGenerator || ywe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
yAxis: g ? H6(H6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
@@ -61163,7 +61128,7 @@ function K6(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- UU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ HU(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 = _({
@@ -61172,9 +61137,9 @@ function K6(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- UU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ HU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(mwe, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(pwe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -61182,12 +61147,12 @@ function K6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ I.createElement(_we, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(vwe, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(hwe, U6({}, i, {
+ }), /*#__PURE__*/ I.createElement(gwe, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(_we, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(mwe, U6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ I.createElement(gwe, U6({}, i, {
+ })), /*#__PURE__*/ I.createElement(hwe, U6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -61197,7 +61162,7 @@ function K6(e) {
K6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var q6 = KV({
+var q6 = GV({
name: "errorBars",
initialState: {},
reducers: {
@@ -61214,17 +61179,17 @@ var q6 = KV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: Swe, replaceErrorBar: Cwe, removeErrorBar: wwe } = q6.actions, Twe = q6.reducer, Ewe = ["children"];
-function Dwe(e, t) {
+}), { addErrorBar: xwe, replaceErrorBar: Swe, removeErrorBar: Cwe } = q6.actions, wwe = q6.reducer, Twe = ["children"];
+function Ewe(e, t) {
if (e == null) return {};
- var n, r, i = Owe(e, t);
+ var n, r, i = Dwe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function Owe(e, t) {
+function Dwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61233,7 +61198,7 @@ function Owe(e, t) {
}
return n;
}
-var kwe = /*#__PURE__*/ (0, I.createContext)({
+var Owe = /*#__PURE__*/ (0, I.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -61245,13 +61210,13 @@ var kwe = /*#__PURE__*/ (0, I.createContext)({
errorBarOffset: 0
});
function J6(e) {
- var { children: t } = e, n = Dwe(e, Ewe);
- return /*#__PURE__*/ I.createElement(kwe.Provider, { value: n }, t);
+ var { children: t } = e, n = Ewe(e, Twe);
+ return /*#__PURE__*/ I.createElement(Owe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
function Y6(e, t) {
- var n = Q((t) => N$(t, e)), r = Q((e) => I$(e, t)), i = n?.allowDataOverflow ?? j$.allowDataOverflow, a = r?.allowDataOverflow ?? P$.allowDataOverflow;
+ var n = Q((t) => P$(t, e)), r = Q((e) => L$(e, t)), i = n?.allowDataOverflow ?? M$.allowDataOverflow, a = r?.allowDataOverflow ?? F$.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
@@ -61271,30 +61236,30 @@ function X6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), Awe = $([
- _W,
+var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), kwe = $([
+ gW,
Z6,
$6,
Q6,
e8
-], (e, t, n, r, i) => XH(e, "xAxis") ? dU(t, r, !1) : dU(n, i, !1)), jwe = (e, t, n, r, i) => i;
-function Mwe(e) {
+], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), Awe = (e, t, n, r, i) => i;
+function jwe(e) {
return e.type === "line";
}
-var Nwe = $([
- _W,
+var Mwe = $([
+ gW,
Z6,
$6,
Q6,
e8,
- $([H$, jwe], (e, t) => e.filter(Mwe).find((e) => e.id === t)),
- Awe,
- rY
+ $([U$, Awe], (e, t) => e.filter(jwe).find((e) => e.id === t)),
+ kwe,
+ nY
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return $we({
+ if (p != null) return Qwe({
layout: e,
xAxis: t,
yAxis: n,
@@ -61309,7 +61274,7 @@ var Nwe = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function t8(e) {
- var t = KL(e), n = 3, r = 2;
+ var t = GL(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), {
@@ -61324,13 +61289,13 @@ function t8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var Pwe = ["id"], Fwe = [
+var Nwe = ["id"], Pwe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], Iwe = [
+], Fwe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -61369,26 +61334,26 @@ function i8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? r8(Object(n), !0).forEach(function(t) {
- Lwe(e, t, n[t]);
+ Iwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Lwe(e, t, n) {
- return (t = Rwe(t)) in e ? Object.defineProperty(e, t, {
+function Iwe(e, t, n) {
+ return (t = Lwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Rwe(e) {
- var t = zwe(e, "string");
+function Lwe(e) {
+ var t = Rwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zwe(e, t) {
+function Rwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61400,14 +61365,14 @@ function zwe(e, t) {
}
function a8(e, t) {
if (e == null) return {};
- var n, r, i = Bwe(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 Bwe(e, t) {
+function zwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61416,27 +61381,27 @@ function Bwe(e, t) {
}
return n;
}
-var Vwe = (e) => {
+var Bwe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: pU(n, t),
+ value: fU(n, t),
payload: e
}];
-}, Hwe = /*#__PURE__*/ I.memo((e) => {
+}, Vwe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: dz,
+ getPosition: uz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: pU(o, t),
+ name: fU(o, t),
hide: s,
type: l,
color: r,
@@ -61446,11 +61411,11 @@ var Vwe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
}), o8 = (e, t) => `${t}px ${e}px`;
-function Uwe(e, t) {
+function Hwe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var Wwe = (e, t, n) => {
+var Uwe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
if (!r) return o8(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
@@ -61462,13 +61427,13 @@ var Wwe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...Uwe(n, i),
+ ...Hwe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function Gwe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = GL(a8(r, Pwe));
+function Wwe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WL(a8(r, Nwe));
return /*#__PURE__*/ I.createElement(E3, {
points: n,
dot: i,
@@ -61480,7 +61445,7 @@ function Gwe(e) {
clipPathId: t
});
}
-function Kwe(e) {
+function Gwe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61501,7 +61466,7 @@ function Kwe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function s8(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, qL(a8(a, Fwe))), {}, {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, KL(a8(a, Pwe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -61514,31 +61479,31 @@ function s8(e) {
return /*#__PURE__*/ I.createElement(I.Fragment, null, r?.length > 1 && /*#__PURE__*/ I.createElement(f3, n8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Gwe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(Wwe, {
points: r,
clipPathId: t,
props: a
}));
}
-function qwe(e) {
+function Kwe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function Jwe(e) {
- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = Yq(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
+function qwe(e) {
+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = Jq(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, I.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = qwe(r.current), E = (0, I.useRef)(0);
+ }, [g]), T = Kwe(r.current), E = (0, I.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ I.createElement(Kwe, {
+ return /*#__PURE__*/ I.createElement(Gwe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ I.createElement(Jq, {
+ }, n.children, /*#__PURE__*/ I.createElement(qq, {
animationId: v,
begin: l,
duration: u,
@@ -61548,20 +61513,20 @@ function Jwe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = oz(D, T + D, e), u = Math.min(l, T), d = c ? s ? Wwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
+ var l = az(D, T + D, e), u = Math.min(l, T), d = c ? s ? Uwe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
return i8(i8({}, t), {}, {
- x: oz(i.x, t.x, e),
- y: oz(i.y, t.y, e)
+ x: az(i.x, t.x, e),
+ y: az(i.y, t.y, e)
});
}
return f ? i8(i8({}, t), {}, {
- x: oz(p * 2, t.x, e),
- y: oz(m / 2, t.y, e)
+ x: az(p * 2, t.x, e),
+ y: az(m / 2, t.y, e)
}) : i8(i8({}, t), {}, {
x: t.x,
y: t.y
@@ -61584,9 +61549,9 @@ function Jwe(e) {
});
}), /*#__PURE__*/ I.createElement(p4, { label: n.label }));
}
-function Ywe(e) {
+function Jwe(e) {
var { clipPathId: t, props: n } = e, r = (0, I.useRef)(null), i = (0, I.useRef)(0), a = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(Jwe, {
+ return /*#__PURE__*/ I.createElement(qwe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -61594,17 +61559,17 @@ function Ywe(e) {
pathRef: a
});
}
-var Xwe = (e, t) => ({
+var Ywe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: JH(e.payload, t)
-}), Zwe = class extends I.Component {
+ errorVal: qH(e.payload, t)
+}), Xwe = class extends I.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
var p = Wm("recharts-line", r), m = u, { r: h, strokeWidth: g } = t8(t), _ = r3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: f }, /*#__PURE__*/ I.createElement(ZL, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: f }, /*#__PURE__*/ I.createElement(XL, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -61617,9 +61582,9 @@ var Xwe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: Xwe,
+ dataPointFormatter: Ywe,
errorBarOffset: 0
- }, /*#__PURE__*/ I.createElement(Ywe, {
+ }, /*#__PURE__*/ I.createElement(Jwe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ I.createElement(N3, {
@@ -61647,14 +61612,14 @@ var Xwe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: AY.line,
+ zIndex: kY.line,
type: "linear"
};
-function Qwe(e) {
- var t = xz(e, c8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = a8(t, Iwe), { needClip: _ } = Y6(p, m), v = A3(), y = vW(), b = LU(), x = Q((e) => Nwe(e, p, m, b, h));
+function Zwe(e) {
+ var t = bz(e, c8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = a8(t, Fwe), { needClip: _ } = Y6(p, m), v = A3(), y = _W(), b = IU(), x = Q((e) => Mwe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ I.createElement(Zwe, n8({}, g, {
+ return /*#__PURE__*/ I.createElement(Xwe, n8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -61678,23 +61643,23 @@ function Qwe(e) {
needClip: _
}));
}
-function $we(e) {
+function Qwe(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = JH(e, o);
+ var l = qH(e, o);
if (t === "horizontal") return {
- x: rU({
+ x: nU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (cz(l) ? null : r.scale.map(l)) ?? null,
+ y: (sz(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = cz(l) ? null : n.scale.map(l), d = rU({
+ var u = sz(l) ? null : n.scale.map(l), d = nU({
axis: r,
ticks: a,
bandSize: s,
@@ -61709,12 +61674,12 @@ function $we(e) {
};
}).filter(Boolean);
}
-function eTe(e) {
- var t = xz(e, c8), n = LU();
+function $we(e) {
+ var t = bz(e, c8), n = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: Vwe(t) }), /*#__PURE__*/ I.createElement(Hwe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: Bwe(t) }), /*#__PURE__*/ I.createElement(Vwe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -61735,9 +61700,9 @@ function eTe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ I.createElement(Qwe, n8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(Zwe, n8({}, t, { id: e }))));
}
-var l8 = /*#__PURE__*/ I.memo(eTe, GG);
+var l8 = /*#__PURE__*/ I.memo($we, WG);
l8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -61749,36 +61714,36 @@ function d8(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), tTe = $([
- _W,
+var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), eTe = $([
+ gW,
f8,
m8,
p8,
h8
-], (e, t, n, r, i) => XH(e, "xAxis") ? dU(t, r, !1) : dU(n, i, !1)), g8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => XH(_W(e), "xAxis") ? "yAxis" : "xAxis", nTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), rTe = $([
- _W,
+], (e, t, n, r, i) => YH(e, "xAxis") ? uU(t, r, !1) : uU(n, i, !1)), g8 = $([U$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => YH(gW(e), "xAxis") ? "yAxis" : "xAxis", tTe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), nTe = $([
+ gW,
f8,
m8,
p8,
h8,
- $([g8, (e, t, n) => a1(e, _8(e), nTe(e, t), n)], (e, t) => {
+ $([g8, (e, t, n) => o1(e, _8(e), tTe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = tX(e);
+ var { stackId: n } = e, r = eX(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]]);
}
}
}),
- iY,
- tTe,
+ rY,
+ eTe,
g8,
- kY
+ OY
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return CTe({
+ if (m != null) return STe({
layout: e,
xAxis: t,
yAxis: n,
@@ -61792,7 +61757,7 @@ var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxi
bandSize: s
});
}
-}), iTe = ["id"], aTe = [
+}), rTe = ["id"], iTe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -61819,14 +61784,14 @@ function v8() {
}
function y8(e, t) {
if (e == null) return {};
- var n, r, i = oTe(e, t);
+ var n, r, i = aTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function oTe(e, t) {
+function aTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61849,26 +61814,26 @@ function x8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? b8(Object(n), !0).forEach(function(t) {
- sTe(e, t, n[t]);
+ oTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sTe(e, t, n) {
- return (t = cTe(t)) in e ? Object.defineProperty(e, t, {
+function oTe(e, t, n) {
+ return (t = sTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cTe(e) {
- var t = lTe(e, "string");
+function sTe(e) {
+ var t = cTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lTe(e, t) {
+function cTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61881,27 +61846,27 @@ function lTe(e, t) {
function S8(e, t) {
return e && e !== "none" ? e : t;
}
-var uTe = (e) => {
+var lTe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
color: S8(r, i),
- value: pU(n, t),
+ value: fU(n, t),
payload: e
}];
-}, dTe = /*#__PURE__*/ I.memo((e) => {
+}, uTe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: dz,
+ getPosition: uz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: pU(o, t),
+ name: fU(o, t),
hide: s,
type: l,
color: S8(r, a),
@@ -61911,8 +61876,8 @@ var uTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: d });
});
-function fTe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = GL(r);
+function dTe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WL(r);
return /*#__PURE__*/ I.createElement(E3, {
points: n,
dot: a,
@@ -61924,7 +61889,7 @@ function fTe(e) {
clipPathId: t
});
}
-function pTe(e) {
+function fTe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -61945,8 +61910,8 @@ function pTe(e) {
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
function C8(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = y8(a, iTe), p = GL(f), m = qL(f);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(ZL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(ZK, v8({}, m, {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = y8(a, rTe), p = WL(f), m = KL(f);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement(XL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(XK, v8({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -61955,29 +61920,29 @@ function C8(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ I.createElement(ZK, v8({}, p, {
+ })), c !== "none" && /*#__PURE__*/ I.createElement(XK, v8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(ZK, v8({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(XK, v8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ I.createElement(fTe, {
+ }))), /*#__PURE__*/ I.createElement(dTe, {
points: t,
props: f,
clipPathId: i
}));
}
-function mTe(e) {
+function pTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!VH(a) || !VH(o)) return null;
+ if (!BH(a) || !BH(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__*/ I.createElement("rect", {
x: 0,
@@ -61986,9 +61951,9 @@ function mTe(e) {
height: Math.floor(s)
}) : null;
}
-function hTe(e) {
+function mTe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!VH(a) || !VH(o)) return null;
+ if (!BH(a) || !BH(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__*/ I.createElement("rect", {
x: a < o ? a : a - s,
@@ -61997,35 +61962,35 @@ function hTe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function gTe(e) {
+function hTe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ I.createElement(mTe, {
+ return n === "vertical" ? /*#__PURE__*/ I.createElement(pTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ I.createElement(hTe, {
+ }) : /*#__PURE__*/ I.createElement(mTe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function _Te(e) {
- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = Yq((0, I.useMemo)(() => ({
+function gTe(e) {
+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = Jq((0, I.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = yW(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = vW(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, I.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ I.createElement(pTe, {
+ return /*#__PURE__*/ I.createElement(fTe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ I.createElement(Jq, {
+ }, r.children, /*#__PURE__*/ I.createElement(qq, {
animationId: m,
begin: l,
duration: u,
@@ -62041,18 +62006,18 @@ function _Te(e) {
if (x[r]) {
var i = x[r];
return x8(x8({}, t), {}, {
- x: oz(i.x, t.x, e),
- y: oz(i.y, t.y, e)
+ x: az(i.x, t.x, e),
+ y: az(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? oz(S, s, e) : cz(s) || ez(s) ? oz(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? az(S, s, e) : sz(s) || $R(s) ? az(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
return x8(x8({}, t), {}, {
- x: oz(i.x, t.x, e),
- y: oz(i.y, t.y, e)
+ x: az(i.x, t.x, e),
+ y: az(i.y, t.y, e)
});
}
return t;
@@ -62065,13 +62030,13 @@ function _Te(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(ZL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(gTe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement(XL, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(hTe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ I.createElement(ZL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(C8, {
+ }))), /*#__PURE__*/ I.createElement(XL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(C8, {
points: o,
baseLine: s,
needClip: t,
@@ -62080,9 +62045,9 @@ function _Te(e) {
})));
}), /*#__PURE__*/ I.createElement(p4, { label: r.label }));
}
-function vTe(e) {
+function _Te(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();
- return /*#__PURE__*/ I.createElement(_Te, {
+ return /*#__PURE__*/ I.createElement(gTe, {
needClip: t,
clipPathId: n,
props: r,
@@ -62090,12 +62055,12 @@ function vTe(e) {
previousBaselineRef: a
});
}
-var yTe = class extends I.PureComponent {
+var vTe = class extends I.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
var m = Wm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = t8(t), v = r3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p }, /*#__PURE__*/ I.createElement(ZL, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p }, /*#__PURE__*/ I.createElement(XL, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -62104,7 +62069,7 @@ var yTe = class extends I.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ I.createElement(vTe, {
+ }))), /*#__PURE__*/ I.createElement(_Te, {
needClip: o,
clipPathId: h,
props: this.props
@@ -62122,7 +62087,7 @@ var yTe = class extends I.PureComponent {
clipPath: b
}));
}
-}, bTe = {
+}, yTe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -62140,13 +62105,13 @@ var yTe = class extends I.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: AY.area
+ zIndex: kY.area
};
-function xTe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = y8(e, aTe), g = vW(), _ = W0(), { needClip: v } = Y6(p, m), y = LU(), { points: b, isRange: x, baseLine: S } = Q((t) => rTe(t, e.id, y)) ?? {}, C = A3();
+function bTe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = y8(e, iTe), g = _W(), _ = W0(), { needClip: v } = Y6(p, m), y = IU(), { points: b, isRange: x, baseLine: S } = Q((t) => nTe(t, e.id, y)) ?? {}, C = A3();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ I.createElement(yTe, v8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(vTe, v8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -62172,7 +62137,7 @@ function xTe(e) {
yAxisId: m
}));
}
-var STe = (e, t, n, r, i) => {
+var xTe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -62182,17 +62147,17 @@ var STe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function CTe(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 = STe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function STe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = xTe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = JH(e, r);
+ var o = qH(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && JH(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && qH(e, r) == null;
return g ? {
- x: rU({
+ x: nU({
axis: s,
ticks: d,
bandSize: p,
@@ -62204,7 +62169,7 @@ function CTe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: rU({
+ y: nU({
axis: c,
ticks: f,
bandSize: p,
@@ -62232,12 +62197,12 @@ function CTe(e) {
isRange: _
};
}
-function wTe(e) {
- var t = xz(e, bTe), n = LU();
+function CTe(e) {
+ var t = bz(e, yTe), n = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: uTe(t) }), /*#__PURE__*/ I.createElement(dTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: lTe(t) }), /*#__PURE__*/ I.createElement(uTe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -62256,21 +62221,21 @@ function wTe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: nU(t.stackId),
+ stackId: tU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ I.createElement(xTe, v8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(bTe, v8({}, t, { id: e }))));
}
-var w8 = /*#__PURE__*/ I.memo(wTe, GG);
+var w8 = /*#__PURE__*/ I.memo(CTe, WG);
w8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var TTe = "Invariant failed";
-function ETe(e, t) {
- if (!e) throw Error(TTe);
+var wTe = "Invariant failed";
+function TTe(e, t) {
+ if (!e) throw Error(wTe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -62290,45 +62255,45 @@ function E8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var DTe = function(e) {
+var ETe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || cz(n);
- return i ? e(n, r) : (!i && ETe(!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) || sz(n);
+ return i ? e(n, r) : (!i && TTe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, OTe = (e, t, n) => n, D8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), kTe = $([D8], (e) => e?.maxBarSize), ATe = (e, t, n, r) => r, jTe = $([
- _W,
- H$,
+}, DTe = (e, t, n) => n, D8 = $([U$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), OTe = $([D8], (e) => e?.maxBarSize), kTe = (e, t, n, r) => r, ATe = $([
+ gW,
+ U$,
u8,
d8,
- OTe
-], (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")), MTe = (e, t, n) => {
- var r = _W(e), i = u8(e, t), a = d8(e, t);
- if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, NTe = $([
- jTe,
- SY,
+ DTe
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), jTe = (e, t, n) => {
+ var r = gW(e), i = u8(e, t), a = d8(e, t);
+ if (i != null && a != null) return r === "horizontal" ? o1(e, "yAxis", a, n) : o1(e, "xAxis", i, n);
+}, MTe = $([
+ ATe,
+ xY,
(e, t) => {
- var n = _W(e), r = u8(e, t), i = d8(e, t);
+ var n = gW(e), r = u8(e, t), i = d8(e, t);
if (r != null && i != null) return n === "horizontal" ? V1(e, "xAxis", r) : V1(e, "yAxis", i);
}
-], Y3), PTe = (e, t, n) => {
+], Y3), NTe = (e, t, n) => {
var r = D8(e, t);
if (r == null) return 0;
var i = u8(e, t), a = d8(e, t);
if (i == null || a == null) return 0;
- var o = _W(e), s = yY(e), { maxBarSize: c } = r, l = cz(c) ? s : c, u, d;
- return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), dU(u, d, !0) ?? l ?? 0;
+ var o = gW(e), s = vY(e), { maxBarSize: c } = r, l = sz(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), uU(u, d, !0) ?? l ?? 0;
}, O8 = (e, t, n) => {
- var r = _W(e), i = u8(e, t), a = d8(e, t);
+ var r = gW(e), i = u8(e, t), a = d8(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), dU(o, s);
+ return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), uU(o, s);
}
-}, FTe = $([
- NU,
- FU,
+}, PTe = $([
+ MU,
+ PU,
(e, t, n) => {
var r = u8(e, t);
if (r != null) return Y1(e, "xAxis", r, n);
@@ -62346,25 +62311,25 @@ var DTe = function(e) {
if (r != null) return J1(e, "yAxis", r, n);
},
$([$([
- NTe,
+ MTe,
+ vY,
yY,
bY,
- xY,
- PTe,
+ NTe,
O8,
- kTe
+ OTe
], Q3), D8], e6),
- _W,
- iY,
+ gW,
+ rY,
O8,
- $([MTe, D8], $3),
+ $([jTe, D8], $3),
D8,
- ATe
+ kTe
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return lEe({
+ if (_ != null) return cEe({
layout: s,
barSettings: d,
pos: o,
@@ -62381,7 +62346,7 @@ var DTe = function(e) {
dataStartIndex: m
});
}
-}), ITe = ["index"];
+}), FTe = ["index"];
function k8() {
return k8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62391,16 +62356,16 @@ function k8() {
return e;
}, k8.apply(null, arguments);
}
-function LTe(e, t) {
+function ITe(e, t) {
if (e == null) return {};
- var n, r, i = RTe(e, t);
+ var n, r, i = LTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function RTe(e, t) {
+function LTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62409,31 +62374,31 @@ function RTe(e, t) {
}
return n;
}
-var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), zTe = (e) => {
+var A8 = /*#__PURE__*/ (0, I.createContext)(void 0), RTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) return t.stackId;
- if (e != null) return nU(e);
-}, BTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, VTe = (e) => {
+ if (e != null) return tU(e);
+}, zTe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, BTe = (e) => {
var t = (0, I.useContext)(A8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${BTe(n, e)})`;
+ return `url(#${zTe(n, e)})`;
}
}, j8 = (e) => {
- var { index: t } = e, n = LTe(e, ITe), r = VTe(t);
- return /*#__PURE__*/ I.createElement(ZL, k8({
+ var { index: t } = e, n = ITe(e, FTe), r = BTe(t);
+ return /*#__PURE__*/ I.createElement(XL, k8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, HTe = [
+}, VTe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], UTe = [
+], HTe = [
"value",
"background",
"tooltipPosition"
-], WTe = ["id"], GTe = [
+], UTe = ["id"], WTe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -62461,26 +62426,26 @@ function P8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? N8(Object(n), !0).forEach(function(t) {
- KTe(e, t, n[t]);
+ GTe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KTe(e, t, n) {
- return (t = qTe(t)) in e ? Object.defineProperty(e, t, {
+function GTe(e, t, n) {
+ return (t = KTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qTe(e) {
- var t = JTe(e, "string");
+function KTe(e) {
+ var t = qTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JTe(e, t) {
+function qTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62492,14 +62457,14 @@ function JTe(e, t) {
}
function F8(e, t) {
if (e == null) return {};
- var n, r, i = YTe(e, t);
+ var n, r, i = JTe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function YTe(e, t) {
+function JTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62508,27 +62473,27 @@ function YTe(e, t) {
}
return n;
}
-var XTe = (e) => {
+var YTe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: pU(n, t),
+ value: fU(n, t),
payload: e
}];
-}, ZTe = /*#__PURE__*/ I.memo((e) => {
+}, XTe = /*#__PURE__*/ I.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: dz,
+ getPosition: uz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: pU(a, t),
+ name: fU(a, t),
hide: o,
type: c,
color: i,
@@ -62538,17 +62503,17 @@ var XTe = (e) => {
};
return /*#__PURE__*/ I.createElement(g3, { tooltipEntrySettings: u });
});
-function QTe(e) {
- var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, HTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
+function ZTe(e) {
+ var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, VTe), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
if (!i || n == null) return null;
- var p = KL(i);
- return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(i, AY.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, UTe);
+ var p = GL(i);
+ return /*#__PURE__*/ I.createElement(n2, { zIndex: p6(i, kY.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, HTe);
if (!o) return null;
var m = u(e, n), h = d(e, n), g = f(e, n), _ = P8(P8(P8(P8(P8({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), yz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), vz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -62559,7 +62524,7 @@ function QTe(e) {
return /*#__PURE__*/ I.createElement(E8, M8({ key: `background-bar-${n}` }, _));
}));
}
-function $Te(e) {
+function QTe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -62579,7 +62544,7 @@ function $Te(e) {
});
return /*#__PURE__*/ I.createElement(u4, { value: t ? i : void 0 }, n);
}
-function eEe(e) {
+function $Te(e) {
var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(F0), c = Q(L0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, I.useState)(!1), [f, p] = (0, I.useState)(!1);
(0, I.useEffect)(() => {
var e;
@@ -62598,9 +62563,9 @@ function eEe(e) {
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ I.createElement(n2, { zIndex: AY.activeBar }, /*#__PURE__*/ I.createElement(j8, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ I.createElement(n2, { zIndex: kY.activeBar }, /*#__PURE__*/ I.createElement(j8, { index: i.originalDataIndex }, v)) : v;
}
-function tEe(e) {
+function eEe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
return /*#__PURE__*/ I.createElement(E8, M8({}, n, { name: String(n.name) }, r, {
isActive: !1,
@@ -62609,24 +62574,24 @@ function tEe(e) {
dataKey: a
}));
}
-function nEe(e) {
- var { data: t, props: n } = e, r = GL(n) ?? {}, { id: i } = r, a = F8(r, WTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, GTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
+function tEe(e) {
+ var { data: t, props: n } = e, r = WL(n) ?? {}, { id: i } = r, a = F8(r, UTe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, WTe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
return t ? /*#__PURE__*/ I.createElement(I.Fragment, null, t.map((e, t) => /*#__PURE__*/ I.createElement(j8, M8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, yz(f, e, t), {
+ }, vz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ I.createElement(eEe, {
+ }), c ? /*#__PURE__*/ I.createElement($Te, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ I.createElement(tEe, {
+ }) : /*#__PURE__*/ I.createElement(eEe, {
shape: o,
baseProps: a,
entry: e,
@@ -62634,16 +62599,16 @@ function nEe(e) {
dataKey: s
})))) : null;
}
-function rEe(e) {
- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = Yq(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
+function nEe(e) {
+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = Jq(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, I.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ I.createElement($Te, {
+ return /*#__PURE__*/ I.createElement(QTe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ I.createElement(Jq, {
+ }, /*#__PURE__*/ I.createElement(qq, {
animationId: f,
begin: o,
duration: s,
@@ -62656,68 +62621,68 @@ function rEe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return P8(P8({}, t), {}, {
- x: oz(r.x, t.x, e),
- y: oz(r.y, t.y, e),
- width: oz(r.width, t.width, e),
- height: oz(r.height, t.height, e)
+ x: az(r.x, t.x, e),
+ y: az(r.y, t.y, e),
+ width: az(r.width, t.width, e),
+ height: az(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = oz(0, t.height, e), o = oz(t.stackedBarStart, t.y, e);
+ var a = az(0, t.height, e), o = az(t.stackedBarStart, t.y, e);
return P8(P8({}, t), {}, {
y: o,
height: a
});
}
- var s = oz(0, t.width, e), c = oz(t.stackedBarStart, t.x, e);
+ var s = az(0, t.width, e), c = az(t.stackedBarStart, t.x, e);
return P8(P8({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(ZL, null, /*#__PURE__*/ I.createElement(nEe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(XL, null, /*#__PURE__*/ I.createElement(tEe, {
props: t,
data: a
}));
}), /*#__PURE__*/ I.createElement(p4, { label: t.label }), t.children);
}
-function iEe(e) {
+function rEe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(rEe, {
+ return /*#__PURE__*/ I.createElement(nEe, {
previousRectanglesRef: t,
props: e
});
}
-var I8 = 0, aEe = (e, t) => {
+var I8 = 0, iEe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: JH(e, t)
+ errorVal: qH(e, t)
};
-}, oEe = class extends I.PureComponent {
+}, aEe = class extends I.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = Wm("recharts-bar", r), u = c;
- return /*#__PURE__*/ I.createElement(ZL, {
+ return /*#__PURE__*/ I.createElement(XL, {
className: l,
id: c
}, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(X6, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ I.createElement(ZL, {
+ })), /*#__PURE__*/ I.createElement(XL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ I.createElement(QTe, {
+ }, /*#__PURE__*/ I.createElement(ZTe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ I.createElement(iEe, this.props)));
+ }), /*#__PURE__*/ I.createElement(rEe, this.props)));
}
-}, sEe = {
+}, oEe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -62730,19 +62695,19 @@ var I8 = 0, aEe = (e, t) => {
minPointSize: I8,
xAxisId: 0,
yAxisId: 0,
- zIndex: AY.bar
+ zIndex: kY.bar
};
-function cEe(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = Y6(t, n), f = vW(), p = LU(), m = n3(e.children, y2), h = Q((t) => FTe(t, e.id, p, m));
+function sEe(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = Y6(t, n), f = _W(), p = IU(), m = n3(e.children, y2), h = Q((t) => PTe(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ I.createElement(J6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: aEe,
+ dataPointFormatter: iEe,
errorBarOffset: g
- }, /*#__PURE__*/ I.createElement(oEe, M8({}, e, {
+ }, /*#__PURE__*/ I.createElement(aEe, M8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -62758,20 +62723,20 @@ function cEe(e) {
isAnimationActive: u
})));
}
-function lEe(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 = aU({ numericAxis: _ }), b = _.scale.map(y);
+function cEe(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = iU({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = $H(E, v);
- } else _ = JH(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = DTe(r, I8)(_[1], f);
+ _ = QH(E, v);
+ } else _ = qH(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = ETe(r, I8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = iU({
+ x = rU({
axis: s,
ticks: l,
bandSize: o,
@@ -62780,19 +62745,19 @@ function lEe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = ez(A) ? 0 : A, T = {
+ if (w = $R(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 = $R(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = QR(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 = iU({
+ if (x = M, S = rU({
axis: c,
ticks: u,
bandSize: o,
@@ -62805,7 +62770,7 @@ function lEe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var ee = $R(C || D) * (Math.abs(D) - Math.abs(C));
+ var ee = QR(C || D) * (Math.abs(D) - Math.abs(C));
C += ee;
}
}
@@ -62827,12 +62792,12 @@ function lEe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function uEe(e) {
- var t = xz(e, sEe), n = zTe(t.stackId), r = LU();
+function lEe(e) {
+ var t = bz(e, oEe), n = RTe(t.stackId), r = IU();
return /*#__PURE__*/ I.createElement(y3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: XTe(t) }), /*#__PURE__*/ I.createElement(ZTe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(_3, { legendPayload: YTe(t) }), /*#__PURE__*/ I.createElement(XTe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -62857,23 +62822,23 @@ function uEe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(cEe, M8({}, t, { id: e })))));
+ }), /*#__PURE__*/ I.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(sEe, M8({}, t, { id: e })))));
}
-var L8 = /*#__PURE__*/ I.memo(uEe, GG);
+var L8 = /*#__PURE__*/ I.memo(lEe, WG);
L8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var dEe = ["domain", "range"], fEe = ["domain", "range"];
+var uEe = ["domain", "range"], dEe = ["domain", "range"];
function R8(e, t) {
if (e == null) return {};
- var n, r, i = pEe(e, t);
+ var n, r, i = fEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function pEe(e, t) {
+function fEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62887,16 +62852,16 @@ function z8(e, t) {
}
function B8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = R8(e, dEe), { domain: a, range: o } = t, s = R8(t, fEe);
- return !z8(n, a) || !z8(r, o) ? !1 : GG(i, s);
+ var { domain: n, range: r } = e, i = R8(e, uEe), { domain: a, range: o } = t, s = R8(t, dEe);
+ return !z8(n, a) || !z8(r, o) ? !1 : WG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var mEe = ["type"], hEe = [
+var pEe = ["type"], mEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], gEe = ["id", "scale"];
+], hEe = ["id", "scale"];
function V8() {
return V8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62920,26 +62885,26 @@ function U8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? H8(Object(n), !0).forEach(function(t) {
- _Ee(e, t, n[t]);
+ gEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _Ee(e, t, n) {
- return (t = vEe(t)) in e ? Object.defineProperty(e, t, {
+function gEe(e, t, n) {
+ return (t = _Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vEe(e) {
- var t = yEe(e, "string");
+function _Ee(e) {
+ var t = vEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yEe(e, t) {
+function vEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62951,14 +62916,14 @@ function yEe(e, t) {
}
function W8(e, t) {
if (e == null) return {};
- var n, r, i = bEe(e, t);
+ var n, r, i = yEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function bEe(e, t) {
+function yEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62967,23 +62932,23 @@ function bEe(e, t) {
}
return n;
}
-function xEe(e) {
- var t = Jz(), n = (0, I.useRef)(null), r = yW(), { type: i } = e, a = W8(e, mEe), o = PY(r, "xAxis", i), s = (0, I.useMemo)(() => {
+function bEe(e) {
+ var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = W8(e, pEe), o = NY(r, "xAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return U8(U8({}, a), {}, { type: o });
}, [a, o]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Lxe(s)) : n.current !== s && t(Rxe({
+ s != null && (n.current === null ? t(Ixe(s)) : n.current !== s && t(Lxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(zxe(n.current)), null);
+ n.current &&= (t(Rxe(n.current)), null);
}, [t]), null;
}
-var SEe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(FU), i = LU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => Uge(e, t)), l = Q((e) => M$(e, t));
+var xEe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(PU), i = IU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => z1(e, t)), c = Q((e) => Hge(e, t)), l = Q((e) => N$(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, hEe), { id: m, scale: h } = l, g = W8(l, gEe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, mEe), { id: m, scale: h } = l, g = W8(l, hEe);
return /*#__PURE__*/ I.createElement(B6, V8({}, p, g, {
x: c.x,
y: c.y,
@@ -62995,33 +62960,33 @@ var SEe = (e) => {
axisType: a,
axisId: t
}));
-}, CEe = {
- allowDataOverflow: j$.allowDataOverflow,
- allowDecimals: j$.allowDecimals,
- allowDuplicatedCategory: j$.allowDuplicatedCategory,
- angle: j$.angle,
+}, SEe = {
+ allowDataOverflow: M$.allowDataOverflow,
+ allowDecimals: M$.allowDecimals,
+ allowDuplicatedCategory: M$.allowDuplicatedCategory,
+ angle: M$.angle,
axisLine: z6.axisLine,
- height: j$.height,
+ height: M$.height,
hide: !1,
- includeHidden: j$.includeHidden,
- interval: j$.interval,
+ includeHidden: M$.includeHidden,
+ interval: M$.interval,
label: !1,
- minTickGap: j$.minTickGap,
- mirror: j$.mirror,
- orientation: j$.orientation,
- padding: j$.padding,
- reversed: j$.reversed,
- scale: j$.scale,
- tick: j$.tick,
- tickCount: j$.tickCount,
+ minTickGap: M$.minTickGap,
+ mirror: M$.mirror,
+ orientation: M$.orientation,
+ padding: M$.padding,
+ reversed: M$.reversed,
+ scale: M$.scale,
+ tick: M$.tick,
+ tickCount: M$.tickCount,
tickLine: z6.tickLine,
tickSize: z6.tickSize,
- type: j$.type,
- niceTicks: j$.niceTicks,
+ type: M$.type,
+ niceTicks: M$.niceTicks,
xAxisId: 0
}, G8 = /*#__PURE__*/ I.memo((e) => {
- var t = xz(e, CEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(xEe, {
+ var t = bz(e, SEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(bEe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -63047,16 +63012,16 @@ var SEe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(SEe, t));
+ }), /*#__PURE__*/ I.createElement(xEe, t));
}, B8);
G8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var wEe = ["type"], TEe = [
+var CEe = ["type"], wEe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], EEe = ["id", "scale"];
+], TEe = ["id", "scale"];
function K8() {
return K8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63080,26 +63045,26 @@ function J8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q8(Object(n), !0).forEach(function(t) {
- DEe(e, t, n[t]);
+ EEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DEe(e, t, n) {
- return (t = OEe(t)) in e ? Object.defineProperty(e, t, {
+function EEe(e, t, n) {
+ return (t = DEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OEe(e) {
- var t = kEe(e, "string");
+function DEe(e) {
+ var t = OEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kEe(e, t) {
+function OEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63111,14 +63076,14 @@ function kEe(e, t) {
}
function Y8(e, t) {
if (e == null) return {};
- var n, r, i = AEe(e, t);
+ var n, r, i = kEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function AEe(e, t) {
+function kEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63127,27 +63092,27 @@ function AEe(e, t) {
}
return n;
}
-function jEe(e) {
- var t = Jz(), n = (0, I.useRef)(null), r = yW(), { type: i } = e, a = Y8(e, wEe), o = PY(r, "yAxis", i), s = (0, I.useMemo)(() => {
+function AEe(e) {
+ var t = qz(), n = (0, I.useRef)(null), r = vW(), { type: i } = e, a = Y8(e, CEe), o = NY(r, "yAxis", i), s = (0, I.useMemo)(() => {
if (o != null) return J8(J8({}, a), {}, { type: o });
}, [o, a]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Bxe(s)) : n.current !== s && t(Vxe({
+ s != null && (n.current === null ? t(zxe(s)) : n.current !== s && t(Bxe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(Hxe(n.current)), null);
+ n.current &&= (t(Vxe(n.current)), null);
}, [t]), null;
}
-function MEe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(FU), c = LU(), l = Jz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => Wge(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => F$(e, t));
+function jEe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(PU), c = IU(), l = qz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => Uge(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => I$(e, t));
if ((0, I.useLayoutEffect)(() => {
if (!(r !== "auto" || !d || n4(i) || /*#__PURE__*/ (0, I.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(Kxe({
+ Math.round(d.width) !== Math.round(n) && l(Gxe({
id: t,
width: n
}));
@@ -63162,7 +63127,7 @@ function MEe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, TEe), { id: y, scale: b } = m, x = Y8(m, EEe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, wEe), { id: y, scale: b } = m, x = Y8(m, TEe);
return /*#__PURE__*/ I.createElement(B6, K8({}, v, x, {
ref: a,
labelRef: o,
@@ -63178,33 +63143,33 @@ function MEe(e) {
axisId: t
}));
}
-var NEe = {
- allowDataOverflow: P$.allowDataOverflow,
- allowDecimals: P$.allowDecimals,
- allowDuplicatedCategory: P$.allowDuplicatedCategory,
- angle: P$.angle,
+var MEe = {
+ allowDataOverflow: F$.allowDataOverflow,
+ allowDecimals: F$.allowDecimals,
+ allowDuplicatedCategory: F$.allowDuplicatedCategory,
+ angle: F$.angle,
axisLine: z6.axisLine,
hide: !1,
- includeHidden: P$.includeHidden,
- interval: P$.interval,
+ includeHidden: F$.includeHidden,
+ interval: F$.interval,
label: !1,
- minTickGap: P$.minTickGap,
- mirror: P$.mirror,
- orientation: P$.orientation,
- padding: P$.padding,
- reversed: P$.reversed,
- scale: P$.scale,
- tick: P$.tick,
- tickCount: P$.tickCount,
+ minTickGap: F$.minTickGap,
+ mirror: F$.mirror,
+ orientation: F$.orientation,
+ padding: F$.padding,
+ reversed: F$.reversed,
+ scale: F$.scale,
+ tick: F$.tick,
+ tickCount: F$.tickCount,
tickLine: z6.tickLine,
tickSize: z6.tickSize,
- type: P$.type,
- niceTicks: P$.niceTicks,
- width: P$.width,
+ type: F$.type,
+ niceTicks: F$.niceTicks,
+ width: F$.width,
yAxisId: 0
}, X8 = /*#__PURE__*/ I.memo((e) => {
- var t = xz(e, NEe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(jEe, {
+ var t = bz(e, MEe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(AEe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -63230,27 +63195,27 @@ var NEe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(MEe, t));
+ }), /*#__PURE__*/ I.createElement(jEe, t));
}, B8);
X8.displayName = "YAxis";
var Z8 = $([
(e, t) => t,
- _W,
- QY,
- sX,
+ gW,
+ ZY,
+ oX,
O0,
A0,
- B_e,
- NU
-], q_e);
+ z_e,
+ MU
+], K_e);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function PEe(e) {
+function NEe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Q8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (PEe(e)) {
+ if (NEe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -63265,19 +63230,19 @@ function Q8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var $8 = wV("mouseClick"), e5 = MH();
+var $8 = CV("mouseClick"), e5 = jH();
e5.startListening({
actionCreator: $8,
effect: (e, t) => {
var n = e.payload, r = Z8(t.getState(), Q8(n));
- r?.activeIndex != null && t.dispatch(e_e({
+ r?.activeIndex != null && t.dispatch($ge({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var t5 = wV("mouseMove"), n5 = MH(), r5 = null, i5 = null, a5 = null;
+var t5 = CV("mouseMove"), n5 = jH(), r5 = null, i5 = null, a5 = null;
n5.startListening({
actionCreator: t5,
effect: (e, t) => {
@@ -63308,7 +63273,7 @@ n5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function FEe(e, t) {
+function PEe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
@@ -63325,17 +63290,17 @@ var o5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, s5 = KV({
+}, s5 = GV({
name: "rootProps",
initialState: o5,
reducers: { updateOptions: (e, t) => {
e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? o5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), IEe = s5.reducer, { updateOptions: LEe } = s5.actions, c5 = KV({
+}), FEe = s5.reducer, { updateOptions: IEe } = s5.actions, c5 = GV({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: REe } = c5.actions, zEe = c5.reducer, l5 = wV("keyDown"), u5 = wV("focus"), d5 = wV("blur"), f5 = MH(), p5 = null, m5 = null, h5 = null;
+}), { updatePolarOptions: LEe } = c5.actions, REe = c5.reducer, l5 = CV("keyDown"), u5 = CV("focus"), d5 = CV("blur"), f5 = jH(), p5 = null, m5 = null, h5 = null;
f5.startListening({
actionCreator: l5,
effect: (e, t) => {
@@ -63348,7 +63313,7 @@ f5.startListening({
if (e.rootProps.accessibilityLayer === !1) return;
var { keyboardInteraction: n } = e.tooltip, r = h5;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = d0(n, S0(e), r1(e), E0(e)), a = i == null ? -1 : Number(i);
+ var i = d0(n, S0(e), i1(e), E0(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
var o = A0(e);
if (r === "Enter") {
@@ -63360,7 +63325,7 @@ f5.startListening({
}));
return;
}
- var c = Gge(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = Wge(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
var u = Z0(e, "axis", "hover", String(l));
t.dispatch(s0({
@@ -63423,7 +63388,7 @@ function g5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var _5 = wV("externalEvent"), v5 = MH(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map(), x5 = /* @__PURE__ */ new Map();
+var _5 = CV("externalEvent"), v5 = jH(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map(), x5 = /* @__PURE__ */ new Map();
v5.startListening({
actionCreator: _5,
effect: (e, t) => {
@@ -63443,12 +63408,12 @@ v5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: E_e(a),
+ activeCoordinate: T_e(a),
activeDataKey: L0(a),
activeIndex: F0(a),
activeLabel: I0(a),
activeTooltipIndex: F0(a),
- isTooltipActive: D_e(a)
+ isTooltipActive: E_e(a)
};
n && n(o, r);
} finally {
@@ -63472,7 +63437,7 @@ v5.startListening({
}
}
});
-var BEe = $([
+var zEe = $([
$([h0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -63484,7 +63449,7 @@ var BEe = $([
if (i != null) return i(t);
}
}
-}), S5 = wV("touchMove"), C5 = MH(), w5 = null, T5 = null, E5 = null, D5 = null;
+}), S5 = CV("touchMove"), C5 = jH(), w5 = null, T5 = null, E5 = null, D5 = null;
C5.startListening({
actionCreator: S5,
effect: (e, t) => {
@@ -63517,9 +63482,9 @@ C5.startListening({
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(SU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
+ var s = o.getAttribute(xU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = BEe(e, s, c);
+ var { dataKey: u } = l, d = zEe(e, s, c);
t.dispatch(r0({
activeDataKey: u,
activeIndex: s,
@@ -63551,33 +63516,33 @@ var O5 = {
"scroll",
"wheel"
]
-}, k5 = KV({
+}, k5 = GV({
name: "eventSettings",
initialState: O5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = yG(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = vG(t.payload.throttledEvents));
} }
-}), { setEventSettings: VEe } = k5.actions, HEe = k5.reducer, UEe = fB({
- brush: oCe,
- cartesianAxis: qxe,
- chartData: bve,
- errorBars: Twe,
- eventSettings: HEe,
- graphicalItems: Cxe,
- layout: zH,
- legend: EG,
- options: hve,
- polarAxis: pbe,
- polarOptions: zEe,
- referenceElements: _Ce,
- renderedTicks: GCe,
- rootProps: IEe,
- tooltip: t_e,
- zIndex: ove
-}), WEe = function(e) {
+}), { setEventSettings: BEe } = k5.actions, VEe = k5.reducer, HEe = dB({
+ brush: aCe,
+ cartesianAxis: Kxe,
+ chartData: yve,
+ errorBars: wwe,
+ eventSettings: VEe,
+ graphicalItems: Sxe,
+ layout: RH,
+ legend: TG,
+ options: mve,
+ polarAxis: fbe,
+ polarOptions: REe,
+ referenceElements: gCe,
+ renderedTicks: WCe,
+ rootProps: FEe,
+ tooltip: e_e,
+ zIndex: ave
+}), UEe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return IV({
- reducer: UEe,
+ return FV({
+ reducer: HEe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -63595,10 +63560,10 @@ var O5 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(PV({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(NV({ type: "raf" }));
},
- devTools: EK.devToolsEnabled && {
- serialize: { replacer: FEe },
+ devTools: TK.devToolsEnabled && {
+ serialize: { replacer: PEe },
name: `recharts-${t}`
}
});
@@ -63606,21 +63571,21 @@ var O5 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function A5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = LU(), a = (0, I.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = IU(), a = (0, I.useRef)(null);
if (i) return n;
- a.current ??= WEe(t, r);
- var o = qz;
- return /*#__PURE__*/ I.createElement(HG, {
+ a.current ??= UEe(t, r);
+ var o = Kz;
+ return /*#__PURE__*/ I.createElement(VG, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function GEe(e) {
- var { layout: t, margin: n } = e, r = Jz(), i = LU();
+function WEe(e) {
+ var { layout: t, margin: n } = e, r = qz(), i = IU();
return (0, I.useEffect)(() => {
- i || (r(IH(t)), r(FH(n)));
+ i || (r(FH(t)), r(PH(n)));
}, [
r,
i,
@@ -63628,31 +63593,31 @@ function GEe(e) {
n
]), null;
}
-var j5 = /*#__PURE__*/ (0, I.memo)(GEe, GG);
+var j5 = /*#__PURE__*/ (0, I.memo)(WEe, WG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function M5(e) {
- var t = Jz();
+ var t = qz();
return (0, I.useEffect)(() => {
- t(LEe(e));
+ t(IEe(e));
}, [t, e]), null;
}
var N5 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Jz();
+ var t = qz();
return (0, I.useEffect)(() => {
- t(VEe(e));
+ t(BEe(e));
}, [t, e]), null;
-}, GG);
+}, WG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function P5(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = Jz();
- return (0, I.useLayoutEffect)(() => (r.current && i(ive({
+ var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = qz();
+ return (0, I.useLayoutEffect)(() => (r.current && i(rve({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(ave({
+ i(ive({
zIndex: t,
isPanorama: n
}));
@@ -63667,7 +63632,7 @@ function P5(e) {
});
}
function F5(e) {
- var { children: t, isPanorama: n } = e, r = Q(Y_e);
+ var { children: t, isPanorama: n } = e, r = Q(J_e);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
return /*#__PURE__*/ I.createElement(I.Fragment, null, i.map((e) => /*#__PURE__*/ I.createElement(P5, {
@@ -63682,17 +63647,17 @@ function F5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var KEe = ["children"];
-function qEe(e, t) {
+var GEe = ["children"];
+function KEe(e, t) {
if (e == null) return {};
- var n, r, i = JEe(e, t);
+ var n, r, i = qEe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JEe(e, t) {
+function qEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63710,46 +63675,46 @@ function I5() {
return e;
}, I5.apply(null, arguments);
}
-var YEe = {
+var JEe = {
width: "100%",
height: "100%",
display: "block"
-}, XEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = mW(), r = hW(), i = IK();
- if (!HH(n) || !HH(r)) return null;
+}, YEe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = pW(), r = mW(), i = FK();
+ if (!VH(n) || !VH(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- 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__*/ I.createElement(YL, I5({}, 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__*/ I.createElement(JL, I5({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: YEe,
+ style: JEe,
ref: t
}), a);
-}), ZEe = (e) => {
- var { children: t } = e, n = Q(zU);
+}), XEe = (e) => {
+ var { children: t } = e, n = Q(RU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ I.createElement(YL, {
+ return /*#__PURE__*/ I.createElement(JL, {
width: r,
height: i,
x: o,
y: a
}, t);
}, L5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n } = e, r = qEe(e, KEe);
- return LU() ? /*#__PURE__*/ I.createElement(ZEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(XEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
+ var { children: n } = e, r = KEe(e, GEe);
+ return IU() ? /*#__PURE__*/ I.createElement(XEe, null, /*#__PURE__*/ I.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(YEe, I5({ ref: t }, r), /*#__PURE__*/ I.createElement(F5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function QEe() {
- var e = Jz(), [t, n] = (0, I.useState)(null), r = Q(vU);
+function ZEe() {
+ var e = qz(), [t, n] = (0, I.useState)(null), r = Q(_U);
return (0, I.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- VH(n) && n !== r && e(RH(n));
+ BH(n) && n !== r && e(LH(n));
}
}, [
t,
@@ -63769,30 +63734,30 @@ function R5(e, t) {
}
return n;
}
-function $Ee(e) {
+function QEe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? R5(Object(n), !0).forEach(function(t) {
- eDe(e, t, n[t]);
+ $Ee(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function eDe(e, t, n) {
- return (t = tDe(t)) in e ? Object.defineProperty(e, t, {
+function $Ee(e, t, n) {
+ return (t = eDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function tDe(e) {
- var t = nDe(e, "string");
+function eDe(e) {
+ var t = tDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function nDe(e, t) {
+function tDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63811,7 +63776,7 @@ function z5() {
return e;
}, z5.apply(null, arguments);
}
-var rDe = () => (kve(), null);
+var nDe = () => (Ove(), null);
function B5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -63820,7 +63785,7 @@ function B5(e) {
}
return 0;
}
-var iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var rDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var n = (0, I.useRef)(null), [r, i] = (0, I.useState)({
containerWidth: B5(e.style?.width),
containerHeight: B5(e.style?.height)
@@ -63848,11 +63813,11 @@ var iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
}, [t, a]);
return (0, I.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
+ }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: o }, e)));
-}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, I.useState)({
containerWidth: B5(n),
containerHeight: B5(r)
@@ -63870,32 +63835,32 @@ var iDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ I.createElement("div", z5({ ref: s }, e)));
-}), oDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), aDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
-}), sDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), oDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(aDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(oDe, z5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(iDe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(aDe, z5({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
+ })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", z5({ ref: t }, e)));
});
-function cDe(e) {
- return e ? iDe : sDe;
+function sDe(e) {
+ return e ? rDe : oDe;
}
-var lDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = Jz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = QEe(), D = sW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
+var cDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, I.useRef)(null), x = qz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = ZEe(), D = oW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -63967,12 +63932,12 @@ var lDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = cDe(v);
- return /*#__PURE__*/ I.createElement(o2.Provider, { value: S }, /*#__PURE__*/ I.createElement(QL.Provider, { value: w }, /*#__PURE__*/ I.createElement(ce, {
+ }, [x, p]), ce = sDe(v);
+ return /*#__PURE__*/ I.createElement(o2.Provider, { value: S }, /*#__PURE__*/ I.createElement(ZL.Provider, { value: w }, /*#__PURE__*/ I.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Wm("recharts-wrapper", r),
- style: $Ee({
+ style: QEe({
position: "relative",
cursor: "default",
width: O,
@@ -63993,8 +63958,8 @@ var lDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ I.createElement(rDe, null), n)));
-}), uDe = [
+ }, /*#__PURE__*/ I.createElement(nDe, null), n)));
+}), lDe = [
"width",
"height",
"responsive",
@@ -64005,16 +63970,16 @@ var lDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
"title",
"desc"
];
-function dDe(e, t) {
+function uDe(e, t) {
if (e == null) return {};
- var n, r, i = fDe(e, t);
+ var n, r, i = dDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function fDe(e, t) {
+function dDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64024,15 +63989,15 @@ function fDe(e, t) {
return n;
}
var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = GL(dDe(e, uDe));
- return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(CW, {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WL(uDe(e, lDe));
+ return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(SW, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement(L5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ I.createElement(lDe, {
+ }, a)) : /*#__PURE__*/ I.createElement(cDe, {
className: o,
style: s,
width: n,
@@ -64054,7 +64019,7 @@ var V5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ I.createElement(vCe, null, a)));
+ }, /*#__PURE__*/ I.createElement(_Ce, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -64077,30 +64042,30 @@ function U5(e, t) {
}
return n;
}
-function pDe(e) {
+function fDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? U5(Object(n), !0).forEach(function(t) {
- mDe(e, t, n[t]);
+ pDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function mDe(e, t, n) {
- return (t = hDe(t)) in e ? Object.defineProperty(e, t, {
+function pDe(e, t, n) {
+ return (t = mDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function hDe(e) {
- var t = gDe(e, "string");
+function mDe(e) {
+ var t = hDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function gDe(e, t) {
+function hDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64110,7 +64075,7 @@ function gDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var _De = pDe({
+var gDe = fDe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -64126,7 +64091,7 @@ var _De = pDe({
stackOffset: "none",
syncMethod: "index"
}, O5), W5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = xz(e.categoricalChartProps, _De), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = bz(e.categoricalChartProps, gDe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -64155,32 +64120,32 @@ var _De = pDe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ I.createElement(V5, H5({}, n, { ref: t })));
-}), vDe = ["axis"], yDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), _De = ["axis"], vDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: vDe,
+ validateTooltipEventTypes: _De,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
-})), bDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+})), yDe = ["axis", "item"], G5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: bDe,
+ validateTooltipEventTypes: yDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function xDe(e) {
- var t = Jz();
+function bDe(e) {
+ var t = qz();
return (0, I.useEffect)(() => {
- t(REe(e));
+ t(LEe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var SDe = ["layout"];
+var xDe = ["layout"];
function K5() {
return K5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64190,16 +64155,16 @@ function K5() {
return e;
}, K5.apply(null, arguments);
}
-function CDe(e, t) {
+function SDe(e, t) {
if (e == null) return {};
- var n, r, i = wDe(e, t);
+ var n, r, i = CDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function wDe(e, t) {
+function CDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64218,30 +64183,30 @@ function q5(e, t) {
}
return n;
}
-function TDe(e) {
+function wDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? q5(Object(n), !0).forEach(function(t) {
- EDe(e, t, n[t]);
+ TDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function EDe(e, t, n) {
- return (t = DDe(t)) in e ? Object.defineProperty(e, t, {
+function TDe(e, t, n) {
+ return (t = EDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DDe(e) {
- var t = ODe(e, "string");
+function EDe(e) {
+ var t = DDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ODe(e, t) {
+function DDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64251,7 +64216,7 @@ function ODe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var J5 = TDe({
+var J5 = wDe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -64271,7 +64236,7 @@ var J5 = TDe({
innerRadius: 0,
outerRadius: "80%"
}, O5), Y5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = xz(e.categoricalChartProps, J5), { layout: r } = n, i = CDe(n, SDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = bz(e.categoricalChartProps, J5), { layout: r } = n, i = SDe(n, xDe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -64299,7 +64264,7 @@ var J5 = TDe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ I.createElement(xDe, {
+ }), /*#__PURE__*/ I.createElement(bDe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -64324,26 +64289,26 @@ function Z5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? X5(Object(n), !0).forEach(function(t) {
- kDe(e, t, n[t]);
+ ODe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kDe(e, t, n) {
- return (t = ADe(t)) in e ? Object.defineProperty(e, t, {
+function ODe(e, t, n) {
+ return (t = kDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ADe(e) {
- var t = jDe(e, "string");
+function kDe(e) {
+ var t = ADe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jDe(e, t) {
+function ADe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64353,24 +64318,24 @@ function jDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var MDe = ["axis"], NDe = Z5(Z5({}, J5), {}, {
+var jDe = ["axis"], MDe = Z5(Z5({}, J5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), PDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = xz(e, NDe);
+}), NDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = bz(e, MDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: MDe,
+ validateTooltipEventTypes: jDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
});
-}), FDe = ["axis"], IDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
+}), PDe = ["axis"], FDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(W5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: FDe,
+ validateTooltipEventTypes: PDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: e,
ref: t
@@ -64391,26 +64356,26 @@ function $5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Q5(Object(n), !0).forEach(function(t) {
- LDe(e, t, n[t]);
+ IDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LDe(e, t, n) {
- return (t = RDe(t)) in e ? Object.defineProperty(e, t, {
+function IDe(e, t, n) {
+ return (t = LDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RDe(e) {
- var t = zDe(e, "string");
+function LDe(e) {
+ var t = RDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zDe(e, t) {
+function RDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64420,16 +64385,16 @@ function zDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var BDe = ["axis", "item"], VDe = $5($5({}, J5), {}, {
+var zDe = ["axis", "item"], BDe = $5($5({}, J5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), HDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = xz(e, VDe);
+}), VDe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = bz(e, BDe);
return /*#__PURE__*/ I.createElement(Y5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: BDe,
+ validateTooltipEventTypes: zDe,
tooltipPayloadSearcher: u2,
categoricalChartProps: n,
ref: t
@@ -64438,7 +64403,7 @@ var BDe = ["axis", "item"], VDe = $5($5({}, J5), {}, {
//#endregion
//#region src/react/charts/cn.ts
function e7(...e) {
- return Cw(Wm(e));
+ return Sw(Wm(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -64446,7 +64411,7 @@ var t7 = {
light: "",
dark: ".dark"
}, n7 = Object.keys(t7);
-function UDe(e) {
+function HDe(e) {
for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);
}
var r7 = I.createContext(null);
@@ -64460,7 +64425,7 @@ function a7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return UDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
+ return HDe(t), /* @__PURE__ */ (0, L.jsx)(r7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-slot": "chart",
@@ -64472,7 +64437,7 @@ function a7({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, L.jsx)(lW, {
+ /* @__PURE__ */ (0, L.jsx)(cW, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -64491,7 +64456,7 @@ function o7({ isLoading: e }) {
})
}) : null;
}
-function WDe(e, t) {
+function UDe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -64506,7 +64471,7 @@ var s7 = ({ id: e, config: t }) => {
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : WDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : UDe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
}).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -64520,15 +64485,15 @@ function l7(e) {
let t = n7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var GDe = (e = 10, t = 0, n = 70) => {
+var WDe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, KDe = {
+}, GDe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, qDe = {
+}, KDe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -64555,7 +64520,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", KDe[p], qDe[m], n),
+ className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", GDe[p], KDe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -64569,7 +64534,7 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: JDe(n, o)
+ style: qDe(n, o)
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -64588,10 +64553,10 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function JDe(e, t) {
+function qDe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Lve, {
+var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(Ive, {
animationDuration: e,
...t
});
@@ -64608,7 +64573,7 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(YDe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(JDe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -64617,8 +64582,8 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function YDe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = XDe(t, n), i = ZDe(t, n);
+function JDe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = YDe(t, n), i = XDe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, L.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -64650,10 +64615,10 @@ function YDe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function XDe(e, t) {
+function YDe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function ZDe(e, t) {
+function XDe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -64668,12 +64633,12 @@ function ZDe(e, t) {
...n
};
}
-var p7 = lK, m7 = () => null, h7 = {
+var p7 = cK, m7 = () => null, h7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function QDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function ZDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = I.useRef(null), [a, o] = I.useState(!1), s = (0, I.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, I.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -64719,7 +64684,7 @@ function QDe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function $De({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function QDe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = I.useRef(null), S = I.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = I.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = I.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -64753,7 +64718,7 @@ function $De({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = QDe({
+ }, [C, v]), { isDragging: A, bind: j } = ZDe({
range: E,
totalPoints: C,
containerRef: x,
@@ -64809,7 +64774,7 @@ function $De({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, L.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, L.jsx)(eOe, {
+ children: /* @__PURE__ */ (0, L.jsx)($De, {
data: e,
keys: S,
chartConfig: t,
@@ -64878,7 +64843,7 @@ function g7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function $De({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = I.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
colorsCount: l7(t)
@@ -64935,10 +64900,10 @@ function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, L.jsx)(lW, {
+ if (r === "line") return /* @__PURE__ */ (0, L.jsx)(cW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(yDe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(vDe, {
data: e,
margin: {
top: 4,
@@ -64962,7 +64927,7 @@ function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, L.jsx)(lW, {
+ return /* @__PURE__ */ (0, L.jsx)(cW, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, L.jsxs)(G5, {
@@ -64991,10 +64956,10 @@ function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, L.jsx)(lW, {
+ return /* @__PURE__ */ (0, L.jsx)(cW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(IDe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(FDe, {
data: e,
margin: {
top: 4,
@@ -65020,7 +64985,7 @@ function eOe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function tOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function eOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = I.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -65044,7 +65009,7 @@ function tOe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var nOe = {
+var tOe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {
id: e,
x: "0",
@@ -65217,7 +65182,7 @@ var nOe = {
})
};
function _7({ variant: e }) {
- let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = nOe[e];
+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = tOe[e];
return /* @__PURE__ */ (0, L.jsxs)(n2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [
@@ -65248,7 +65213,7 @@ function _7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var v7 = 2, rOe = "loading", iOe = 2e3, aOe = "evil-stacked", oOe = .5, sOe = .05, cOe = [
+var v7 = 2, nOe = "loading", rOe = 2e3, iOe = "evil-stacked", aOe = .5, oOe = .05, sOe = [
0,
.7,
.5,
@@ -65260,7 +65225,7 @@ function b7() {
return e;
}
function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = DOe(m, h), { visibleData: T, brushProps: E } = tOe({ data: t }), D = (0, I.useMemo)(() => {
+ let _ = (0, I.useId)().replace(/:/g, ""), [v] = (0, I.useState)(() => Date.now()), [y, b] = (0, I.useState)(f), [x, S] = (0, I.useState)(!1), { loadingData: C, onShimmerExit: w } = EOe(m, h), { visibleData: T, brushProps: E } = eOe({ data: t }), D = (0, I.useMemo)(() => {
let e = I.Children.toArray(n), t = e.find((e) => (0, I.isValidElement)(e) && e.type === m7), r = (0, I.isValidElement)(t) ? t.props : {};
return {
slot: {
@@ -65303,7 +65268,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, L.jsx)($De, {
+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)(QDe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -65334,7 +65299,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, L.jsx)(_7, { variant: d }),
/* @__PURE__ */ (0, L.jsx)(k6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, L.jsx)(OOe, {
+ m && /* @__PURE__ */ (0, L.jsx)(DOe, {
chartId: _,
onShimmerExit: w
})
@@ -65343,7 +65308,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function lOe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+function cOe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = b7(), b = (0, I.useId)().replace(/:/g, ""), x = Df();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -65366,7 +65331,7 @@ function lOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
};
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
dataKey: e,
- stackId: u ? aOe : void 0,
+ stackId: u ? iOe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -65383,44 +65348,44 @@ function lOe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(vOe, {
+ /* @__PURE__ */ (0, L.jsx)(_Oe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(yOe, {
+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(vOe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(xOe, {
+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(bOe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(SOe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(xOe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(COe, {
+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(SOe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(wOe, {
+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(COe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, L.jsx)(bOe, {
+ s && /* @__PURE__ */ (0, L.jsx)(yOe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, L.jsx)(TOe, {
+ o && /* @__PURE__ */ (0, L.jsx)(wOe, {
id: b,
dataKey: e
})
] })] });
}
-function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function lOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = b7();
return o ? null : /* @__PURE__ */ (0, L.jsx)(G8, {
tickLine: e,
@@ -65431,7 +65396,7 @@ function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function dOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+function uOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
let { isLoading: s, isHorizontal: c } = b7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(X8, {
tickLine: e,
@@ -65443,7 +65408,7 @@ function dOe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function fOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function dOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = b7();
return /* @__PURE__ */ (0, L.jsx)(K6, {
strokeDasharray: e,
@@ -65452,7 +65417,7 @@ function fOe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function pOe({ variant: e, roundness: t, defaultIndex: n }) {
+function fOe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = b7();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
@@ -65464,7 +65429,7 @@ function pOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+function pOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
let { selectedDataKey: i, selectDataKey: a } = b7();
return /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -65478,7 +65443,7 @@ function mOe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
});
}
var S7 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = hOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : gOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = _Oe({
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = mOe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : hOe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = gOe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -65490,7 +65455,7 @@ var S7 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(yJ, {
+ ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(vJ, {
x: t,
y: n,
width: r,
@@ -65501,7 +65466,7 @@ var S7 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, L.jsx)(yJ, {
+ }), C && /* @__PURE__ */ (0, L.jsx)(vJ, {
x: t,
y: n - 4,
width: r,
@@ -65512,7 +65477,7 @@ var S7 = (e) => {
return /* @__PURE__ */ (0, L.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, L.jsx)(yJ, {
+ children: [/* @__PURE__ */ (0, L.jsx)(vJ, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, L.jsx)(Of.g, {
@@ -65523,7 +65488,7 @@ var S7 = (e) => {
children: A
}) : A]
});
-}, hOe = (e, t, n, r, i) => {
+}, mOe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -65538,11 +65503,11 @@ var S7 = (e) => {
break;
default: s = t;
}
- let c = s * sOe * 1e3, l = oOe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * oOe * 1e3, l = aOe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: cOe,
+ ease: sOe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -65556,7 +65521,7 @@ var S7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, gOe = (e, t, n) => {
+}, hOe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -65565,10 +65530,10 @@ var S7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, _Oe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, gOe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, vOe = ({ id: e, dataKey: t, config: n }) => {
+}, _Oe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -65590,7 +65555,7 @@ var S7 = (e) => {
}, i);
})
});
-}, yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, vOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -65631,7 +65596,7 @@ var S7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), bOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -65672,7 +65637,7 @@ var S7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), xOe = ({ id: e, dataKey: t, config: n }) => {
+] }), bOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65740,7 +65705,7 @@ var S7 = (e) => {
})
})
] });
-}, SOe = ({ id: e, dataKey: t, config: n }) => {
+}, xOe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -65808,7 +65773,7 @@ var S7 = (e) => {
})
})
] });
-}, COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, SOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -65845,7 +65810,7 @@ var S7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), wOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), COe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -65882,7 +65847,7 @@ var S7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), TOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+] }), wOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -65902,35 +65867,35 @@ var S7 = (e) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), EOe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), TOe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function DOe(e, t = 12) {
+function EOe(e, t = 12) {
let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, I.useMemo)(() => GDe(t, 20, 80), [t, n]),
+ loadingData: (0, I.useMemo)(() => WDe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var OOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
- dataKey: rOe,
+var DOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(L8, {
+ dataKey: nOe,
fill: "currentColor",
fillOpacity: .15,
radius: v7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(kOe, {
+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(OOe, {
chartId: e,
onShimmerExit: t
-}) })] }), kOe = ({ chartId: e, onShimmerExit: t }) => {
- let n = EOe(), r = (0, I.useRef)(-1);
+}) })] }), OOe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = TOe(), r = (0, I.useRef)(-1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -65961,7 +65926,7 @@ var OOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: iOe / 1e3,
+ duration: rOe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -65983,10 +65948,10 @@ var OOe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
})
] });
};
-x7.Bar = lOe, x7.XAxis = uOe, x7.YAxis = dOe, x7.Grid = fOe, x7.Tooltip = pOe, x7.Legend = mOe, x7.Brush = m7;
+x7.Bar = cOe, x7.XAxis = lOe, x7.YAxis = uOe, x7.Grid = dOe, x7.Tooltip = fOe, x7.Legend = pOe, x7.Brush = m7;
//#endregion
//#region src/react/charts/chart-card.tsx
-var C7 = `${zw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var C7 = `${Rw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function w7({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, L.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -66013,7 +65978,7 @@ var T7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;
-function AOe(e) {
+function kOe(e) {
return Object.fromEntries(e.map((e, t) => [D7(t), {
label: e,
colors: E7(T7[t % T7.length])
@@ -66038,7 +66003,7 @@ function k7({ swatch: e, name: t, value: n }) {
});
}
var A7 = "size-2.5 shrink-0 rounded-xs";
-function jOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+function AOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -66063,7 +66028,7 @@ function jOe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, L.jsx)(d7, {
cursor: !1,
- content: /* @__PURE__ */ (0, L.jsx)(jOe, {
+ content: /* @__PURE__ */ (0, L.jsx)(AOe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -66140,7 +66105,7 @@ var F7 = [
"周六",
"周日"
], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function MOe(e) {
+function jOe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -66157,7 +66122,7 @@ function MOe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function NOe(e) {
+function MOe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -66196,19 +66161,19 @@ var L7 = 14, R7 = 17, z7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, POe = {
+}, NOe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function FOe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function POe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${POe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${NOe[a]}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -66266,7 +66231,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(FOe, {
+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(POe, {
cell: g,
series: t.series,
tone: c,
@@ -66282,7 +66247,7 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var IOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
+var FOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
x: 0,
y: 18 + t * R7 + 7,
dominantBaseline: "middle",
@@ -66296,7 +66261,7 @@ var IOe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [F7.map((e, t) =>
children: t
}, t))] });
function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = MOe(e), s = NOe(e);
+ let o = jOe(e), s = MOe(e);
return s.cells.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
children: [/* @__PURE__ */ (0, L.jsx)(B7, {
@@ -66307,7 +66272,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: IOe,
+ axis: FOe,
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
}), /* @__PURE__ */ (0, L.jsx)(B7, {
title: n,
@@ -66373,20 +66338,20 @@ function H7({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, L.jsx)(mS, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, L.jsx)(fS, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var LOe = "30%", ROe = "100%", U7 = 5, W7 = 14, zOe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
+var IOe = "30%", LOe = "100%", U7 = 5, W7 = 14, ROe = 5, G7 = 1500, K7 = (0, I.createContext)(null);
function q7() {
let e = (0, I.use)(K7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = LOe, outerRadius: l = ROe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = KOe(f), v = UOe(o), y = (0, I.useCallback)((e, t) => {
+function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = IOe, outerRadius: l = LOe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = GOe(f), v = HOe(o), y = (0, I.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -66418,7 +66383,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(HDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(VDe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -66437,8 +66402,8 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, L.jsx)(_7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, L.jsx)(qOe, {}),
- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(WOe, {
+ f && /* @__PURE__ */ (0, L.jsx)(KOe, {}),
+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(UOe, {
config: e,
chartId: m
}) })
@@ -66447,7 +66412,7 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function BOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+function zOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();
return s ? null : /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: e,
@@ -66463,7 +66428,7 @@ function BOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, L.jsx)(XJ, {
+ return /* @__PURE__ */ (0, L.jsx)(YJ, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -66472,7 +66437,7 @@ function BOe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
...a
});
}
-function VOe({ variant: e, roundness: t, defaultIndex: n }) {
+function BOe({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = q7();
return i ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -66485,7 +66450,7 @@ function VOe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function HOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function VOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();
return a ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -66499,7 +66464,7 @@ function HOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function UOe(e) {
+function HOe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -66515,7 +66480,7 @@ function UOe(e) {
};
}
}
-var WOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var UOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = l7(n);
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -66538,13 +66503,13 @@ var WOe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function GOe() {
- return Array.from({ length: zOe }, (e, t) => ({
+function WOe() {
+ return Array.from({ length: ROe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function KOe(e) {
+function GOe(e) {
let [t, n] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -66552,9 +66517,9 @@ function KOe(e) {
n((e) => e + 1);
}, G7);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => GOe(), [t]);
+ }, [e]), (0, I.useMemo)(() => WOe(), [t]);
}
-var qOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
+var KOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
dataKey: "value",
cornerRadius: U7,
barSize: W7,
@@ -66562,23 +66527,23 @@ var qOe = () => /* @__PURE__ */ (0, L.jsx)(b6, {
isAnimationActive: !0,
animationDuration: G7,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, L.jsx)(XJ, {
+ shape: (e) => /* @__PURE__ */ (0, L.jsx)(YJ, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-J7.RadialBar = BOe, J7.Tooltip = VOe, J7.Legend = HOe;
+J7.RadialBar = zOe, J7.Tooltip = BOe, J7.Legend = VOe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var JOe = [
+var qOe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], YOe = [
+], JOe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -66619,7 +66584,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, L.jsxs)(J7, {
data: f,
nameKey: "slice",
- config: AOe(s.map((e) => e.name)),
+ config: kOe(s.map((e) => e.name)),
max: Pue(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
@@ -66627,7 +66592,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
dataKey: "value",
barSize: Fue(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, L.jsx)(XJ, {
+ shape: (e) => /* @__PURE__ */ (0, L.jsx)(YJ, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -66651,13 +66616,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${YOe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${JOe[t % 6]}`,
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, L.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${JOe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${qOe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, L.jsx)("b", {
@@ -66676,7 +66641,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var XOe = 10, X7 = T7[5], ZOe = T7[4], QOe = `${zw()} flex flex-col gap-4`, $Oe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", eke = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", tke = "开始播放后,这里会显示最近的真实观看证据。", nke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", rke = "添加媒体文件夹后,这里会显示存储空间。";
+var YOe = 10, X7 = T7[5], XOe = T7[4], ZOe = `${Rw()} flex flex-col gap-4`, QOe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", $Oe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", eke = "开始播放后,这里会显示最近的真实观看证据。", tke = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", nke = "添加媒体文件夹后,这里会显示存储空间。";
function Z7({ term: e, value: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -66698,10 +66663,10 @@ function Q7({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, L.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [RL(t, n), "%"]
+ children: [LL(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Kw, {
+ }), /* @__PURE__ */ (0, L.jsx)(Gw, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
@@ -66729,14 +66694,14 @@ function $7({ term: e, figure: t, unit: n }) {
}
function e9({ headline: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${QOe} md:flex-row md:gap-6`,
+ className: `${ZOe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function ike({ data: t, configurable: n, openMediaSettings: r }) {
+function rke({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66771,7 +66736,7 @@ function ike({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: X7,
- rows: VL(t.by_quality)
+ rows: BL(t.by_quality)
}),
/* @__PURE__ */ (0, L.jsx)(P7, {
title: "文件类型",
@@ -66783,24 +66748,24 @@ function ike({ data: t, configurable: n, openMediaSettings: r }) {
})
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: VS,
+ icon: BS,
title: "还没有视频",
actions: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: r,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, L.jsx)(Ow, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: $Oe
+ children: QOe
});
}
-function ake({ data: e }) {
+function ike({ data: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(V7, {
activity: e.play_activity,
title: "播放时间",
@@ -66815,11 +66780,11 @@ function ake({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: ZOe,
+ color: XOe,
rows: Vue(e.replays)
})] });
}
-function oke({ attribution: e }) {
+function ake({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
@@ -66852,7 +66817,7 @@ function oke({ attribution: e }) {
]
});
}
-function ske({ volume: e }) {
+function oke({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -66869,11 +66834,11 @@ function ske({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [a(n), /* @__PURE__ */ (0, L.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [RL(n, t), "%"]
+ children: [LL(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, L.jsx)(Kw, {
+ t == null ? null : /* @__PURE__ */ (0, L.jsx)(Gw, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -66891,25 +66856,25 @@ function ske({ volume: e }) {
]
});
}
-function cke({ volumes: e, configurable: t, openMediaSettings: n }) {
+function ske({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(ske, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(oke, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: TS,
+ icon: CS,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: rke
+ children: nke
});
}
-function lke({ tags: e, tagLabel: t, onTag: n }) {
+function cke({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: XOe,
+ previewCount: YOe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, L.jsx)("li", {
className: "min-w-0",
@@ -66933,24 +66898,24 @@ function lke({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: MS,
+ icon: jS,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: eke
+ children: $Oe
});
}
-function uke({ rows: e }) {
+function lke({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = zL(e);
+ let t = RL(e);
return /* @__PURE__ */ (0, L.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66969,30 +66934,30 @@ function uke({ rows: e }) {
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${BL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${zL(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: ES,
+ icon: wS,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: tke
+ children: eke
});
}
-function dke({ sources: e, videos: t }) {
+function uke({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)("article", {
@@ -67011,7 +66976,7 @@ function dke({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(Kw, {
+ /* @__PURE__ */ (0, L.jsx)(Gw, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -67022,27 +66987,27 @@ function dke({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: MS,
+ icon: jS,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, L.jsx)(Ow, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Dw, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: nke
+ children: tke
});
}
function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, L.jsx)(hO, {
+ return /* @__PURE__ */ (0, L.jsx)(dO, {
id: e,
- className: MA({
+ className: kA({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, L.jsx)(IA, {
+ children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: t,
icon: i,
accent: a,
@@ -67051,33 +67016,33 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function fke(e) {
+function dke(e) {
let t = kt({
- queryKey: IL,
- queryFn: ({ signal: e }) => LL(e)
+ queryKey: FL,
+ queryFn: ({ signal: e }) => IL(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取统计失败"
}) });
- let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = RL(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
+ let r = n.consumption, i = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = LL(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${a(s)}`
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ /* @__PURE__ */ (0, L.jsxs)(lO, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsxs)(mO, {
+ /* @__PURE__ */ (0, L.jsxs)(uO, {
"aria-label": "统计视图",
- className: NA,
+ className: AA,
children: [
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "inventory",
label: "馆藏视频",
- icon: xS,
+ icon: yS,
accent: 0,
figure: o.toLocaleString(),
detail: a(s)
@@ -67085,7 +67050,7 @@ function fke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "viewing",
label: "看过",
- icon: wS,
+ icon: SS,
accent: 1,
figure: r.played.toLocaleString(),
detail: jue(r.play_seconds)
@@ -67093,7 +67058,7 @@ function fke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "coverage",
label: "内容标签",
- icon: MS,
+ icon: jS,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
@@ -67101,21 +67066,21 @@ function fke(e) {
/* @__PURE__ */ (0, L.jsx)(t9, {
id: "storage",
label: "使用空间",
- icon: TS,
+ icon: CS,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${a(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "inventory",
- children: /* @__PURE__ */ (0, L.jsx)(ike, {
+ children: /* @__PURE__ */ (0, L.jsx)(rke, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, L.jsxs)(gO, {
+ /* @__PURE__ */ (0, L.jsxs)(fO, {
id: "viewing",
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, L.jsx)(e9, {
@@ -67161,9 +67126,9 @@ function fke(e) {
})
]
})
- }), /* @__PURE__ */ (0, L.jsx)(ake, { data: n })]
+ }), /* @__PURE__ */ (0, L.jsx)(ike, { data: n })]
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "coverage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -67171,10 +67136,10 @@ function fke(e) {
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, L.jsx)(oke, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, L.jsx)(ake, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "storage",
children: /* @__PURE__ */ (0, L.jsx)(e9, {
headline: /* @__PURE__ */ (0, L.jsx)($7, {
@@ -67182,7 +67147,7 @@ function fke(e) {
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, L.jsx)(cke, {
+ children: /* @__PURE__ */ (0, L.jsx)(ske, {
volumes: n.storage_volumes,
...e
})
@@ -67190,50 +67155,50 @@ function fke(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(pO, {
- className: `${zw({ padding: "none" })} flex flex-col`,
+ /* @__PURE__ */ (0, L.jsxs)(lO, {
+ className: `${Rw({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsxs)(mO, {
+ children: /* @__PURE__ */ (0, L.jsxs)(uO, {
"aria-label": "统计维度",
- className: CM,
+ className: RM,
children: [
- /* @__PURE__ */ (0, L.jsx)(hO, {
+ /* @__PURE__ */ (0, L.jsx)(dO, {
id: "tags",
- className: wM,
+ className: zM,
children: "内容标签"
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
+ /* @__PURE__ */ (0, L.jsx)(dO, {
id: "recent",
- className: wM,
+ className: zM,
children: "最近看过"
}),
- /* @__PURE__ */ (0, L.jsx)(hO, {
+ /* @__PURE__ */ (0, L.jsx)(dO, {
id: "sources",
- className: wM,
+ className: zM,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(lke, {
+ children: /* @__PURE__ */ (0, L.jsx)(cke, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(uke, { rows: n.recent })
+ children: /* @__PURE__ */ (0, L.jsx)(lke, { rows: n.recent })
}),
- /* @__PURE__ */ (0, L.jsx)(gO, {
+ /* @__PURE__ */ (0, L.jsx)(fO, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(dke, {
+ children: /* @__PURE__ */ (0, L.jsx)(uke, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -67244,7 +67209,7 @@ function fke(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function pke(e, t) {
+function fke(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
@@ -67268,13 +67233,13 @@ function a9(e, t) {
function o9(e) {
return e.value;
}
-function mke(e) {
+function pke(e) {
return e.index;
}
-function hke(e) {
+function mke(e) {
return e.nodes;
}
-function gke(e) {
+function hke(e) {
return e.links;
}
function s9(e, t) {
@@ -67289,8 +67254,8 @@ function c9({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function _ke() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = mke, c = pke, l, u, d = hke, f = gke, p = 6;
+function gke() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = pke, c = fke, l, u, d = mke, f = hke, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -67476,7 +67441,7 @@ function _ke() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, vke = u9 - d9;
+var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, _ke = u9 - d9;
function f9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -67517,7 +67482,7 @@ f9.prototype = p9.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > vke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > _ke ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -67535,27 +67500,27 @@ function m9(e) {
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function yke(e) {
+function vke(e) {
return e[0];
}
-function bke(e) {
+function yke(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var xke = Array.prototype.slice;
+var bke = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function Ske(e) {
+function xke(e) {
return e.source;
}
-function Cke(e) {
+function Ske(e) {
return e.target;
}
-function wke(e) {
- var t = Ske, n = Cke, r = yke, i = bke, a = null;
+function Cke(e) {
+ var t = xke, n = Ske, r = vke, i = yke, a = null;
function o() {
- var o, s = xke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = bke.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = p9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -67570,48 +67535,48 @@ function wke(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function Tke(e, t, n, r, i) {
+function wke(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function Eke() {
- return wke(Tke);
+function Tke() {
+ return Cke(wke);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function Dke(e) {
+function Eke(e) {
return [e.source.x1, e.y0];
}
-function Oke(e) {
+function Dke(e) {
return [e.target.x0, e.y1];
}
-function kke() {
- return Eke().source(Dke).target(Oke);
+function Oke() {
+ return Tke().source(Eke).target(Dke);
}
//#endregion
//#region src/react/taste/taste.ts
-var Ake = "/api/taste", h9 = "/api/taste/refresh", jke = "/api/taste/import", Mke = "/api/taste/source", g9 = (e) => ["taste", e], Nke = ["taste", "refresh"], Pke = [
+var kke = "/api/taste", h9 = "/api/taste/refresh", Ake = "/api/taste/import", jke = "/api/taste/source", g9 = (e) => ["taste", e], Mke = ["taste", "refresh"], Nke = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => jw(`${Ake}?window=${e}`, t), Fke = (e) => jw(h9, e);
-async function Ike(e, t) {
+], _9 = (e, t) => Aw(`${kke}?window=${e}`, t), Pke = (e) => Aw(h9, e);
+async function Fke(e, t) {
await X.fetchQuery({
queryKey: g9(e),
queryFn: () => _9(e, t)
});
}
-var Lke = (e) => q(h9, {
+var Ike = (e) => q(h9, {
window: e,
background: !0
-}), Rke = (e, t) => q(Mke, {
+}), Lke = (e, t) => q(jke, {
operation: "remove",
source_key: e,
window: t
});
-async function zke(e) {
- let t = await fetch(jke, {
+async function Rke(e) {
+ let t = await fetch(Ake, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -67625,25 +67590,25 @@ async function zke(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new kw(e || `导入失败(${t.status})`, t.status, n);
+ throw new Ow(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var Bke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Vke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Hke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Uke(e) {
+var zke = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", Bke = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, Vke = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Hke(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function Wke(e) {
- let t = e.map(Hke), n = Math.max(1, ...t);
+function Uke(e) {
+ let t = e.map(Vke), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var y9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function Gke(e) {
+function Wke(e) {
let t = y9(e, 6);
return t.length < 3 ? [] : t;
}
@@ -67654,10 +67619,10 @@ var b9 = {
source: 145,
target: 545
};
-function Kke(e = []) {
+function Gke(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = _ke().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = gke().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -67672,7 +67637,7 @@ function Kke(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = kke();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = Oke();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -67702,7 +67667,7 @@ function Kke(e = []) {
total: a
};
}
-var qke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var Kke = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = I.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
@@ -67825,14 +67790,14 @@ var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
T9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var Jke = 1, Yke = .3, Xke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
+var qke = 1, Jke = .3, Yke = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
function k9() {
let e = (0, I.use)(O9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
function A9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = lAe(c, l), m = (0, I.useCallback)((e) => {
+ let u = (0, I.useId)().replace(/:/g, ""), [d, f] = (0, I.useState)(o), p = cAe(c, l), m = (0, I.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, I.useMemo)(() => ({
config: e,
@@ -67850,32 +67815,32 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
children: /* @__PURE__ */ (0, L.jsxs)(a7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(PDe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(NDe, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, L.jsx)(_7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, L.jsx)(uAe, {})
+ c && /* @__PURE__ */ (0, L.jsx)(lAe, {})
]
})]
})
});
}
-function Zke({ dataKey: e, variant: t = "filled", fillOpacity: n = Yke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+function Xke({ dataKey: e, variant: t = "filled", fillOpacity: n = Jke, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, I.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = rAe(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = nAe(a, d, e, p.dot);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: Jke,
+ strokeWidth: qke,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -67888,29 +67853,29 @@ function Zke({ dataKey: e, variant: t = "filled", fillOpacity: n = Yke, isGlowin
},
...o
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(iAe, {
+ /* @__PURE__ */ (0, L.jsx)(rAe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, L.jsx)(aAe, {
+ /* @__PURE__ */ (0, L.jsx)(iAe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, L.jsx)(oAe, {
+ m && /* @__PURE__ */ (0, L.jsx)(aAe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, L.jsx)(sAe, {
+ r && /* @__PURE__ */ (0, L.jsx)(oAe, {
id: d,
dataKey: e
})
] })] });
}
var j9 = () => null, M9 = () => null;
-function Qke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+function Zke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, L.jsx)(L4, {
gridType: e,
stroke: t,
@@ -67919,7 +67884,7 @@ function Qke({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function $ke({ tick: e = {
+function Qke({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
@@ -67930,7 +67895,7 @@ function $ke({ tick: e = {
...n
});
}
-function eAe({ tick: e = {
+function $ke({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
@@ -67942,7 +67907,7 @@ function eAe({ tick: e = {
...r
});
}
-function tAe({ variant: e, roundness: t, defaultIndex: n }) {
+function eAe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = k9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(d7, {
defaultIndex: n,
@@ -67954,7 +67919,7 @@ function tAe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function nAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+function tAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
return i ? null : /* @__PURE__ */ (0, L.jsx)(p7, {
verticalAlign: n,
@@ -67967,7 +67932,7 @@ function nAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var rAe = (e, t, n, r) => {
+var nAe = (e, t, n, r) => {
let i = !1, a = !1;
return I.Children.forEach(e, (e) => {
if ((0, I.isValidElement)(e)) {
@@ -68009,7 +67974,7 @@ var rAe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), iAe = ({ id: e, dataKey: t, config: n }) => {
+}) }), rAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -68022,7 +67987,7 @@ var rAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, aAe = ({ id: e, dataKey: t, config: n }) => {
+}, iAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -68035,7 +68000,7 @@ var rAe = (e, t, n, r) => {
colorsCount: r
})
});
-}, oAe = ({ id: e, dataKey: t, config: n }) => {
+}, aAe = ({ id: e, dataKey: t, config: n }) => {
let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, L.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
@@ -68048,7 +68013,7 @@ var rAe = (e, t, n, r) => {
opacities: i
})
});
-}, sAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+}, oAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -68068,7 +68033,7 @@ var rAe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), cAe = (e) => [
+}), sAe = (e) => [
"A",
"B",
"C",
@@ -68079,7 +68044,7 @@ var rAe = (e, t, n, r) => {
skill: e,
[D9]: 30 + Math.random() * 70
}));
-function lAe(e, t = Xke) {
+function cAe(e, t = Yke) {
let [n, r] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -68087,9 +68052,9 @@ function lAe(e, t = Xke) {
r((e) => e + 1);
}, E9);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => cAe(t), [t, n]);
+ }, [e]), (0, I.useMemo)(() => sAe(t), [t, n]);
}
-var uAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
+var lAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
dataKey: D9,
stroke: "currentColor",
strokeOpacity: .3,
@@ -68101,17 +68066,17 @@ var uAe = () => /* @__PURE__ */ (0, L.jsx)(W3, {
animationDuration: E9,
animationEasing: "ease-in-out"
});
-A9.Radar = Zke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Qke, A9.PolarAngleAxis = $ke, A9.PolarRadiusAxis = eAe, A9.Tooltip = tAe, A9.Legend = nAe;
+A9.Radar = Xke, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Zke, A9.PolarAngleAxis = Qke, A9.PolarRadiusAxis = $ke, A9.Tooltip = eAe, A9.Legend = tAe;
//#endregion
//#region src/react/taste/charts.tsx
-var dAe = [
+var uAe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], fAe = [
+], dAe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -68121,7 +68086,7 @@ var dAe = [
], P9 = { value: {
label: "标签命中",
colors: E7(T7[3])
-} }, pAe = [
+} }, fAe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -68131,20 +68096,20 @@ var dAe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], mAe = 26, hAe = { radius: P9.value }, gAe = (e, t) => Math.sqrt(e / t);
-function _Ae({ rows: e, label: t }) {
- let n = Gke(e);
+], pAe = 26, mAe = { radius: P9.value }, hAe = (e, t) => Math.sqrt(e / t);
+function gAe({ rows: e, label: t }) {
+ let n = Wke(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: gAe(e.value, r)
+ radius: hAe(e.value, r)
}));
return /* @__PURE__ */ (0, L.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
children: /* @__PURE__ */ (0, L.jsxs)(A9, {
data: i,
- config: hAe,
+ config: mAe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
@@ -68161,17 +68126,17 @@ function _Ae({ rows: e, label: t }) {
})
});
}
-function vAe({ rows: e, label: t }) {
+function _Ae({ rows: e, label: t }) {
let n = y9(e, 8);
return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${pAe[n.length]}`,
+ className: `flex grow flex-col ${fAe[n.length]}`,
children: /* @__PURE__ */ (0, L.jsxs)(x7, {
data: n,
config: P9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: mAe },
+ chartProps: { maxBarSize: pAe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)(x7.YAxis, {
@@ -68195,8 +68160,8 @@ function vAe({ rows: e, label: t }) {
})
}) : null;
}
-function yAe({ flows: e }) {
- let [t, n] = (0, I.useState)(null), r = Kke(e);
+function vAe({ flows: e }) {
+ let [t, n] = (0, I.useState)(null), r = Gke(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, L.jsxs)("section", {
@@ -68224,7 +68189,7 @@ function yAe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${dAe[e.color]}`,
+ className: `outline-none transition-opacity ${uAe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -68258,14 +68223,14 @@ function yAe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? fAe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? dAe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, L.jsxs)("text", {
x: x9[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [qke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
+ children: [Kke(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
x: x9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
@@ -68283,11 +68248,11 @@ function yAe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var bAe = 10, F9 = Cw(BA, VA, "text-body-2-medium"), I9 = `${zw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", xAe = "读取运行 Peach 的这台电脑上的浏览记录", SAe = "导入或读取浏览记录后,这里会列出已采集设备。", CAe = "馆藏里暂时没有对得上浏览信号的标签。", wAe = "采集浏览记录后,这里会显示聚合后的口味证据。", TAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", EAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", DAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", OAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", kAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
+var yAe = 10, F9 = Sw(LA, RA, "text-body-2-medium"), I9 = `${Rw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", bAe = "读取运行 Peach 的这台电脑上的浏览记录", xAe = "导入或读取浏览记录后,这里会列出已采集设备。", SAe = "馆藏里暂时没有对得上浏览信号的标签。", CAe = "采集浏览记录后,这里会显示聚合后的口味证据。", wAe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", TAe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", EAe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", DAe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", OAe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: MA(),
- children: /* @__PURE__ */ (0, L.jsx)(IA, {
+ className: kA(),
+ children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: t,
icon: e,
accent: i,
@@ -68310,22 +68275,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function AAe({ html: e }) {
+function kAe({ html: e }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${PF}`,
+ 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 ${dL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function jAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Vw, {
+function AAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: FS,
+ icon: PS,
title: "暂无足够证据",
children: r
});
- let o = Wke(e);
+ let o = Uke(e);
return /* @__PURE__ */ (0, L.jsx)(H7, {
- previewCount: bAe,
+ previewCount: yAe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
@@ -68352,7 +68317,7 @@ function jAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(AAe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(kAe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -68364,10 +68329,10 @@ function jAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: Uke(e)
+ children: Hke(e)
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(gS, {
+ s ? /* @__PURE__ */ (0, L.jsx)(mS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -68388,23 +68353,23 @@ function jAe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
});
}
function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(pO, {
- className: `${zw({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, L.jsxs)(lO, {
+ className: `${Rw({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsx)(mO, {
+ children: /* @__PURE__ */ (0, L.jsx)(uO, {
"aria-label": e,
- className: CM,
- children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(hO, {
+ className: RM,
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(dO, {
id: e.id,
- className: wM,
+ className: zM,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(gO, {
+ }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(fO, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(jAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(AAe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -68412,7 +68377,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function MAe({ data: e, onSignal: t, navigate: n }) {
+function jAe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -68478,21 +68443,21 @@ function MAe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, L.jsx)(gS, {
+ }), /* @__PURE__ */ (0, L.jsx)(mS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: FS,
+ icon: PS,
title: "还没有可探索的入口",
- children: CAe
+ children: SAe
})
]
});
}
-function NAe({ onboarding: e, done: t }) {
+function MAe({ onboarding: e, done: t }) {
let [n, r] = (0, I.useState)(() => {
try {
return localStorage.getItem(R9) === "1";
@@ -68501,21 +68466,21 @@ function NAe({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, L.jsx)("div", {
- className: zw({
+ className: Rw({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, L.jsxs)(sj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(ij, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: EAe
+ children: TAe
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: DAe
+ children: EAe
}),
/* @__PURE__ */ (0, L.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -68545,7 +68510,7 @@ function NAe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: OAe
+ children: DAe
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
@@ -68565,7 +68530,7 @@ function NAe({ onboarding: e, done: t }) {
})
});
}
-function PAe({ busy: e, onRefresh: t, onImport: n }) {
+function NAe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -68574,35 +68539,35 @@ function PAe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: bS,
- title: xAe,
+ leadingIcon: vS,
+ title: bAe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: mS,
+ leadingIcon: fS,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, L.jsx)(bD, {
+ }), /* @__PURE__ */ (0, L.jsx)(gD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: zA,
- children: /* @__PURE__ */ (0, L.jsxs)(jD, {
+ className: IA,
+ children: /* @__PURE__ */ (0, L.jsxs)(DD, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
className: F9,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, L.jsx)(bS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(vS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -68610,7 +68575,7 @@ function PAe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: F9,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, L.jsx)(zS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(RS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -68618,9 +68583,9 @@ function PAe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function FAe({ sources: e, window: t, toast: n }) {
+function PAe({ sources: e, window: t, toast: n }) {
let r = At({
- mutationFn: (e) => Rke(e, t),
+ mutationFn: (e) => Lke(e, t),
onSuccess: (e) => {
X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
}
@@ -68644,10 +68609,10 @@ function FAe({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, L.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(zS, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(RS, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, L.jsx)(xS, {
+ }) : /* @__PURE__ */ (0, L.jsx)(yS, {
"aria-hidden": !0,
className: "size-4"
})
@@ -68667,12 +68632,12 @@ function FAe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: SS,
+ leadingIcon: bS,
...Y(r.isPending),
onClick: () => {
r.isPending || h({
title: "移除口味数据源",
- body: kAe,
+ body: OAe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -68680,30 +68645,30 @@ function FAe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: xS,
+ icon: yS,
title: "还没有数据源",
- children: SAe
+ children: xAe
})
]
});
}
-function IAe(e) {
+function FAe(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: o } = e, [s, c] = (0, I.useState)("all"), [l, u] = (0, I.useState)("browser"), d = (0, I.useRef)(null), f = kt({
queryKey: g9(s),
queryFn: ({ signal: e }) => _9(s, e),
placeholderData: Oe
- }), { job: p, running: m, outcome: h, start: g } = kj({
- queryKey: Nke,
- queryFn: ({ signal: e }) => Fke(e),
- start: () => Lke(s),
- idlePollMs: Bke,
+ }), { job: p, running: m, outcome: h, start: g } = Ej({
+ queryKey: Mke,
+ queryFn: ({ signal: e }) => Pke(e),
+ start: () => Ike(s),
+ idlePollMs: zke,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = At({
- mutationFn: (e) => zke(e),
+ mutationFn: (e) => Rke(e),
onSuccess: (e) => {
X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");
}
@@ -68713,47 +68678,47 @@ function IAe(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, L.jsx)(Uw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!b) return /* @__PURE__ */ (0, L.jsx)(Hw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: f.error ? K(f.error) : "读取口味分析失败"
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, L.jsxs)(Uw, { children: [
- /* @__PURE__ */ (0, L.jsxs)(pO, {
+ return /* @__PURE__ */ (0, L.jsxs)(Hw, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(lO, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(mO, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(uO, {
"aria-label": "口味证据来源",
- className: CM,
- children: [/* @__PURE__ */ (0, L.jsx)(hO, {
+ className: RM,
+ children: [/* @__PURE__ */ (0, L.jsx)(dO, {
id: "browser",
- className: wM,
+ className: zM,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, L.jsx)(hO, {
+ }), /* @__PURE__ */ (0, L.jsx)(dO, {
id: "peach",
- className: wM,
+ className: zM,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(wj, {
+ /* @__PURE__ */ (0, L.jsx)(xj, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: Pke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Tj, {
+ children: Nke.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Sj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(PAe, {
+ /* @__PURE__ */ (0, L.jsx)(NAe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -68769,7 +68734,7 @@ function IAe(e) {
]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(NAe, {
+ /* @__PURE__ */ (0, L.jsx)(MAe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -68779,7 +68744,7 @@ function IAe(e) {
children: [
m ? p?.total ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Kw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Gw, {
label: p.message || "正在读取浏览记录",
value: p.checked || 0,
max: p.total
@@ -68787,44 +68752,44 @@ function IAe(e) {
className: "text-caption-1-regular text-text-secondary",
children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Hw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
- _.isPending ? /* @__PURE__ */ (0, L.jsx)(Hw, { label: "正在导入历史文件" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Vw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, L.jsx)(Vw, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(gO, {
+ /* @__PURE__ */ (0, L.jsxs)(fO, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: NA,
+ className: AA,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
- icon: ES,
+ icon: wS,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
detail: `${x.history_sources || 0} 个数据源 · ${v9(x.range_start)}—${v9(x.range_end)}`
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
- icon: MS,
+ icon: jS,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 2,
- icon: FS,
+ icon: PS,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 3,
- icon: xS,
+ icon: yS,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: a(w.bytes || 0)
@@ -68841,7 +68806,7 @@ function IAe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, L.jsx)(_Ae, {
+ /* @__PURE__ */ (0, L.jsx)(gAe, {
rows: T,
label: "主要口味维度"
}),
@@ -68852,14 +68817,14 @@ function IAe(e) {
]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, L.jsx)(vAe, {
+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(_Ae, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, L.jsx)(Vw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Bw, {
shell: "plain",
- icon: FS,
+ icon: PS,
title: "暂无口味维度",
- children: wAe
+ children: CAe
})
})]
}),
@@ -68875,7 +68840,7 @@ function IAe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, L.jsx)(yAe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, L.jsx)(vAe, { flows: b.creator_flows }),
/* @__PURE__ */ (0, L.jsx)(V9, {
label: "浏览器口味维度",
onSignal: t,
@@ -68918,42 +68883,42 @@ function IAe(e) {
rows: E,
kind: "",
visual: "none",
- empty: TAe
+ empty: wAe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(gO, {
+ /* @__PURE__ */ (0, L.jsxs)(fO, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: NA,
+ className: AA,
children: [
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 0,
- icon: wS,
+ icon: SS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: Vke(x.peach_seconds || 0)
+ detail: Bke(x.peach_seconds || 0)
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 1,
- icon: RS,
+ icon: LS,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 2,
- icon: LS,
+ icon: IS,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, L.jsx)(z9, {
accent: 3,
- icon: MS,
+ icon: jS,
term: "有标签",
figure: D.toLocaleString()
})
@@ -69032,12 +68997,12 @@ function IAe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(MAe, {
+ /* @__PURE__ */ (0, L.jsx)(jAe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, L.jsx)(FAe, {
+ /* @__PURE__ */ (0, L.jsx)(PAe, {
sources: b.sources || [],
window: s,
toast: r
@@ -69057,7 +69022,7 @@ function H9({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Kw, {
+ }), /* @__PURE__ */ (0, L.jsx)(Gw, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -69066,26 +69031,26 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function LAe(e) {
+function IAe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var RAe = (e) => {
+var LAe = (e) => {
switch (e) {
- case "success": return VAe;
- case "info": return UAe;
- case "warning": return HAe;
- case "error": return WAe;
+ case "success": return BAe;
+ case "info": return HAe;
+ case "warning": return VAe;
+ case "error": return UAe;
default: return null;
}
-}, zAe = Array(12).fill(0), BAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
+}, RAe = Array(12).fill(0), zAe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, zAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, RAe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), VAe = /*#__PURE__*/ I.createElement("svg", {
+})))), BAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69096,7 +69061,7 @@ var RAe = (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"
-})), HAe = /*#__PURE__*/ I.createElement("svg", {
+})), VAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -69107,7 +69072,7 @@ var RAe = (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"
-})), UAe = /*#__PURE__*/ I.createElement("svg", {
+})), HAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69118,7 +69083,7 @@ var RAe = (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"
-})), WAe = /*#__PURE__*/ I.createElement("svg", {
+})), UAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -69129,7 +69094,7 @@ var RAe = (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"
-})), GAe = /*#__PURE__*/ I.createElement("svg", {
+})), WAe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -69150,7 +69115,7 @@ var RAe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), KAe = () => {
+})), GAe = () => {
let [e, t] = I.useState(document.hidden);
return I.useEffect(() => {
let e = () => {
@@ -69158,7 +69123,7 @@ var RAe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, qAe = 1, JAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : qAe++, W9 = new class {
+}, KAe = 1, qAe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : KAe++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -69168,7 +69133,7 @@ var RAe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - JAe;
+ let e = this.toasts.length - qAe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = U9(e), i = this.pendingDismissals.get(r);
@@ -69246,7 +69211,7 @@ var RAe = (e) => {
type: "default",
message: e
});
- else if (XAe(e) && !e.ok) {
+ else if (YAe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !I.isValidElement(r) ? r : { message: r };
this.create({
@@ -69299,7 +69264,7 @@ var RAe = (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();
}
-}(), YAe = (e, t) => W9.message(e, t), XAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(YAe, {
+}(), JAe = (e, t) => W9.message(e, t), YAe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(JAe, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -69313,20 +69278,20 @@ var RAe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-LAe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+IAe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function K9(e) {
return e.label !== void 0;
}
-var ZAe = 3, QAe = "24px", $Ae = "16px", q9 = 4e3, eje = 356, tje = 14, nje = 45, rje = 200;
+var XAe = 3, ZAe = "24px", QAe = "16px", q9 = 4e3, $Ae = 356, eje = 14, tje = 45, nje = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function ije(e) {
+function rje(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var aje = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = KAe(), Ee = I.useMemo(() => e.swipeDirections ?? ije(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+var ije = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = I.useState(null), [O, k] = I.useState(null), [A, j] = I.useState(!1), [M, N] = I.useState(!1), [ee, te] = I.useState(!1), [P, F] = I.useState(!1), [ne, re] = I.useState(!1), [ie, L] = I.useState(0), [ae, oe] = I.useState(0), se = I.useRef(n.duration || y || q9), ce = I.useRef(null), le = I.useRef(null), ue = c === 0, R = c + 1 <= o, z = n.type, de = z ?? "default", fe = n.dismissible !== !1, pe = n.className || "", me = n.descriptionClassName || "", he = I.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = I.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = I.useMemo(() => n.duration || y || q9, [n.duration, y]), ve = I.useRef(0), ye = I.useRef(0), be = I.useRef(0), xe = I.useRef(null), [Se, Ce] = b.split("-"), we = I.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = GAe(), Ee = I.useMemo(() => e.swipeDirections ?? rje(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {
se.current = _e;
}, [_e]), I.useEffect(() => {
@@ -69367,7 +69332,7 @@ var aje = (e) => {
let ke = I.useCallback(() => {
N(!0), L(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, rje);
+ }, nje);
}, [
n,
d,
@@ -69400,12 +69365,12 @@ var aje = (e) => {
return w?.loading ? /*#__PURE__*/ I.createElement("div", {
className: J9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": z === "loading"
- }, w.loading) : /*#__PURE__*/ I.createElement(BAe, {
+ }, w.loading) : /*#__PURE__*/ I.createElement(zAe, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || RAe(z);
+ let je = n.icon || w?.[z] || LAe(z);
return /*#__PURE__*/ I.createElement("li", {
tabIndex: 0,
ref: le,
@@ -69452,7 +69417,7 @@ var aje = (e) => {
if (P || !fe) return;
xe.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= nje || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= tje || a > .11)) {
L(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), F(!0);
return;
}
@@ -69493,7 +69458,7 @@ var aje = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? GAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
+ }, w?.close ?? WAe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
"data-icon": "",
className: J9(C?.icon, n?.classNames?.icon)
}, z === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, z === "loading" ? null : je) : null, /*#__PURE__*/ I.createElement("div", {
@@ -69528,10 +69493,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function oje(e, t) {
+function aje(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? $Ae : QAe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? QAe : ZAe;
function o(e) {
[
"top",
@@ -69552,8 +69517,8 @@ function oje(e, t) {
}) : o(a);
}), n;
}
-var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = ZAe, toastOptions: g, dir: _ = Y9(), gap: v = tje, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
+var oje = /*#__PURE__*/ I.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = XAe, toastOptions: g, dir: _ = Y9(), gap: v = eje, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = I.useState([]), w = I.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = I.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = I.useState([]), [O, k] = I.useState(!1), [A, j] = I.useState(!1), [M, N] = I.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = I.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = I.useRef(null), F = I.useRef(!1), ne = I.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || W9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return I.useEffect(() => W9.subscribe((e) => {
@@ -69639,10 +69604,10 @@ var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${eje}px`,
+ "--width": `${$Ae}px`,
"--gap": `${v}px`,
...m,
- ...oje(l, u)
+ ...aje(l, u)
},
onBlur: (e) => {
F.current && !e.currentTarget.contains(e.relatedTarget) && (F.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -69660,7 +69625,7 @@ var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(aje, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(ije, {
key: n.id,
icons: y,
index: i,
@@ -69694,8 +69659,8 @@ var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, cje = (e, t) => {
- Z9 || (Z9 = !0, (0, pS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(sje, {
+}), Z9 = !1, sje = (e, t) => {
+ Z9 || (Z9 = !0, (0, dS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(oje, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -69716,7 +69681,7 @@ var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, lje = (e, t) => {
+}, cje = (e, t) => {
let n = t.alert ? G9.error : G9.success, r = t.action;
n(/* @__PURE__ */ (0, L.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -69729,17 +69694,17 @@ var sje = /*#__PURE__*/ I.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function uje() {
+function lje() {
return Q9?.isConnected || (Q9 = document.createElement("div"), Q9.className = "peach-react", Q9.dataset.reactOverlays = "", document.body.append(Q9)), Q9;
}
function $9(e) {
return (t, n) => {
- let r = (0, pS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(se, {
+ let r = (0, dS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(se, {
client: X,
children: /* @__PURE__ */ (0, L.jsx)(Pu, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, L.jsx)(iy, {
- getContainer: uje,
+ children: /* @__PURE__ */ (0, L.jsx)(ry, {
+ getContainer: lje,
children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })
})
})
@@ -69750,49 +69715,53 @@ function $9(e) {
};
};
}
-var dje = {
+var uje = {
activity: {
- prefetch: (e, t) => nT(t),
- mount: $9(sne)
+ prefetch: (e, t) => Zte(t),
+ mount: $9(lne)
},
"catalog-grid": {
- prefetch: mne,
- mount: $9(Bne)
+ prefetch: _ne,
+ mount: $9(kT)
},
"cover-crop": {
prefetch: async () => {},
- mount: $9(Qie)
+ mount: $9(tae)
},
configuration: {
- prefetch: (e, t) => OL(t),
+ prefetch: (e, t) => DL(t),
mount: $9(Eue)
},
"configuration-summary": {
- prefetch: (e, t) => OL(t),
+ prefetch: (e, t) => DL(t),
mount: $9(Oue)
},
"data-cleanup": {
- prefetch: (e, t) => qae(t),
- mount: $9(Soe)
+ prefetch: (e, t) => Yae(t),
+ mount: $9(boe)
},
duplicates: {
- prefetch: (e, t) => aae(t),
- mount: $9(joe)
+ prefetch: (e, t) => cae(t),
+ mount: $9(koe)
},
"entity-hero": {
prefetch: async () => {},
- mount: $9(yse)
+ mount: $9(Rse)
},
"entity-filter": {
prefetch: async () => {},
- mount: $9(Foe)
+ mount: $9(ese)
+ },
+ "entity-body": {
+ prefetch: async () => {},
+ mount: $9(Joe)
},
"follow-manage": {
- prefetch: (e, t) => lce(t, e.tab),
- mount: $9(lI)
+ prefetch: (e, t) => tP(t, e.tab),
+ mount: $9(RI)
},
index: {
- prefetch: (e, t) => jI(e, t),
+ prefetch: (e, t) => Boe(e, t),
mount: $9(Ece)
},
"junk-queue": {
@@ -69800,19 +69769,19 @@ var dje = {
mount: $9(Uce)
},
"library-processing": {
- prefetch: (e, t) => JO(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Yce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(vj, { ...e }))
+ prefetch: (e, t) => GO(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Yce, { ...e }) : /* @__PURE__ */ (0, L.jsx)(hj, { ...e }))
},
playlists: {
prefetch: (e, t) => Zce(t),
mount: $9(lle)
},
"quality-goals": {
- prefetch: (e, t) => hk(t),
+ prefetch: (e, t) => fk(t),
mount: $9(dle)
},
review: {
- prefetch: (e, t) => Nk(t),
+ prefetch: (e, t) => Ak(t),
mount: $9(Dle)
},
scraping: {
@@ -69821,12 +69790,12 @@ var dje = {
},
stats: {
prefetch: (e, t) => Aue(t),
- mount: $9(fke)
+ mount: $9(dke)
},
taste: {
- prefetch: (e, t) => Ike("all", t),
- mount: $9(IAe)
+ prefetch: (e, t) => Fke("all", t),
+ mount: $9(FAe)
}
};
//#endregion
-export { cje as mountToaster, dje as pages, lje as showToast };
+export { sje as mountToaster, uje as pages, cje as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 307343bb3..3c796c7b0 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -900,6 +900,7 @@ var Z = {
"cover-crop": { react: "cover-crop" },
"data-cleanup": { react: "data-cleanup" },
duplicates: { react: "duplicates" },
+ "entity-body": { react: "entity-body" },
"entity-filter": { react: "entity-filter" },
"entity-hero": { react: "entity-hero" },
"follow-manage": { react: "follow-manage" },